]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
slh-dsa: omit test of import PCT
authorPauli <ppzgs1@gmail.com>
Thu, 4 Sep 2025 21:24:19 +0000 (07:24 +1000)
committerNeil Horman <nhorman@openssl.org>
Sat, 6 Sep 2025 13:30:18 +0000 (09:30 -0400)
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)

(cherry picked from commit c25db4f867c8adc9d1a3b5336743c428a2bb8ca2)

test/slh_dsa_test.c

index 7b57787a1a1633f3297b01302ad8a5b130286fad..35a8d784de40d89f046b09772c5c4ec8caaef9d0 100644 (file)
@@ -186,19 +186,12 @@ static int slh_dsa_key_validate_failure_test(void)
     key = slh_dsa_key_from_data("SLH-DSA-SHA2-128f",
                                 slh_dsa_sha2_128s_0_keygen_priv,
                                 sizeof(slh_dsa_sha2_128s_0_keygen_priv), 0);
-    if (OSSL_PROVIDER_available(lib_ctx, "fips")
-            && fips_provider_version_match(lib_ctx, ">3.5.2")) {
-        /* The new pairwise test should fail in fips mode */
-        if (!TEST_ptr_null(key))
-            goto end;
-    } else {
-        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;
-    }
+    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;
 end:
     EVP_PKEY_CTX_free(vctx);