From 054b5456d2b3909593b377a9b9984b642417cf0b Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Wed, 24 Aug 2022 17:04:43 +0200 Subject: [PATCH] chore(core): Decrease ECMULT_GEN_PREC_BITS to save 32kB of flash space. --- core/SConscript.firmware | 2 +- core/SConscript.unix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/SConscript.firmware b/core/SConscript.firmware index 4804c7c01..2758eb09e 100644 --- a/core/SConscript.firmware +++ b/core/SConscript.firmware @@ -125,7 +125,7 @@ if FEATURE_FLAGS["SECP256K1_ZKP"]: 'USE_ASM_ARM', 'USE_EXTERNAL_ASM', 'USE_EXTERNAL_DEFAULT_CALLBACKS', - ('ECMULT_GEN_PREC_BITS', '4'), + ('ECMULT_GEN_PREC_BITS', '2'), ('ECMULT_WINDOW_SIZE', '8'), 'ENABLE_MODULE_GENERATOR', 'ENABLE_MODULE_RECOVERY', diff --git a/core/SConscript.unix b/core/SConscript.unix index ae42ec672..be157a8a6 100644 --- a/core/SConscript.unix +++ b/core/SConscript.unix @@ -122,7 +122,7 @@ if FEATURE_FLAGS["SECP256K1_ZKP"]: 'USE_SECP256K1_ZKP_ECDSA', ('SECP256K1_CONTEXT_SIZE', '208'), 'USE_EXTERNAL_DEFAULT_CALLBACKS', - ('ECMULT_GEN_PREC_BITS', '4'), + ('ECMULT_GEN_PREC_BITS', '2'), ('ECMULT_WINDOW_SIZE', '8'), 'ENABLE_MODULE_GENERATOR', 'ENABLE_MODULE_RECOVERY',