Eliminate the pre_a_lam array from ecmult_strauss_wnaf.

This commit is contained in:
Russell O'Connor
2021-02-27 07:57:16 -05:00
parent ae7ba0f922
commit b3b57ad6ee
3 changed files with 41 additions and 30 deletions

View File

@@ -33,6 +33,10 @@
#endif
static const secp256k1_fe secp256k1_fe_one = SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, 1);
static const secp256k1_fe secp256k1_const_beta = SECP256K1_FE_CONST(
0x7ae96a2bul, 0x657c0710ul, 0x6e64479eul, 0xac3434e9ul,
0x9cf04975ul, 0x12f58995ul, 0xc1396c28ul, 0x719501eeul
);
/** Normalize a field element. This brings the field element to a canonical representation, reduces
* its magnitude to 1, and reduces it modulo field size `p`.