refactor: Make PREC_BITS a parameter of ecmult_gen_build_prec_table

This commit is contained in:
Tim Ruffing
2021-09-08 18:49:06 +02:00
parent a4875e30a6
commit fdb33dd122
6 changed files with 49 additions and 36 deletions

View File

@@ -390,7 +390,7 @@ int main(int argc, char** argv) {
}
/* Recreate the ecmult_gen table using the right generator (as selected via EXHAUSTIVE_TEST_ORDER) */
secp256k1_ecmult_gen_create_prec_table(&secp256k1_ecmult_gen_prec_table[0][0], &secp256k1_ge_const_g);
secp256k1_ecmult_gen_create_prec_table(&secp256k1_ecmult_gen_prec_table[0][0], &secp256k1_ge_const_g, ECMULT_GEN_PREC_BITS);
while (count--) {
/* Build context */