]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test: add error reasons to KBKDF tests
authorPauli <ppzgs1@gmail.com>
Thu, 8 Aug 2024 04:28:00 +0000 (14:28 +1000)
committerPauli <ppzgs1@gmail.com>
Sat, 10 Aug 2024 06:36:03 +0000 (16:36 +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_kbkdf_counter.txt
test/recipes/30-test_evp_data/evpkdf_kbkdf_kmac.txt

index d83f4e2fe7add1df3402e3530425d19f50cba075..cc01454c8b530a9b42ee82f09e52b21c2f73335a 100644 (file)
@@ -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
index 002d3efce6c0955c9ab919d80bc79f973e5e3682..a23b126d12d2a1114401eeaa320cf15adad3809c 100644 (file)
@@ -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