From b8835e874d380ed7f51fdda0b76e4db1ea287fbb Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 8 Jan 2025 13:32:07 +1100 Subject: [PATCH] test: run ML-KEM tests for both default and FIPS providers Reviewed-by: Matt Caswell Reviewed-by: Viktor Dukhovni Reviewed-by: Hugo Landau Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/26338) --- test/recipes/30-test_evp.t | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/test/recipes/30-test_evp.t b/test/recipes/30-test_evp.t index 10b593541df..ecb0b421aa4 100644 --- a/test/recipes/30-test_evp.t +++ b/test/recipes/30-test_evp.t @@ -93,6 +93,17 @@ push @files, qw( evppkey_kas.txt evppkey_mismatch.txt ) unless $no_ec; +push @files, qw( + evppkey_ml_kem_512_keygen.txt + evppkey_ml_kem_512_encap.txt + evppkey_ml_kem_512_decap.txt + evppkey_ml_kem_768_keygen.txt + evppkey_ml_kem_768_encap.txt + evppkey_ml_kem_768_decap.txt + evppkey_ml_kem_1024_keygen.txt + evppkey_ml_kem_1024_encap.txt + evppkey_ml_kem_1024_decap.txt + ) unless $no_ml_kem; # A list of tests that only run with the default provider # (i.e. The algorithms are not present in the fips provider) @@ -145,17 +156,6 @@ push @defltfiles, qw( evppkey_ml_dsa_siggen.txt evppkey_ml_dsa_sigver.txt ) unless $no_ml_dsa; -push @defltfiles, qw( - evppkey_ml_kem_512_keygen.txt - evppkey_ml_kem_512_encap.txt - evppkey_ml_kem_512_decap.txt - evppkey_ml_kem_768_keygen.txt - evppkey_ml_kem_768_encap.txt - evppkey_ml_kem_768_decap.txt - evppkey_ml_kem_1024_keygen.txt - evppkey_ml_kem_1024_encap.txt - evppkey_ml_kem_1024_decap.txt - ) unless $no_ml_kem; plan tests => + (scalar(@configs) * scalar(@files)) -- 2.47.2