Skip to content

Commit 31feab0

Browse files
committed
Rename function secp256k1_ecmult_gen_{create_prec -> compute}_table
1 parent 725370c commit 31feab0

4 files changed

+4
-4
lines changed

src/ecmult_gen_compute_table.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
#include "ecmult_gen.h"
1111

12-
static void secp256k1_ecmult_gen_create_prec_table(secp256k1_ge_storage* table, const secp256k1_ge* gen, int bits);
12+
static void secp256k1_ecmult_gen_compute_table(secp256k1_ge_storage* table, const secp256k1_ge* gen, int bits);
1313

1414
#endif /* SECP256K1_ECMULT_GEN_COMPUTE_TABLE_H */

src/ecmult_gen_compute_table_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "ecmult_gen.h"
1414
#include "util.h"
1515

16-
static void secp256k1_ecmult_gen_create_prec_table(secp256k1_ge_storage* table, const secp256k1_ge* gen, int bits) {
16+
static void secp256k1_ecmult_gen_compute_table(secp256k1_ge_storage* table, const secp256k1_ge* gen, int bits) {
1717
int g = ECMULT_GEN_PREC_G(bits);
1818
int n = ECMULT_GEN_PREC_N(bits);
1919

src/precompute_ecmult_gen.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ int main(int argc, char **argv) {
5050
int inner, outer;
5151

5252
secp256k1_ge_storage* table = checked_malloc(&default_error_callback, n * g * sizeof(secp256k1_ge_storage));
53-
secp256k1_ecmult_gen_create_prec_table(table, &secp256k1_ge_const_g, bits);
53+
secp256k1_ecmult_gen_compute_table(table, &secp256k1_ge_const_g, bits);
5454

5555
fprintf(fp, "#if ECMULT_GEN_PREC_BITS == %d\n", bits);
5656
for(outer = 0; outer != n; outer++) {

src/tests_exhaustive.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ int main(int argc, char** argv) {
390390
}
391391

392392
/* Recreate the ecmult_gen table using the right generator (as selected via EXHAUSTIVE_TEST_ORDER) */
393-
secp256k1_ecmult_gen_create_prec_table(&secp256k1_ecmult_gen_prec_table[0][0], &secp256k1_ge_const_g, ECMULT_GEN_PREC_BITS);
393+
secp256k1_ecmult_gen_compute_table(&secp256k1_ecmult_gen_prec_table[0][0], &secp256k1_ge_const_g, ECMULT_GEN_PREC_BITS);
394394

395395
while (count--) {
396396
/* Build context */

0 commit comments

Comments
 (0)