From 57222bbc0c4a7f6ba10ff19da9ee554eff6a3220 Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Thu, 18 Apr 2024 17:25:03 +0100 Subject: [PATCH] Skip P-192 tests in FIPS Signed-off-by: Dimitri John Ledkov --- test/acvp_test.inc | 9 --------- test/recipes/65-test_cmp_protect.t | 3 +++ test/recipes/65-test_cmp_vfy.t | 3 +++ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/test/acvp_test.inc b/test/acvp_test.inc index ad11d3ae1eb50..894a0bff9d7f8 100644 --- a/test/acvp_test.inc +++ b/test/acvp_test.inc @@ -211,15 +211,6 @@ static const unsigned char ecdsa_sigver_s1[] = { 0xB1, 0xAC, }; static const struct ecdsa_sigver_st ecdsa_sigver_data[] = { - { - "SHA-1", - "P-192", - ITM(ecdsa_sigver_msg0), - ITM(ecdsa_sigver_pub0), - ITM(ecdsa_sigver_r0), - ITM(ecdsa_sigver_s0), - PASS, - }, { "SHA2-512", "P-521", diff --git a/test/recipes/65-test_cmp_protect.t b/test/recipes/65-test_cmp_protect.t index 92c91d8b88aca..86356c735d0e9 100644 --- a/test/recipes/65-test_cmp_protect.t +++ b/test/recipes/65-test_cmp_protect.t @@ -27,6 +27,9 @@ plan skip_all => "This test is not supported in a no-cmp build" plan skip_all => "This test is not supported in a shared library build on Windows" if $^O eq 'MSWin32' && !disabled("shared"); +plan skip_all => "Intermediate_CA.crt uses legacy P-192" + unless $no_fips; + plan tests => 2 + ($no_fips ? 0 : 1); #fips test my @basic_cmd = ("cmp_protect_test", diff --git a/test/recipes/65-test_cmp_vfy.t b/test/recipes/65-test_cmp_vfy.t index f722800e2765d..166fa5587cfa9 100644 --- a/test/recipes/65-test_cmp_vfy.t +++ b/test/recipes/65-test_cmp_vfy.t @@ -27,6 +27,9 @@ plan skip_all => "This test is not supported in a no-cmp build" plan skip_all => "This test is not supported in a no-ec build" if disabled("ec"); +plan skip_all => "Intermediate_CA.crt uses legacy P-192" + unless $no_fips; + plan tests => 2 + ($no_fips ? 0 : 1); #fips test my @basic_cmd = ("cmp_vfy_test",