@@ -5579,7 +5579,7 @@ int sp_abs(const sp_int* a, sp_int* r)
55795579#endif /* WOLFSSL_SP_INT_NEGATIVE */
55805580
55815581#if defined(WOLFSSL_SP_MATH_ALL) || !defined(NO_DH) || defined(HAVE_ECC) || \
5582- ( !defined(NO_RSA) && !defined(WOLFSSL_RSA_VERIFY_ONLY) )
5582+ !defined(NO_RSA)
55835583/* Compare absolute value of two multi-precision numbers.
55845584 *
55855585 * @param [in] a SP integer.
@@ -5662,9 +5662,7 @@ int sp_cmp_mag(const sp_int* a, const sp_int* b)
56625662#endif
56635663
56645664#if defined(WOLFSSL_SP_MATH_ALL) || defined(HAVE_ECC) || !defined(NO_DSA) || \
5665- defined(OPENSSL_EXTRA) || !defined(NO_DH) || \
5666- (!defined(NO_RSA) && (!defined(WOLFSSL_RSA_VERIFY_ONLY) || \
5667- defined(WOLFSSL_KEY_GEN)))
5665+ defined(OPENSSL_EXTRA) || !defined(NO_DH) || !defined(NO_RSA)
56685666/* Compare two multi-precision numbers.
56695667 *
56705668 * Assumes a and b are not NULL.
@@ -5706,9 +5704,8 @@ static int _sp_cmp(const sp_int* a, const sp_int* b)
57065704}
57075705#endif
57085706
5709- #if (!defined(NO_RSA) && !defined(WOLFSSL_RSA_VERIFY_ONLY)) || \
5710- !defined(NO_DSA) || defined(HAVE_ECC) || !defined(NO_DH) || \
5711- defined(WOLFSSL_SP_MATH_ALL)
5707+ #if !defined(NO_RSA) || !defined(NO_DSA) || defined(HAVE_ECC) || \
5708+ !defined(NO_DH) || defined(WOLFSSL_SP_MATH_ALL)
57125709/* Compare two multi-precision numbers.
57135710 *
57145711 * Pointers are compared such that NULL is less than not NULL.
@@ -6197,9 +6194,8 @@ int sp_set_int(sp_int* a, unsigned long n)
61976194}
61986195#endif /* WOLFSSL_SP_MATH_ALL || !NO_RSA */
61996196
6200- #if defined(WOLFSSL_SP_MATH_ALL) || \
6201- (!defined(NO_RSA) && !defined(WOLFSSL_RSA_VERIFY_ONLY)) || \
6202- !defined(NO_DH) || defined(HAVE_ECC)
6197+ #if defined(WOLFSSL_SP_MATH_ALL) || !defined(NO_RSA) || !defined(NO_DH) || \
6198+ defined(HAVE_ECC)
62036199/* Compare a one digit number with a multi-precision number.
62046200 *
62056201 * When a is NULL, MP_LT is returned.
0 commit comments