From: Pauli Date: Thu, 8 Aug 2024 04:28:00 +0000 (+1000) Subject: test: add error reasons to KBKDF tests X-Git-Tag: openssl-3.4.0-alpha1~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3416c0bff9749fc3a4e654ce9919e318663e165d;p=thirdparty%2Fopenssl.git test: add error reasons to KBKDF 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_kbkdf_counter.txt b/test/recipes/30-test_evp_data/evpkdf_kbkdf_counter.txt index d83f4e2fe7a..cc01454c8b5 100644 --- a/test/recipes/30-test_evp_data/evpkdf_kbkdf_counter.txt +++ b/test/recipes/30-test_evp_data/evpkdf_kbkdf_counter.txt @@ -1869,6 +1869,7 @@ Ctrl.r = r:8 Ctrl.hexkey = hexkey:0ef9 Ctrl.hexinfo = hexinfo:56ec Result = KDF_CTRL_ERROR +Reason = invalid key length FIPSversion = >=3.4.0 KDF = KBKDF @@ -1895,6 +1896,7 @@ Ctrl.r = r:24 Ctrl.hexkey = hexkey:1122334455667788 Ctrl.hexinfo = hexinfo:1122334455667788 Result = KDF_CTRL_ERROR +Reason = invalid key length Availablein = default KDF = KBKDF diff --git a/test/recipes/30-test_evp_data/evpkdf_kbkdf_kmac.txt b/test/recipes/30-test_evp_data/evpkdf_kbkdf_kmac.txt index 002d3efce6c..a23b126d12d 100644 --- a/test/recipes/30-test_evp_data/evpkdf_kbkdf_kmac.txt +++ b/test/recipes/30-test_evp_data/evpkdf_kbkdf_kmac.txt @@ -918,6 +918,7 @@ Output = B53FE7F63A41A69BAE048E78F620084D98BCDF8A2C2B825971634B376A365831F0D2F93 Title = Negative test for FIPS minimum key length +Availablein = fips FIPSversion = >=3.4.0 KDF = KBKDF Ctrl.mac = mac:KMAC128 @@ -925,7 +926,9 @@ Ctrl.hexinfo = hexinfo:11223344 Ctrl.hexsalt = hexsalt:11223344 Ctrl.hexkey = hexkey:11223344 Result = KDF_CTRL_ERROR +Reason = invalid key length +Availablein = fips FIPSversion = >=3.4.0 KDF = KBKDF Ctrl.mac = mac:KMAC128