Guard against WC_RSA_BLINDING in api.c unit test.

This commit is contained in:
jrblixt
2017-07-21 16:34:45 -06:00
parent 9e3497b3d5
commit e68ceb3d2c

View File

@@ -7505,7 +7505,7 @@ static int test_wc_RsaKeyToPublicDer (void)
static int test_wc_RsaPublicEncryptDecrypt (void) static int test_wc_RsaPublicEncryptDecrypt (void)
{ {
#if !defined(NO_RSA) && defined(WOLFSSL_KEY_GEN)\ #if !defined(NO_RSA) && defined(WOLFSSL_KEY_GEN)\
&& !defined(HAVE_FIPS) && defined(WC_RSA_BLINDING)
RsaKey key; RsaKey key;
WC_RNG rng; WC_RNG rng;
const char* inStr = "Everyone gets Friday off."; const char* inStr = "Everyone gets Friday off.";
@@ -7580,7 +7580,7 @@ static int test_wc_RsaPublicEncryptDecrypt (void)
*/ */
static int test_wc_RsaPublicEncryptDecrypt_ex (void) static int test_wc_RsaPublicEncryptDecrypt_ex (void)
{ {
#if !defined(NO_RSA) && defined(WOLFSSL_KEY_GEN) && !defined(HAVE_FIPS)\ #if !defined(NO_RSA) && defined(WOLFSSL_KEY_GEN) && defined(WC_RSA_BLINDING)\
&& !defined(WC_NO_RSA_OAEP) && !defined(HAVE_USER_RSA) && !defined(WC_NO_RSA_OAEP) && !defined(HAVE_USER_RSA)
RsaKey key; RsaKey key;
WC_RNG rng; WC_RNG rng;