From: Pauli Date: Thu, 8 Aug 2024 03:39:46 +0000 (+1000) Subject: test: add error reasons to SSHKDF tests X-Git-Tag: openssl-3.4.0-alpha1~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20284908c449c2544861ad6df325d616263c62f8;p=thirdparty%2Fopenssl.git test: add error reasons to SSHKDF tests Reviewed-by: Shane Lontis Reviewed-by: Tom Cosgrove (Merged from https://github.com/openssl/openssl/pull/25135) --- diff --git a/test/recipes/30-test_evp_data/evpkdf_ssh.txt b/test/recipes/30-test_evp_data/evpkdf_ssh.txt index 674a2442246..71a000df6fa 100644 --- a/test/recipes/30-test_evp_data/evpkdf_ssh.txt +++ b/test/recipes/30-test_evp_data/evpkdf_ssh.txt @@ -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