mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #3815 from SparkiDev/sp_math_keygen
SP int: get keygen working with SP math again
This commit is contained in:
13
configure.ac
13
configure.ac
@ -6530,13 +6530,16 @@ echo " * Fast RSA: $ENABLED_FAST_RSA"
|
|||||||
echo " * Single Precision: $ENABLED_SP"
|
echo " * Single Precision: $ENABLED_SP"
|
||||||
if test "$ENABLED_SP_MATH_ALL" != "no"
|
if test "$ENABLED_SP_MATH_ALL" != "no"
|
||||||
then
|
then
|
||||||
echo " * SP math implementation: all"
|
ENABLED_SP_MATH_DESC="all"
|
||||||
elif test "$ENABLED_SP_MATH" != "no"
|
|
||||||
then
|
|
||||||
echo " * SP math implementation: restricted"
|
|
||||||
else
|
else
|
||||||
echo " * SP math implementation: no"
|
if test "$ENABLED_SP_MATH" != "no"
|
||||||
|
then
|
||||||
|
ENABLED_SP_MATH_DESC="restricted"
|
||||||
|
else
|
||||||
|
ENABLED_SP_MATH_DESC="no"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
echo " * SP math implementation: $ENABLED_SP_MATH_DESC"
|
||||||
echo " * Async Crypto: $ENABLED_ASYNCCRYPT"
|
echo " * Async Crypto: $ENABLED_ASYNCCRYPT"
|
||||||
echo " * PKCS#11: $ENABLED_PKCS11"
|
echo " * PKCS#11: $ENABLED_PKCS11"
|
||||||
echo " * PKCS#12: $ENABLED_PKCS12"
|
echo " * PKCS#12: $ENABLED_PKCS12"
|
||||||
|
@ -13230,7 +13230,7 @@ int sp_prime_is_prime_ex(sp_int* a, int t, int* result, WC_RNG* rng)
|
|||||||
}
|
}
|
||||||
#endif /* WOLFSSL_SP_MATH_ALL || WOLFSSL_HAVE_SP_DH */
|
#endif /* WOLFSSL_SP_MATH_ALL || WOLFSSL_HAVE_SP_DH */
|
||||||
|
|
||||||
#if defined(WOLFSSL_SP_MATH_ALL) && !defined(NO_RSA) && defined(WOLFSSL_KEY_GEN)
|
#if !defined(NO_RSA) && defined(WOLFSSL_KEY_GEN)
|
||||||
|
|
||||||
/* Calculates the Greatest Common Denominator (GCD) of a and b into r.
|
/* Calculates the Greatest Common Denominator (GCD) of a and b into r.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user