From a6034a38c7519a863926c9f6179f6ee3af192183 Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 25 Mar 2020 13:32:23 -0700 Subject: [PATCH] Fix for building with `WOLFSSL_SMALL_STACK_CACHE` only (no `WOLFSSL_SMALL_STACK`). --- wolfcrypt/src/ecc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 31c4090fc..e71d77f65 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -2522,11 +2522,11 @@ int wc_ecc_mulmod_ex(mp_int* k, ecc_point *G, ecc_point *R, ecc_point *tG, *M[M_POINTS]; int i, err; -#ifdef WOLFSSL_SMALL_STACK - mp_int* mu = NULL; #ifdef WOLFSSL_SMALL_STACK_CACHE ecc_key key; #endif +#ifdef WOLFSSL_SMALL_STACK + mp_int* mu = NULL; #else mp_int mu[1]; #endif @@ -5339,11 +5339,11 @@ int ecc_mul2add(ecc_point* A, mp_int* kA, void* heap) #endif { -#ifdef WOLFSSL_SMALL_STACK - ecc_point** precomp = NULL; #ifdef WOLFSSL_SMALL_STACK_CACHE ecc_key key; #endif +#ifdef WOLFSSL_SMALL_STACK + ecc_point** precomp = NULL; #else ecc_point* precomp[SHAMIR_PRECOMP_SZ]; #endif