]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test: add FIPS provider version checks for 3.4 compatibility
authorPauli <ppzgs1@gmail.com>
Thu, 8 Aug 2024 00:55:15 +0000 (10:55 +1000)
committerPauli <ppzgs1@gmail.com>
Sat, 10 Aug 2024 06:33:21 +0000 (16:33 +1000)
Tests that are changed by #25020 mandate updates to older test suite data to
pass because the FIPS provider's behaviour changes in 3.4.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/25133)

(cherry picked from commit 0793071efaa7f61828b555128587db48c5d24962)

test/recipes/30-test_evp_data/evppkey_dsa.txt
test/recipes/30-test_evp_data/evppkey_ecdsa.txt
test/recipes/30-test_evp_data/evppkey_rsa_common.txt

index debd62bca84cbcc8b3920ec129e935e1cdb6ddf8..65fee031be178346f46ffb1b328f5217c693ffdb 100644 (file)
@@ -270,6 +270,7 @@ Title = FIPS Tests (using different key sizes and digests)
 
 # Test sign with a 2048 bit key with N == 160 is not allowed in fips mode
 Availablein = fips
+FIPSversion = <3.4.0
 DigestSign = SHA256
 Key = DSA-2048-160
 Input = "Hello"
@@ -324,6 +325,7 @@ Title = Fips Negative Tests (using different key sizes and digests)
 
 # Test sign with a 1024 bit key is not allowed in fips mode
 Availablein = fips
+FIPSversion = <3.4.0
 DigestSign = SHA256
 Securitycheck = 1
 Key = DSA-1024-FIPS186-2
@@ -340,6 +342,7 @@ Result = DIGESTSIGNINIT_ERROR
 
 # Test sign with a 3072 bit key with N == 224 is not allowed in fips mode
 Availablein = fips
+FIPSversion = <3.4.0
 DigestSign = SHA256
 Securitycheck = 1
 Key = DSA-3072-224
@@ -348,6 +351,7 @@ Result = DIGESTSIGNINIT_ERROR
 
 # Test sign with a 4096 bit key is not allowed in fips mode
 Availablein = fips
+FIPSversion = <3.4.0
 DigestSign = SHA256
 Securitycheck = 1
 Key = DSA-4096-256
index ec3c032aba8d8f25b96aa82918a5cd02bc0095d3..6043ade3bb67730c115cee6c878e8ae86d62a6e1 100644 (file)
@@ -216,6 +216,7 @@ Result = DIGESTSIGNINIT_ERROR
 
 # Test that SHA1 is not allowed in fips mode for signing
 Availablein = fips
+FIPSversion = <3.4.0
 Sign = P-256
 Securitycheck = 1
 Ctrl = digest:SHA1
index 8680797b901c89d0af902ecc49d74d795e596c77..3341ccc03565b9784dd843211466c8e5e207bf88 100644 (file)
@@ -1344,6 +1344,7 @@ Output = 80382819f51b197c42f9fc02a85198683d918059afc013ae155992442563dd289700829
 
 # Signing with SHA1 is not allowed in fips mode
 Availablein = fips
+FIPSversion = <3.4.0
 DigestSign = SHA1
 Securitycheck = 1
 Key = RSA-2048