Skip to content

Commit

Permalink
test: add error reasons to KBKDF tests
Browse files Browse the repository at this point in the history
Reviewed-by: Shane Lontis <[email protected]>
Reviewed-by: Tom Cosgrove <[email protected]>
(Merged from openssl#25135)
  • Loading branch information
paulidale committed Aug 10, 2024
1 parent fb51e4f commit 3416c0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/recipes/30-test_evp_data/evpkdf_kbkdf_counter.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions test/recipes/30-test_evp_data/evpkdf_kbkdf_kmac.txt
Original file line number Diff line number Diff line change
Expand Up @@ -918,14 +918,17 @@ Output = B53FE7F63A41A69BAE048E78F620084D98BCDF8A2C2B825971634B376A365831F0D2F93

Title = Negative test for FIPS minimum key length

Availablein = fips
FIPSversion = >=3.4.0
KDF = KBKDF
Ctrl.mac = mac:KMAC128
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
Expand Down

0 comments on commit 3416c0b

Please sign in to comment.