Skip to content

Commit 1de30c6

Browse files
committed
SP: --enable-sp-asm now enables SP if not set
Enabling SP with ASM didn't enable SP or error out when SP wasn't configured. Now enables SP when '' and errors when 'no'. SAKKE modinv used large amounts of stack. Change to have more temporary memory allocated increased to cover the usage. ECC, SAKKE: sp_<bits>_ecc_mulmod_<cpu><words>() used large amounts of stack. Allocate when WOLFSSL_SMALL_STACK. wc_DhCheckKeyPair() not available when HAVE_SELFTEST. Wasn't compiled in before as WOLFSSL_HAVE_SP_DH wasn't defined.
1 parent 47b8caa commit 1de30c6

9 files changed

Lines changed: 1480 additions & 691 deletions

File tree

configure.ac

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,17 @@ AC_ARG_ENABLE([sp-asm],
566566
[ ENABLED_SP_ASM=$SP_ASM_DEFAULT ],
567567
)
568568

569+
if test "$ENABLED_SP_ASM" != "no"
570+
then
571+
if test "$ENABLED_SP" = "no"
572+
then
573+
AC_MSG_ERROR([--enable-sp-asm requries SP to be enabled.])
574+
fi
575+
if test "$ENABLED_SP" = ""
576+
then
577+
ENABLED_SP=yes
578+
fi
579+
fi
569580

570581
# fastmath
571582
AC_ARG_ENABLE([fastmath],

0 commit comments

Comments
 (0)