From c5aa13021aa8c27312b04a5bc57fa13c0b3460fa Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Fri, 7 Jun 2019 16:09:35 -0600 Subject: [PATCH] Adjustment to test.c for merge of WCv4.0.1 changes --- wolfcrypt/test/test.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 9e29cf59e..7ba338c45 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -5457,10 +5457,17 @@ static int aes_key_size_test(void) word32 keySize; #endif +#if !defined(HAVE_FIPS) || \ + defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2) + /* w/ FIPS v1 (cert 2425) wc_AesInit just returns 0 always as it's not + * supported with that FIPS version */ ret = wc_AesInit(NULL, HEAP_HINT, devId); if (ret != BAD_FUNC_ARG) return -4800; +#endif + ret = wc_AesInit(&aes, HEAP_HINT, devId); + /* 0 check OK for FIPSv1 */ if (ret != 0) return -4801;