From: Pauli Date: Thu, 8 Aug 2024 03:48:14 +0000 (+1000) Subject: test: add error reasons to X9.63 test X-Git-Tag: openssl-3.4.0-alpha1~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90f64d064ece725f832dbd8ded300ac0dbeea5c6;p=thirdparty%2Fopenssl.git test: add error reasons to X9.63 test 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_x963.txt b/test/recipes/30-test_evp_data/evpkdf_x963.txt index 9341217a73d..c6e76f3a3e6 100644 --- a/test/recipes/30-test_evp_data/evpkdf_x963.txt +++ b/test/recipes/30-test_evp_data/evpkdf_x963.txt @@ -135,6 +135,7 @@ Ctrl.digest = digest:SHAKE-256 Ctrl.hexsecret = hexsecret:fd17198b89ab39c4ab5d7cca363b82f9fd7e23c3984dc8a2 Ctrl.hexinfo = hexinfo:856a53f3e36a26bbc5792879f307cce2 Result = KDF_CTRL_ERROR +Reason = xof digests not allowed Title = FIPS indicator tests @@ -145,6 +146,7 @@ Ctrl.digest = digest:SHA1 Ctrl.hexsecret = hexsecret:fd17198b89ab39c4ab5d7cca363b82f9fd7e23c3984dc8a2 Ctrl.hexinfo = hexinfo:856a53f3e36a26bbc5792879f307cce2 Result = KDF_CTRL_ERROR +Reason = digest not allowed # Test that the operation with unapproved digest function is is reported as # unapproved @@ -164,6 +166,7 @@ Ctrl.digest = digest:SHA224 Ctrl.hexsecret = hexsecret:0102030405060908090a0b Ctrl.hexinfo = hexinfo:0102030405060708090a0b0c0d0e0f10 Result = KDF_CTRL_ERROR +Reason = invalid key length # Test that the key whose length is shorter than 112 bits is reported as # unapproved