1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 12:58:13 +00:00

refactor(crypto): introduce symbolic constants for size optimization

This commit is contained in:
Ondřej Vejpustek 2024-09-01 18:01:54 +02:00
parent 0bdbd924c1
commit b0e703f988

View File

@ -23,6 +23,18 @@
#ifndef __OPTIONS_H__
#define __OPTIONS_H__
#ifndef OPTIMIZE_SIZE
#define OPTIMIZE_SIZE 1
#endif
#ifndef OPTIMIZE_SIZE_BLAKE2S
#define OPTIMIZE_SIZE_BLAKE2S 0
#endif
#ifndef OPTIMIZE_SIZE_BLAKE2B
#define OPTIMIZE_SIZE_BLAKE2B OPTIMIZE_SIZE
#endif
// use precomputed Curve Points (some scalar multiples of curve base point G)
#ifndef USE_PRECOMPUTED_CP
#define USE_PRECOMPUTED_CP 0