forked from wolfSSL/wolfssl
Merge pull request #3667 from SparkiDev/sp_fixes_4
SP int: fix _sp_mul_d inclusion checks
This commit is contained in:
@ -3017,8 +3017,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)
|
||||
*
|
||||
|
Reference in New Issue
Block a user