Revert "Remove unused scalar_sqr"

This reverts commit 5437e7bdfb.
This commit is contained in:
Andrew Poelstra
2022-07-12 18:51:48 +00:00
committed by sanket1729
parent 87373f5145
commit 0a6006989f
6 changed files with 286 additions and 0 deletions

View File

@@ -65,6 +65,9 @@ static void secp256k1_scalar_mul(secp256k1_scalar *r, const secp256k1_scalar *a,
* the low bits that were shifted off */
static int secp256k1_scalar_shr_int(secp256k1_scalar *r, int n);
/** Compute the square of a scalar (modulo the group order). */
static void secp256k1_scalar_sqr(secp256k1_scalar *r, const secp256k1_scalar *a);
/** Compute the inverse of a scalar (modulo the group order). */
static void secp256k1_scalar_inverse(secp256k1_scalar *r, const secp256k1_scalar *a);