diff --git a/tests/api.c b/tests/api.c index ddfdbe7b8..9b1581c3d 100644 --- a/tests/api.c +++ b/tests/api.c @@ -23211,7 +23211,9 @@ static void test_wc_PKCS7_EncodeDecodeEnvelopedData (void) { #if defined(HAVE_PKCS7) PKCS7* pkcs7; +#ifdef ECC_TIMING_RESISTANT WC_RNG rng; +#endif word32 tempWrd32 = 0; byte* tmpBytePtr = NULL; const char input[] = "Test data to encode."; diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 0966a4d41..566c3adc2 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -26224,7 +26224,9 @@ static int pkcs7enveloped_run_vectors(byte* rsaCert, word32 rsaCertSz, byte *enveloped; byte *decoded; PKCS7* pkcs7; +#ifdef ECC_TIMING_RESISTANT WC_RNG rng; +#endif #ifdef PKCS7_OUTPUT_TEST_BUNDLES XFILE pkcs7File; #endif