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

index 674a2442246e2259507d512f46d2a336cbca9309..71a000df6fa2a07d5c125832761085ad995d6c83 100644 (file)
@@ -4876,6 +4876,7 @@ Ctrl.hexxcghash = hexxcghash:a4ebd45934f56792b5112dcd75a1075fdc889245
 Ctrl.hexsession_id = hexsession_id:a4ebd45934f56792b5112dcd75a1075fdc889245
 Ctrl.type = type:A
 Result = KDF_CTRL_ERROR
+Reason = xof digests not allowed
 
 FIPSversion = <3.4.0
 KDF = SSHKDF
@@ -4897,6 +4898,7 @@ Ctrl.hexxcghash = hexxcghash:a4ebd45934f56792b5112dcd75a1075fdc889245
 Ctrl.hexsession_id = hexsession_id:a4ebd45934f56792b5112dcd75a1075fdc889245
 Ctrl.type = type:A
 Result = KDF_CTRL_ERROR
+Reason = digest not allowed
 
 # Test that the operation with unapproved digest function is is reported as
 # unapproved
@@ -4920,6 +4922,7 @@ Ctrl.hexxcghash = hexxcghash:a4ebd45934f56792b5112dcd75a1075fdc889245
 Ctrl.hexsession_id = hexsession_id:a4ebd45934f56792b5112dcd75a1075fdc889245
 Ctrl.type = type:A
 Result = KDF_CTRL_ERROR
+Reason = invalid key length
 
 # Test that the key whose length is shorter than 112 bits is reported as
 # unapproved