From 31feab053b72bfd7ab05347ef7df81b381c92261 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sat, 18 Dec 2021 16:11:52 -0500 Subject: [PATCH] Rename function secp256k1_ecmult_gen_{create_prec -> compute}_table --- src/ecmult_gen_compute_table.h | 2 +- src/ecmult_gen_compute_table_impl.h | 2 +- src/precompute_ecmult_gen.c | 2 +- src/tests_exhaustive.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ecmult_gen_compute_table.h b/src/ecmult_gen_compute_table.h index c8d5186..e577158 100644 --- a/src/ecmult_gen_compute_table.h +++ b/src/ecmult_gen_compute_table.h @@ -9,6 +9,6 @@ #include "ecmult_gen.h" -static void secp256k1_ecmult_gen_create_prec_table(secp256k1_ge_storage* table, const secp256k1_ge* gen, int bits); +static void secp256k1_ecmult_gen_compute_table(secp256k1_ge_storage* table, const secp256k1_ge* gen, int bits); #endif /* SECP256K1_ECMULT_GEN_COMPUTE_TABLE_H */ diff --git a/src/ecmult_gen_compute_table_impl.h b/src/ecmult_gen_compute_table_impl.h index 79eca09..ff6a299 100644 --- a/src/ecmult_gen_compute_table_impl.h +++ b/src/ecmult_gen_compute_table_impl.h @@ -13,7 +13,7 @@ #include "ecmult_gen.h" #include "util.h" -static void secp256k1_ecmult_gen_create_prec_table(secp256k1_ge_storage* table, const secp256k1_ge* gen, int bits) { +static void secp256k1_ecmult_gen_compute_table(secp256k1_ge_storage* table, const secp256k1_ge* gen, int bits) { int g = ECMULT_GEN_PREC_G(bits); int n = ECMULT_GEN_PREC_N(bits); diff --git a/src/precompute_ecmult_gen.c b/src/precompute_ecmult_gen.c index 4aaf178..dd9fe96 100644 --- a/src/precompute_ecmult_gen.c +++ b/src/precompute_ecmult_gen.c @@ -50,7 +50,7 @@ int main(int argc, char **argv) { int inner, outer; secp256k1_ge_storage* table = checked_malloc(&default_error_callback, n * g * sizeof(secp256k1_ge_storage)); - secp256k1_ecmult_gen_create_prec_table(table, &secp256k1_ge_const_g, bits); + secp256k1_ecmult_gen_compute_table(table, &secp256k1_ge_const_g, bits); fprintf(fp, "#if ECMULT_GEN_PREC_BITS == %d\n", bits); for(outer = 0; outer != n; outer++) { diff --git a/src/tests_exhaustive.c b/src/tests_exhaustive.c index 9fc33b0..15f8974 100644 --- a/src/tests_exhaustive.c +++ b/src/tests_exhaustive.c @@ -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, ECMULT_GEN_PREC_BITS); + secp256k1_ecmult_gen_compute_table(&secp256k1_ecmult_gen_prec_table[0][0], &secp256k1_ge_const_g, ECMULT_GEN_PREC_BITS); while (count--) { /* Build context */