Skip to content

Commit 23397ba

Browse files
committed
Allow RSA blinding with FIPS
The API was added in 2016 so its in the latest FIPS versions
1 parent 6571f42 commit 23397ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfssl/wolfcrypt/settings.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,8 @@
430430
#ifdef HAVE_FIPS
431431
#if FIPS_VERSION_LT(2,0)
432432
#define WC_RNG RNG
433+
/* blinding adds API not available yet in FIPS mode */
434+
#undef WC_RSA_BLINDING
433435
#else
434436
/* RNG needs to be defined to WC_RNG anytime another library on the
435437
* system or other set of headers included by wolfSSL already defines
@@ -439,8 +441,6 @@
439441
#define RNG WC_RNG
440442
#endif
441443
#endif
442-
/* blinding adds API not available yet in FIPS mode */
443-
#undef WC_RSA_BLINDING
444444
#endif
445445

446446
/* old FIPS has only AES_BLOCK_SIZE. */

0 commit comments

Comments
 (0)