mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
test: add error reasons to HKDF 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:
parent
77915ae8eb
commit
8c24acda18
@ -232,6 +232,7 @@ Ctrl.IKM = hexkey:0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
|
||||
Ctrl.salt = hexsalt:000102030405060708090a0b0c
|
||||
Ctrl.info = hexinfo:f0f1f2f3f4f5f6f7f8f9
|
||||
Result = KDF_CTRL_ERROR
|
||||
Reason = xof digests not allowed
|
||||
|
||||
Title = FIPS indicator tests
|
||||
|
||||
@ -243,6 +244,7 @@ Ctrl.IKM = hexkey:0b0b0b0b0b0b0b0b0b0b0b
|
||||
Ctrl.salt = hexsalt:000102030405060708090a0b0c
|
||||
Ctrl.info = hexinfo:f0f1f2f3f4f5f6f7f8f9
|
||||
Result = KDF_CTRL_ERROR
|
||||
Reason = invalid key length
|
||||
|
||||
# Test that the key whose length is shorter than 112 bits is reported as
|
||||
# unapproved
|
||||
|
@ -204,6 +204,7 @@ Ctrl.IKM = hexkey:0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
|
||||
Ctrl.salt = hexsalt:000102030405060708090a0b0c
|
||||
Ctrl.info = hexinfo:f0f1f2f3f4f5f6f7f8f9
|
||||
Result = PKEY_CTRL_ERROR
|
||||
Reason = xof digests not allowed
|
||||
|
||||
Title = FIPS indicator tests
|
||||
|
||||
@ -215,6 +216,7 @@ Ctrl.IKM = hexkey:0b0b0b0b0b0b0b0b0b0b0b
|
||||
Ctrl.salt = hexsalt:000102030405060708090a0b0c
|
||||
Ctrl.info = hexinfo:f0f1f2f3f4f5f6f7f8f9
|
||||
Result = PKEY_CTRL_ERROR
|
||||
Reason = invalid key length
|
||||
|
||||
# Test that the key whose length is shorter than 112 bits is reported as
|
||||
# unapproved
|
||||
|
Loading…
Reference in New Issue
Block a user