]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test: add error reasons to PBKDF2 tests
authorPauli <ppzgs1@gmail.com>
Thu, 8 Aug 2024 03:37:38 +0000 (13:37 +1000)
committerPauli <ppzgs1@gmail.com>
Sat, 10 Aug 2024 06:35:54 +0000 (16:35 +1000)
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/25135)

test/recipes/30-test_evp_data/evpkdf_pbkdf2.txt

index 36f7375c24c9ddd3afc12451162b06fe2ecef293..6aca869b77473e8510386158945b340f8ee9fc57 100644 (file)
@@ -224,6 +224,7 @@ Ctrl.salt = salt:salt
 Ctrl.iter = iter:1
 Ctrl.digest = digest:shake-128
 Result = KDF_CTRL_ERROR
+Reason = xof digests not allowed
 
 Title = FIPS indicator tests
 
@@ -235,6 +236,7 @@ Ctrl.salt = salt:salt
 Ctrl.iter = iter:4096
 Ctrl.digest = digest:sha1
 Result = KDF_CTRL_ERROR
+Reason = invalid salt length
 
 # Test that the operation with unapproved parameters is reported as unapproved
 FIPSversion = >=3.4.0