]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
FIPS: Change fips tests to use SHA2 for corruption test.
authorslontis <shane.lontis@oracle.com>
Wed, 21 Aug 2024 23:09:14 +0000 (09:09 +1000)
committerTomas Mraz <tomas@openssl.org>
Fri, 23 Aug 2024 08:23:37 +0000 (10:23 +0200)
Fixes cross testing with OpenSSL 3.4 with removed SHA1 from the self
tests.

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25262)

test/recipes/03-test_fipsinstall.t

index 905bb7bfe371e51ddc6cdecbad851325701db685..4dc7da0768a97931e86620cca1fa7c54aceb9197 100644 (file)
@@ -246,7 +246,7 @@ SKIP: {
                  '-module', $infile,
                  '-provider_name', 'fips', '-mac_name', 'HMAC',
                  '-macopt', 'digest:SHA256', '-macopt', "hexkey:$fipskey",
-                 '-section_name', 'fips_sect', '-corrupt_desc', 'SHA1'])),
+                 '-section_name', 'fips_sect', '-corrupt_desc', 'SHA2'])),
        "fipsinstall fails when the digest result is corrupted");
 
     # corrupt another digest