From 7cf47f72bc3c2f99e9ac6b050c78b0155a826f74 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Fri, 17 Dec 2021 11:23:51 -0500 Subject: [PATCH] Rename ecmult_gen_static_prec_table -> precomputed_ecmult_gen --- .gitattributes | 2 +- Makefile.am | 4 ++-- src/ecmult_gen_impl.h | 2 +- src/precompute_ecmult_gen.c | 8 ++++---- ...t_gen_static_prec_table.h => precomputed_ecmult_gen.h} | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) rename src/{ecmult_gen_static_prec_table.h => precomputed_ecmult_gen.h} (99%) diff --git a/.gitattributes b/.gitattributes index a0fa567..c692c16 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,2 @@ src/ecmult_static_pre_g.h linguist-generated -src/ecmult_gen_static_prec_table.h linguist-generated +src/precomputed_ecmult_gen.h linguist-generated diff --git a/Makefile.am b/Makefile.am index 2fa1147..68b258c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -150,11 +150,11 @@ precompute_ecmult_gen_LDADD = $(SECP_LIBS) $(COMMON_LIB) src/ecmult_static_pre_g.h: $(MAKE) $(AM_MAKEFLAGS) precompute_ecmult$(EXEEXT) ./precompute_ecmult$(EXEEXT) -src/ecmult_gen_static_prec_table.h: +src/precomputed_ecmult_gen.h: $(MAKE) $(AM_MAKEFLAGS) precompute_ecmult_gen$(EXEEXT) ./precompute_ecmult_gen$(EXEEXT) -PRECOMP = src/ecmult_gen_static_prec_table.h src/ecmult_static_pre_g.h +PRECOMP = src/precomputed_ecmult_gen.h src/ecmult_static_pre_g.h noinst_HEADERS += $(PRECOMP) precomp: $(PRECOMP) diff --git a/src/ecmult_gen_impl.h b/src/ecmult_gen_impl.h index 6a6ab9a..2c8a503 100644 --- a/src/ecmult_gen_impl.h +++ b/src/ecmult_gen_impl.h @@ -12,7 +12,7 @@ #include "group.h" #include "ecmult_gen.h" #include "hash_impl.h" -#include "ecmult_gen_static_prec_table.h" +#include "precomputed_ecmult_gen.h" static void secp256k1_ecmult_gen_context_build(secp256k1_ecmult_gen_context *ctx) { secp256k1_ecmult_gen_blind(ctx, NULL); diff --git a/src/precompute_ecmult_gen.c b/src/precompute_ecmult_gen.c index 5f8d274..21580cb 100644 --- a/src/precompute_ecmult_gen.c +++ b/src/precompute_ecmult_gen.c @@ -15,7 +15,7 @@ #include "ecmult_gen_prec_impl.h" int main(int argc, char **argv) { - const char outfile[] = "src/ecmult_gen_static_prec_table.h"; + const char outfile[] = "src/precomputed_ecmult_gen.h"; FILE* fp; int bits; @@ -30,8 +30,8 @@ int main(int argc, char **argv) { fprintf(fp, "/* This file was automatically generated by precompute_ecmult_gen. */\n"); fprintf(fp, "/* See ecmult_gen_impl.h for details about the contents of this file. */\n"); - fprintf(fp, "#ifndef SECP256K1_ECMULT_GEN_STATIC_PREC_TABLE_H\n"); - fprintf(fp, "#define SECP256K1_ECMULT_GEN_STATIC_PREC_TABLE_H\n"); + fprintf(fp, "#ifndef SECP256K1_PRECOMPUTED_ECMULT_GEN_H\n"); + fprintf(fp, "#define SECP256K1_PRECOMPUTED_ECMULT_GEN_H\n"); fprintf(fp, "#include \"group.h\"\n"); @@ -76,7 +76,7 @@ int main(int argc, char **argv) { fprintf(fp, "};\n"); fprintf(fp, "#endif /* EXHAUSTIVE_TEST_ORDER */\n"); fprintf(fp, "#undef SC\n"); - fprintf(fp, "#endif /* SECP256K1_ECMULT_GEN_STATIC_PREC_TABLE_H */\n"); + fprintf(fp, "#endif /* SECP256K1_PRECOMPUTED_ECMULT_GEN_H */\n"); fclose(fp); return 0; diff --git a/src/ecmult_gen_static_prec_table.h b/src/precomputed_ecmult_gen.h similarity index 99% rename from src/ecmult_gen_static_prec_table.h rename to src/precomputed_ecmult_gen.h index 057976b..6f191be 100644 --- a/src/ecmult_gen_static_prec_table.h +++ b/src/precomputed_ecmult_gen.h @@ -1,7 +1,7 @@ /* This file was automatically generated by precompute_ecmult_gen. */ /* See ecmult_gen_impl.h for details about the contents of this file. */ -#ifndef SECP256K1_ECMULT_GEN_STATIC_PREC_TABLE_H -#define SECP256K1_ECMULT_GEN_STATIC_PREC_TABLE_H +#ifndef SECP256K1_PRECOMPUTED_ECMULT_GEN_H +#define SECP256K1_PRECOMPUTED_ECMULT_GEN_H #include "group.h" #define S(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) SECP256K1_GE_STORAGE_CONST(0x##a##u,0x##b##u,0x##c##u,0x##d##u,0x##e##u,0x##f##u,0x##g##u,0x##h##u,0x##i##u,0x##j##u,0x##k##u,0x##l##u,0x##m##u,0x##n##u,0x##o##u,0x##p##u) #ifdef EXHAUSTIVE_TEST_ORDER @@ -9745,4 +9745,4 @@ S(9de52b81,157165cc,aef44485,4c2b3535,a599a79,80d024de,5334b385,ecbb2e91,74fca16 }; #endif /* EXHAUSTIVE_TEST_ORDER */ #undef SC -#endif /* SECP256K1_ECMULT_GEN_STATIC_PREC_TABLE_H */ +#endif /* SECP256K1_PRECOMPUTED_ECMULT_GEN_H */