diff --git a/.gitignore b/.gitignore index d5159ea..cb52998 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ bench_internal tests exhaustive_tests precompute_ecmult_gen -gen_ecmult_static_pre_g +precompute_ecmult valgrind_ctime_test *.exe *.so diff --git a/Makefile.am b/Makefile.am index d47a8a3..2fa1147 100644 --- a/Makefile.am +++ b/Makefile.am @@ -130,12 +130,12 @@ TESTS += exhaustive_tests endif ### Precomputed tables -EXTRA_PROGRAMS = gen_ecmult_static_pre_g precompute_ecmult_gen +EXTRA_PROGRAMS = precompute_ecmult precompute_ecmult_gen CLEANFILES = $(EXTRA_PROGRAMS) -gen_ecmult_static_pre_g_SOURCES = src/gen_ecmult_static_pre_g.c -gen_ecmult_static_pre_g_CPPFLAGS = $(SECP_INCLUDES) -gen_ecmult_static_pre_g_LDADD = $(SECP_LIBS) $(COMMON_LIB) +precompute_ecmult_SOURCES = src/precompute_ecmult.c +precompute_ecmult_CPPFLAGS = $(SECP_INCLUDES) +precompute_ecmult_LDADD = $(SECP_LIBS) $(COMMON_LIB) precompute_ecmult_gen_SOURCES = src/precompute_ecmult_gen.c precompute_ecmult_gen_CPPFLAGS = $(SECP_INCLUDES) @@ -148,8 +148,8 @@ precompute_ecmult_gen_LDADD = $(SECP_LIBS) $(COMMON_LIB) # This means that rebuilds of the prebuilt files always need to be # forced by deleting them, e.g., by invoking `make clean-precomp`. src/ecmult_static_pre_g.h: - $(MAKE) $(AM_MAKEFLAGS) gen_ecmult_static_pre_g$(EXEEXT) - ./gen_ecmult_static_pre_g$(EXEEXT) + $(MAKE) $(AM_MAKEFLAGS) precompute_ecmult$(EXEEXT) + ./precompute_ecmult$(EXEEXT) src/ecmult_gen_static_prec_table.h: $(MAKE) $(AM_MAKEFLAGS) precompute_ecmult_gen$(EXEEXT) ./precompute_ecmult_gen$(EXEEXT) diff --git a/src/ecmult_static_pre_g.h b/src/ecmult_static_pre_g.h index 9072fb2..7e254ac 100644 --- a/src/ecmult_static_pre_g.h +++ b/src/ecmult_static_pre_g.h @@ -1,4 +1,4 @@ -/* This file was automatically generated by gen_ecmult_static_pre_g. */ +/* This file was automatically generated by precompute_ecmult. */ /* This file contains an array secp256k1_pre_g with odd multiples of the base point G and * an array secp256k1_pre_g_128 with odd multiples of 2^128*G for accelerating the computation of a*P + b*G. */ diff --git a/src/gen_ecmult_static_pre_g.c b/src/precompute_ecmult.c similarity index 98% rename from src/gen_ecmult_static_pre_g.c rename to src/precompute_ecmult.c index ba1d1f1..7c667ae 100644 --- a/src/gen_ecmult_static_pre_g.c +++ b/src/precompute_ecmult.c @@ -87,7 +87,7 @@ int main(void) { return -1; } - fprintf(fp, "/* This file was automatically generated by gen_ecmult_static_pre_g. */\n"); + fprintf(fp, "/* This file was automatically generated by precompute_ecmult. */\n"); fprintf(fp, "/* This file contains an array secp256k1_pre_g with odd multiples of the base point G and\n"); fprintf(fp, " * an array secp256k1_pre_g_128 with odd multiples of 2^128*G for accelerating the computation of a*P + b*G.\n"); fprintf(fp, " */\n");