mirror of https://github.com/wolfSSL/wolfssl.git
Fix to not warn about `WC_RSA_BLINDING` in FIPS mode. Add `WC_RSA_BLINDING` to Windows `user_settings.h`.
parent
171796e8e2
commit
792fcefbb7
|
@ -22,7 +22,11 @@
|
||||||
#define NO_RABBIT
|
#define NO_RABBIT
|
||||||
#define NO_DSA
|
#define NO_DSA
|
||||||
#define NO_MD4
|
#define NO_MD4
|
||||||
#elif defined(WOLFSSL_LIB)
|
#else
|
||||||
|
/* Enables blinding mode, to prevent timing attacks */
|
||||||
|
#define WC_RSA_BLINDING
|
||||||
|
|
||||||
|
#if defined(WOLFSSL_LIB)
|
||||||
/* The lib */
|
/* The lib */
|
||||||
#define OPENSSL_EXTRA
|
#define OPENSSL_EXTRA
|
||||||
#define WOLFSSL_RIPEMD
|
#define WOLFSSL_RIPEMD
|
||||||
|
@ -36,6 +40,7 @@
|
||||||
/* The servers and clients */
|
/* The servers and clients */
|
||||||
#define OPENSSL_EXTRA
|
#define OPENSSL_EXTRA
|
||||||
#define NO_PSK
|
#define NO_PSK
|
||||||
|
#endif
|
||||||
#endif /* HAVE_FIPS */
|
#endif /* HAVE_FIPS */
|
||||||
|
|
||||||
#endif /* _WIN_USER_SETTINGS_H_ */
|
#endif /* _WIN_USER_SETTINGS_H_ */
|
||||||
|
|
|
@ -1601,7 +1601,7 @@ extern void uITRON4_free(void *p) ;
|
||||||
#ifndef WC_NO_HARDEN
|
#ifndef WC_NO_HARDEN
|
||||||
#if (defined(USE_FAST_MATH) && !defined(TFM_TIMING_RESISTANT)) || \
|
#if (defined(USE_FAST_MATH) && !defined(TFM_TIMING_RESISTANT)) || \
|
||||||
(defined(HAVE_ECC) && !defined(ECC_TIMING_RESISTANT)) || \
|
(defined(HAVE_ECC) && !defined(ECC_TIMING_RESISTANT)) || \
|
||||||
(!defined(NO_RSA) && !defined(WC_RSA_BLINDING))
|
(!defined(NO_RSA) && !defined(WC_RSA_BLINDING) && !defined(HAVE_FIPS))
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
#warning "For timing resistance / side-channel attack prevention consider using harden options"
|
#warning "For timing resistance / side-channel attack prevention consider using harden options"
|
||||||
|
|
Loading…
Reference in New Issue