From df2545b78e03887bc14bac5d95e779a50cbf610b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Vejpustek?= Date: Fri, 2 Aug 2024 15:16:48 +0200 Subject: [PATCH] chore(crypto,core,legacy): reduce size of precomputed table used by secp256k1 submodule [no changelog] --- core/SConscript.firmware | 2 +- core/SConscript.unix | 2 +- crypto/Makefile | 2 +- legacy/firmware/Makefile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/SConscript.firmware b/core/SConscript.firmware index 75ad320dc..a1ec16172 100644 --- a/core/SConscript.firmware +++ b/core/SConscript.firmware @@ -183,7 +183,7 @@ if FEATURE_FLAGS["SECP256K1_ZKP"]: 'USE_EXTERNAL_ASM', 'USE_EXTERNAL_DEFAULT_CALLBACKS', ('ECMULT_GEN_PREC_BITS', '2'), - ('ECMULT_WINDOW_SIZE', '8'), + ('ECMULT_WINDOW_SIZE', '2'), 'ENABLE_MODULE_GENERATOR', 'ENABLE_MODULE_RECOVERY', 'ENABLE_MODULE_SCHNORRSIG', diff --git a/core/SConscript.unix b/core/SConscript.unix index 8013fe4f0..2b4adda96 100644 --- a/core/SConscript.unix +++ b/core/SConscript.unix @@ -184,7 +184,7 @@ if FEATURE_FLAGS["SECP256K1_ZKP"]: ('SECP256K1_CONTEXT_SIZE', '208'), 'USE_EXTERNAL_DEFAULT_CALLBACKS', ('ECMULT_GEN_PREC_BITS', '2'), - ('ECMULT_WINDOW_SIZE', '8'), + ('ECMULT_WINDOW_SIZE', '2'), 'ENABLE_MODULE_GENERATOR', 'ENABLE_MODULE_RECOVERY', 'ENABLE_MODULE_SCHNORRSIG', diff --git a/crypto/Makefile b/crypto/Makefile index ef1f5bac7..b3cd50b02 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -65,7 +65,7 @@ endif ZKP_CFLAGS = \ -DECMULT_GEN_PREC_BITS=4 \ - -DECMULT_WINDOW_SIZE=8 \ + -DECMULT_WINDOW_SIZE=2 \ -DENABLE_MODULE_GENERATOR \ -DENABLE_MODULE_RECOVERY \ -DENABLE_MODULE_SCHNORRSIG \ diff --git a/legacy/firmware/Makefile b/legacy/firmware/Makefile index 3f003cd2c..a02c3f2c5 100644 --- a/legacy/firmware/Makefile +++ b/legacy/firmware/Makefile @@ -19,7 +19,7 @@ ZKP_CFLAGS = \ -DUSE_EXTERNAL_ASM \ -DUSE_EXTERNAL_DEFAULT_CALLBACKS \ -DECMULT_GEN_PREC_BITS=4 \ - -DECMULT_WINDOW_SIZE=8 \ + -DECMULT_WINDOW_SIZE=2 \ -DENABLE_MODULE_GENERATOR \ -DENABLE_MODULE_RECOVERY \ -DENABLE_MODULE_SCHNORRSIG \