From 24deac1eb33f658f426f82c09a6041e0b24ae212 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sun, 19 Jan 2025 15:19:07 +1030 Subject: [PATCH] Only include necessary ECC curves in libtomcrypt --- src/sysoptions.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/sysoptions.h b/src/sysoptions.h index 2d1533cb..57fba887 100644 --- a/src/sysoptions.h +++ b/src/sysoptions.h @@ -165,6 +165,18 @@ #define DROPBEAR_ECC_384 (DROPBEAR_ECC) #define DROPBEAR_ECC_521 (DROPBEAR_ECC) +/* Only include necessary ECC curves building libtomcrypt */ +#define LTC_NO_CURVES +#if DROPBEAR_ECC_256 +#define LTC_ECC256 +#endif +#if DROPBEAR_ECC_384 +#define LTC_ECC384 +#endif +#if DROPBEAR_ECC_521 +#define LTC_ECC521 +#endif + #define DROPBEAR_LTC_PRNG (DROPBEAR_ECC) /* RSA can be vulnerable to timing attacks which use the time required for