forked from wolfSSL/wolfssl
add WOLFSSL_ECC_NO_SMALL_STACK.
This commit is contained in:
@ -28,6 +28,11 @@
|
|||||||
/* in case user set HAVE_ECC there */
|
/* in case user set HAVE_ECC there */
|
||||||
#include <wolfssl/wolfcrypt/settings.h>
|
#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:
|
Possible ECC enable options:
|
||||||
* HAVE_ECC: Overall control of ECC default: on
|
* HAVE_ECC: Overall control of ECC default: on
|
||||||
|
@ -395,7 +395,7 @@ typedef struct {
|
|||||||
mp_int* z; /* The z coordinate */
|
mp_int* z; /* The z coordinate */
|
||||||
alt_fp_int xyz[3];
|
alt_fp_int xyz[3];
|
||||||
#endif
|
#endif
|
||||||
#ifdef WOLFSSL_SMALL_STACK_CACHE
|
#if defined(WOLFSSL_SMALL_STACK_CACHE) && !defined(WOLFSSL_ECC_NO_SMALL_STACK)
|
||||||
ecc_key* key;
|
ecc_key* key;
|
||||||
#endif
|
#endif
|
||||||
} ecc_point;
|
} ecc_point;
|
||||||
@ -496,7 +496,7 @@ struct ecc_key {
|
|||||||
byte deterministic:1;
|
byte deterministic:1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WOLFSSL_SMALL_STACK_CACHE
|
#if defined(WOLFSSL_SMALL_STACK_CACHE) && !defined(WOLFSSL_ECC_NO_SMALL_STACK)
|
||||||
mp_int* t1;
|
mp_int* t1;
|
||||||
mp_int* t2;
|
mp_int* t2;
|
||||||
#ifdef ALT_ECC_SIZE
|
#ifdef ALT_ECC_SIZE
|
||||||
|
Reference in New Issue
Block a user