From 90f64d064ece725f832dbd8ded300ac0dbeea5c6 Mon Sep 17 00:00:00 2001 From: Pauli Date: Thu, 8 Aug 2024 13:48:14 +1000 Subject: [PATCH] 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) --- test/recipes/30-test_evp_data/evpkdf_x963.txt | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.3