SP int: fix _sp_mul_d inclusion checks

configuration: --disable-asn --disable-filesystem --disable-shared --enable-cryptonly --enable-sp=smallrsa2048 --enable-sp-math --disable-dh --disable-ecc --disable-sha224 --enable-rsavfy --enable-rsapss
This commit is contained in:
Sean Parkinson
2021-01-20 12:31:53 +10:00
parent eaa1bc1ace
commit e3182ff06e

View File

@@ -3032,8 +3032,9 @@ int sp_sub_d(sp_int* a, sp_int_digit d, sp_int* r)
#endif /* (!NO_RSA && !WOLFSSL_RSA_VERIFY_ONLY) || !NO_DH || HAVE_ECC ||
* !NO_DSA */
#if defined(WOLFSSL_SP_MATH_ALL) || defined(WOLFSSL_SP_SMALL) || \
(defined(WOLFSSL_KEY_GEN) && !defined(NO_RSA))
#if defined(WOLFSSL_SP_MATH_ALL) || defined(WOLFSSL_SP_SMALL) && \
(!defined(NO_DH) || defined(HAVE_ECC) || \
(!defined(NO_RSA) && !defined(WOLFSSL_RSA_VERIFY_ONLY)))
/* Multiply a by digit n and put result into r shifting up o digits.
* r = (a * n) << (o * SP_WORD_SIZE)
*