From 3afa420c31bac7699b27339ab64c9fcca58a0e58 Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 1 May 2024 07:25:28 -0700 Subject: [PATCH] Add option `NO_ECC_CACHE_CURVE` to allow disabling ECC curve cache with async. --- wolfssl/wolfcrypt/settings.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 0a26a63d7..0ec26c0b4 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -2755,7 +2755,9 @@ extern void uITRON4_free(void *p) ; #endif /* Enable ECC_CACHE_CURVE for ASYNC */ - #if !defined(ECC_CACHE_CURVE) + #if !defined(ECC_CACHE_CURVE) && !defined(NO_ECC_CACHE_CURVE) + /* Enabled by default for increased async performance, + * but not required */ #define ECC_CACHE_CURVE #endif #endif /* WOLFSSL_ASYNC_CRYPT */