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

refactor(crypto): introduce symbolic constant for size optimization of ed25519

This commit is contained in:
Ondřej Vejpustek 2024-09-01 18:01:54 +02:00
parent f246f82b02
commit 3870e9d2a1

View File

@ -35,6 +35,10 @@
#define OPTIMIZE_SIZE_BLAKE2B OPTIMIZE_SIZE #define OPTIMIZE_SIZE_BLAKE2B OPTIMIZE_SIZE
#endif #endif
#ifndef OPTIMIZE_SIZE_ED25519
#define OPTIMIZE_SIZE_ED25519 OPTIMIZE_SIZE
#endif
// use precomputed Curve Points (some scalar multiples of curve base point G) // use precomputed Curve Points (some scalar multiples of curve base point G)
#ifndef USE_PRECOMPUTED_CP #ifndef USE_PRECOMPUTED_CP
#define USE_PRECOMPUTED_CP 0 #define USE_PRECOMPUTED_CP 0