Skip to content

Commit e4a9ffd

Browse files
authored
Merge pull request #9031 from danielinux/fix-regression-rsa-verify-only
Fix warning with WOLFSSL_RSA_VERIFY_ONLY
2 parents c25efce + 09de113 commit e4a9ffd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wolfcrypt/src/misc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,8 @@ WC_MISC_STATIC WC_INLINE int ConstantCompare(const byte* a, const byte* b,
634634
#endif
635635

636636

637-
#if defined(WOLFSSL_NO_CT_OPS) && (!defined(NO_RSA) || !defined(WOLFCRYPT_ONLY))
637+
#if defined(WOLFSSL_NO_CT_OPS) && (!defined(NO_RSA) || !defined(WOLFCRYPT_ONLY)) \
638+
&& (!defined(WOLFSSL_RSA_VERIFY_ONLY))
638639
/* constant time operations with mask are required for RSA and TLS operations */
639640
#warning constant time operations required unless using NO_RSA & WOLFCRYPT_ONLY
640641
#endif

0 commit comments

Comments
 (0)