From 4aa85f956f01bab171ba3522b40f1a2d4a6b7fa0 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Mon, 17 Sep 2018 15:55:03 -0700 Subject: [PATCH] FIPSv2: RNG Update 1. The wolfcrypt test shouldn't check TestSeed() for old FIPS builds. --- wolfcrypt/test/test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 940f232ee..d9af1b827 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -8277,6 +8277,8 @@ int random_test(void) return ret; /* Test the seed check function. */ +#if !defined(HAVE_FIPS) || \ + (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2)) { word32 i, outputSz; @@ -8303,7 +8305,7 @@ int random_test(void) if (ret != 0) return -6406; } - +#endif return 0; }