From: Pauli Date: Thu, 8 Aug 2024 03:35:17 +0000 (+1000) Subject: test: add error reasons to HKDF tests X-Git-Tag: openssl-3.4.0-alpha1~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c24acda1801a99f1aa69d9ff90019301606266e;p=thirdparty%2Fopenssl.git test: add error reasons to HKDF 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_hkdf.txt b/test/recipes/30-test_evp_data/evpkdf_hkdf.txt index 262f336bec6..44f7cece044 100644 --- a/test/recipes/30-test_evp_data/evpkdf_hkdf.txt +++ b/test/recipes/30-test_evp_data/evpkdf_hkdf.txt @@ -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 diff --git a/test/recipes/30-test_evp_data/evppkey_kdf_hkdf.txt b/test/recipes/30-test_evp_data/evppkey_kdf_hkdf.txt index a01178f192f..2f573c3708b 100644 --- a/test/recipes/30-test_evp_data/evppkey_kdf_hkdf.txt +++ b/test/recipes/30-test_evp_data/evppkey_kdf_hkdf.txt @@ -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