add WOLFSSL_ECC_NO_SMALL_STACK.

This commit is contained in:
Daniel Pouzzner
2021-12-10 23:57:14 -06:00
parent 41d4aafa3f
commit 2193df1d62
2 changed files with 7 additions and 2 deletions

View File

@ -28,6 +28,11 @@
/* in case user set HAVE_ECC there */
#include <wolfssl/wolfcrypt/settings.h>
#ifdef WOLFSSL_ECC_NO_SMALL_STACK
#undef WOLFSSL_SMALL_STACK
#undef WOLFSSL_SMALL_STACK_CACHE
#endif
/*
Possible ECC enable options:
* HAVE_ECC: Overall control of ECC default: on

View File

@ -395,7 +395,7 @@ typedef struct {
mp_int* z; /* The z coordinate */
alt_fp_int xyz[3];
#endif
#ifdef WOLFSSL_SMALL_STACK_CACHE
#if defined(WOLFSSL_SMALL_STACK_CACHE) && !defined(WOLFSSL_ECC_NO_SMALL_STACK)
ecc_key* key;
#endif
} ecc_point;
@ -496,7 +496,7 @@ struct ecc_key {
byte deterministic:1;
#endif
#ifdef WOLFSSL_SMALL_STACK_CACHE
#if defined(WOLFSSL_SMALL_STACK_CACHE) && !defined(WOLFSSL_ECC_NO_SMALL_STACK)
mp_int* t1;
mp_int* t2;
#ifdef ALT_ECC_SIZE