From b0e703f9881e03d98b0675d6f464cbee0a4a380d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Vejpustek?= Date: Sun, 1 Sep 2024 18:01:54 +0200 Subject: [PATCH] refactor(crypto): introduce symbolic constants for size optimization --- crypto/options.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crypto/options.h b/crypto/options.h index 4bf9a99046..03f50ea664 100644 --- a/crypto/options.h +++ b/crypto/options.h @@ -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