Skip to content

Commit

Permalink
Only include necessary ECC curves in libtomcrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
mkj committed Jan 19, 2025
1 parent 2ca81a8 commit 77c864a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/sysoptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77c864a

Please sign in to comment.