adjust default build with curve25519

This commit is contained in:
JacobBarthelmeh
2025-05-05 13:54:30 -06:00
parent 9587b7b12e
commit aa840f9c94

View File

@ -3792,6 +3792,14 @@ extern void uITRON4_free(void *p) ;
#define WOLFSSL_ALERT_COUNT_MAX 5
#endif
/* Enable blinding by default for C-only, non-small curve25519 implementation */
#if defined(HAVE_CURVE25519) && !defined(CURVE25519_SMALL) && \
!defined(FREESCALE_LTC_ECC) && !defined(WOLFSSL_ARMASM) && \
!defined(USE_INTEL_SPEEDUP) && \
!defined(WOLFSSL_CURVE25519_BLINDING) && !defined(NO_CURVE25519_BLINDING)
#define WOLFSSL_CURVE25519_BLINDING
#endif
/* warning for not using harden build options (default with ./configure) */
/* do not warn if big integer support is disabled */
#if !defined(WC_NO_HARDEN) && !defined(NO_BIG_INT)