slh-dsa: omit test of import PCT

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/28447)
This commit is contained in:
Pauli 2025-09-05 07:24:19 +10:00 committed by Neil Horman
parent 7f7f75816f
commit c25db4f867
1 changed files with 6 additions and 13 deletions

View File

@ -186,19 +186,12 @@ static int slh_dsa_key_validate_failure_test(void)
key = slh_dsa_key_from_data("SLH-DSA-SHA2-128f", key = slh_dsa_key_from_data("SLH-DSA-SHA2-128f",
slh_dsa_sha2_128s_0_keygen_priv, slh_dsa_sha2_128s_0_keygen_priv,
sizeof(slh_dsa_sha2_128s_0_keygen_priv), 0); sizeof(slh_dsa_sha2_128s_0_keygen_priv), 0);
if (OSSL_PROVIDER_available(lib_ctx, "fips") if (!TEST_ptr(key))
&& fips_provider_version_match(lib_ctx, ">3.5.2")) { goto end;
/* The new pairwise test should fail in fips mode */ if (!TEST_ptr(vctx = EVP_PKEY_CTX_new_from_pkey(lib_ctx, key, NULL)))
if (!TEST_ptr_null(key)) goto end;
goto end; if (!TEST_int_eq(EVP_PKEY_pairwise_check(vctx), 0))
} else { goto end;
if (!TEST_ptr(key))
goto end;
if (!TEST_ptr(vctx = EVP_PKEY_CTX_new_from_pkey(lib_ctx, key, NULL)))
goto end;
if (!TEST_int_eq(EVP_PKEY_pairwise_check(vctx), 0))
goto end;
}
ret = 1; ret = 1;
end: end:
EVP_PKEY_CTX_free(vctx); EVP_PKEY_CTX_free(vctx);