]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test: add error reasons to Single Step KDF tests
authorPauli <ppzgs1@gmail.com>
Thu, 8 Aug 2024 03:40:57 +0000 (13:40 +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_ss.txt

index 08d4e8c703572ada3a96f28dc44a92ae69dffdd5..011ddabc2ae4e0bea3c539173c530fc50769da29 100644 (file)
@@ -1151,6 +1151,7 @@ Ctrl.digest = digest:SHAKE-256
 Ctrl.hexsecret = hexsecret:d09a6b1a472f930db4f5e6b967900744
 Ctrl.hexinfo = hexinfo:b117255ab5f1b6b96fc434b0
 Result = KDF_CTRL_ERROR
+Reason = xof digests not allowed
 
 Title = FIPS indicator tests
 
@@ -1161,6 +1162,7 @@ Ctrl.digest = digest:SHA1
 Ctrl.hexsecret = hexsecret:d7e6
 Ctrl.hexinfo = hexinfo:0bbe1fa8722023d7c3da4fff
 Result = KDF_CTRL_ERROR
+Reason = invalid key length
 
 # Test that the key whose length is shorter than 112 bits is reported as
 # unapproved