From: Pauli Date: Wed, 8 Jan 2025 02:32:07 +0000 (+1100) Subject: test: run ML-KEM tests for both default and FIPS providers X-Git-Tag: openssl-3.5.0-alpha1~537 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8835e874d380ed7f51fdda0b76e4db1ea287fbb;p=thirdparty%2Fopenssl.git 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) --- 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))