test: add error reasons to TLS 1.3 KDF tests

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)
This commit is contained in:
Pauli 2024-08-08 13:46:11 +10:00
parent a969c466b1
commit 41a9aeb672

View File

@ -4950,6 +4950,7 @@ Ctrl.mode = mode:EXTRACT_ONLY
Ctrl.digest = digest:SHAKE-256
Ctrl.key = hexkey:f8af6aea2d397baf2948a25b2834200692cff17eee9165e4e27babee9edefd05
Result = KDF_CTRL_ERROR
Reason = xof digests not allowed
Title = FIPS indicator tests
@ -4971,6 +4972,7 @@ Ctrl.mode = mode:EXTRACT_ONLY
Ctrl.digest = digest:SHA512-256
Ctrl.key = hexkey:f8af6aea2d397baf2948a25b2834200692cff17eee9165e4e27babee9edefd05
Output = c8240b43113bb8bd211ee97c5145d389e8074f76eeeaac74eb55691062a436e4
Reason = digest not allowed
# Test that the key whose length is shorter than 112 bits is rejected
FIPSversion = >=3.4.0
@ -4979,6 +4981,7 @@ Ctrl.mode = mode:EXTRACT_ONLY
Ctrl.digest = digest:SHA2-256
Ctrl.key = hexkey:0102030405060708090a0b
Result = KDF_CTRL_ERROR
Reason = invalid key length
FIPSversion = >=3.4.0
KDF = TLS13-KDF
@ -4989,6 +4992,7 @@ Ctrl.data = hexdata:7c92f68bd5bf3638ea338a6494722e1b44127e1b7e8aad535f2322a644ff
Ctrl.prefix = hexprefix:746c73313320
Ctrl.label = hexlabel:6320652074726166666963
Result = KDF_CTRL_ERROR
Reason = invalid key length
# Test that the key whose length is shorter than 112 bits is reported as
# unapproved