Remove FIPS condition on IV gen test.
authorPauli <pauli@openssl.org>
Mon, 19 Sep 2022 00:31:12 +0000 (10:31 +1000)
committerPauli <pauli@openssl.org>
Wed, 21 Sep 2022 07:04:36 +0000 (17:04 +1000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19237)

(cherry picked from commit 3fd255acb7b65a30afd1b23e17db2163fb9ffd8d)

test/aesgcmtest.c

index 04cd91db98070b274e575dec31f7c21712757cda..cdb0cbd0216df07b2a78362ec84c04608f5bc091 100644 (file)
@@ -116,7 +116,6 @@ static int badkeylen_test(void)
     return ret;
 }
 
-#ifdef FIPS_MODULE
 static int ivgen_test(void)
 {
     unsigned char iv_gen[16];
@@ -127,14 +126,11 @@ static int ivgen_test(void)
     return do_encrypt(iv_gen, ct, &ctlen, tag, &taglen)
            && do_decrypt(iv_gen, ct, ctlen, tag, taglen);
 }
-#endif /* FIPS_MODULE */
 
 int setup_tests(void)
 {
     ADD_TEST(kat_test);
     ADD_TEST(badkeylen_test);
-#ifdef FIPS_MODULE
     ADD_TEST(ivgen_test);
-#endif /* FIPS_MODULE */
     return 1;
 }