1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00

fix(legacy,core): fix size of secp256k1-zkp context

[no changelog]
This commit is contained in:
Ondřej Vejpustek 2022-05-20 16:16:25 +02:00
parent 14a0bc13ce
commit a198b390ff
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ if FEATURE_FLAGS["SECP256K1_ZKP"]:
CPPDEFINES_MOD += [ CPPDEFINES_MOD += [
'USE_SECP256K1_ZKP', 'USE_SECP256K1_ZKP',
'USE_SECP256K1_ZKP_ECDSA', 'USE_SECP256K1_ZKP_ECDSA',
('SECP256K1_CONTEXT_SIZE', '184'), ('SECP256K1_CONTEXT_SIZE', '180'),
'USE_ASM_ARM', 'USE_ASM_ARM',
'USE_EXTERNAL_ASM', 'USE_EXTERNAL_ASM',
'USE_EXTERNAL_DEFAULT_CALLBACKS', 'USE_EXTERNAL_DEFAULT_CALLBACKS',

View File

@ -11,7 +11,7 @@ CFLAGS += -DUSE_SECP256K1_ZKP_ECDSA
ifeq ($(EMULATOR),1) ifeq ($(EMULATOR),1)
CFLAGS += -DSECP256K1_CONTEXT_SIZE=208 CFLAGS += -DSECP256K1_CONTEXT_SIZE=208
else else
CFLAGS += -DSECP256K1_CONTEXT_SIZE=184 CFLAGS += -DSECP256K1_CONTEXT_SIZE=180
OBJS += field_10x26_arm.o OBJS += field_10x26_arm.o
endif endif
ZKP_CFLAGS = \ ZKP_CFLAGS = \