From 082a1c7c541f7c947f709414767a2dd555d07203 Mon Sep 17 00:00:00 2001 From: "Ganyu (Bruce) Xu" Date: Wed, 1 Oct 2025 10:39:00 -0400 Subject: [PATCH] Exclude pre-hashed SLH-DSA variants from OQS_ALGS_ENABLED=STD Signed-off-by: Ganyu (Bruce) Xu --- .CMake/alg_support.cmake | 2 +- scripts/copy_from_upstream/copy_from_upstream.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.CMake/alg_support.cmake b/.CMake/alg_support.cmake index c027408a0..9c7fc77d4 100644 --- a/.CMake/alg_support.cmake +++ b/.CMake/alg_support.cmake @@ -433,7 +433,7 @@ if(NOT ((OQS_MINIMAL_BUILD STREQUAL "") OR (OQS_MINIMAL_BUILD STREQUAL "OFF"))) filter_algs("${OQS_MINIMAL_BUILD}") elseif (${OQS_ALGS_ENABLED} STREQUAL "STD") ##### OQS_COPY_FROM_UPSTREAM_FRAGMENT_LIST_STANDARDIZED_ALGS_START - filter_algs("KEM_ml_kem_512;KEM_ml_kem_768;KEM_ml_kem_1024;SIG_ml_dsa_44;SIG_ml_dsa_65;SIG_ml_dsa_87;SIG_falcon_512;SIG_falcon_1024;SIG_falcon_padded_512;SIG_falcon_padded_1024;SIG_slh_dsa_pure_sha2_128s;SIG_slh_dsa_pure_sha2_128f;SIG_slh_dsa_pure_sha2_192s;SIG_slh_dsa_pure_sha2_192f;SIG_slh_dsa_pure_sha2_256s;SIG_slh_dsa_pure_sha2_256f;SIG_slh_dsa_pure_shake_128s;SIG_slh_dsa_pure_shake_128f;SIG_slh_dsa_pure_shake_192s;SIG_slh_dsa_pure_shake_192f;SIG_slh_dsa_pure_shake_256s;SIG_slh_dsa_pure_shake_256f;SIG_slh_dsa_sha2_224_prehash_sha2_128s;SIG_slh_dsa_sha2_224_prehash_sha2_128f;SIG_slh_dsa_sha2_224_prehash_sha2_192s;SIG_slh_dsa_sha2_224_prehash_sha2_192f;SIG_slh_dsa_sha2_224_prehash_sha2_256s;SIG_slh_dsa_sha2_224_prehash_sha2_256f;SIG_slh_dsa_sha2_224_prehash_shake_128s;SIG_slh_dsa_sha2_224_prehash_shake_128f;SIG_slh_dsa_sha2_224_prehash_shake_192s;SIG_slh_dsa_sha2_224_prehash_shake_192f;SIG_slh_dsa_sha2_224_prehash_shake_256s;SIG_slh_dsa_sha2_224_prehash_shake_256f;SIG_slh_dsa_sha2_256_prehash_sha2_128s;SIG_slh_dsa_sha2_256_prehash_sha2_128f;SIG_slh_dsa_sha2_256_prehash_sha2_192s;SIG_slh_dsa_sha2_256_prehash_sha2_192f;SIG_slh_dsa_sha2_256_prehash_sha2_256s;SIG_slh_dsa_sha2_256_prehash_sha2_256f;SIG_slh_dsa_sha2_256_prehash_shake_128s;SIG_slh_dsa_sha2_256_prehash_shake_128f;SIG_slh_dsa_sha2_256_prehash_shake_192s;SIG_slh_dsa_sha2_256_prehash_shake_192f;SIG_slh_dsa_sha2_256_prehash_shake_256s;SIG_slh_dsa_sha2_256_prehash_shake_256f;SIG_slh_dsa_sha2_384_prehash_sha2_128s;SIG_slh_dsa_sha2_384_prehash_sha2_128f;SIG_slh_dsa_sha2_384_prehash_sha2_192s;SIG_slh_dsa_sha2_384_prehash_sha2_192f;SIG_slh_dsa_sha2_384_prehash_sha2_256s;SIG_slh_dsa_sha2_384_prehash_sha2_256f;SIG_slh_dsa_sha2_384_prehash_shake_128s;SIG_slh_dsa_sha2_384_prehash_shake_128f;SIG_slh_dsa_sha2_384_prehash_shake_192s;SIG_slh_dsa_sha2_384_prehash_shake_192f;SIG_slh_dsa_sha2_384_prehash_shake_256s;SIG_slh_dsa_sha2_384_prehash_shake_256f;SIG_slh_dsa_sha2_512_prehash_sha2_128s;SIG_slh_dsa_sha2_512_prehash_sha2_128f;SIG_slh_dsa_sha2_512_prehash_sha2_192s;SIG_slh_dsa_sha2_512_prehash_sha2_192f;SIG_slh_dsa_sha2_512_prehash_sha2_256s;SIG_slh_dsa_sha2_512_prehash_sha2_256f;SIG_slh_dsa_sha2_512_prehash_shake_128s;SIG_slh_dsa_sha2_512_prehash_shake_128f;SIG_slh_dsa_sha2_512_prehash_shake_192s;SIG_slh_dsa_sha2_512_prehash_shake_192f;SIG_slh_dsa_sha2_512_prehash_shake_256s;SIG_slh_dsa_sha2_512_prehash_shake_256f;SIG_slh_dsa_sha2_512_224_prehash_sha2_128s;SIG_slh_dsa_sha2_512_224_prehash_sha2_128f;SIG_slh_dsa_sha2_512_224_prehash_sha2_192s;SIG_slh_dsa_sha2_512_224_prehash_sha2_192f;SIG_slh_dsa_sha2_512_224_prehash_sha2_256s;SIG_slh_dsa_sha2_512_224_prehash_sha2_256f;SIG_slh_dsa_sha2_512_224_prehash_shake_128s;SIG_slh_dsa_sha2_512_224_prehash_shake_128f;SIG_slh_dsa_sha2_512_224_prehash_shake_192s;SIG_slh_dsa_sha2_512_224_prehash_shake_192f;SIG_slh_dsa_sha2_512_224_prehash_shake_256s;SIG_slh_dsa_sha2_512_224_prehash_shake_256f;SIG_slh_dsa_sha2_512_256_prehash_sha2_128s;SIG_slh_dsa_sha2_512_256_prehash_sha2_128f;SIG_slh_dsa_sha2_512_256_prehash_sha2_192s;SIG_slh_dsa_sha2_512_256_prehash_sha2_192f;SIG_slh_dsa_sha2_512_256_prehash_sha2_256s;SIG_slh_dsa_sha2_512_256_prehash_sha2_256f;SIG_slh_dsa_sha2_512_256_prehash_shake_128s;SIG_slh_dsa_sha2_512_256_prehash_shake_128f;SIG_slh_dsa_sha2_512_256_prehash_shake_192s;SIG_slh_dsa_sha2_512_256_prehash_shake_192f;SIG_slh_dsa_sha2_512_256_prehash_shake_256s;SIG_slh_dsa_sha2_512_256_prehash_shake_256f;SIG_slh_dsa_sha3_224_prehash_sha2_128s;SIG_slh_dsa_sha3_224_prehash_sha2_128f;SIG_slh_dsa_sha3_224_prehash_sha2_192s;SIG_slh_dsa_sha3_224_prehash_sha2_192f;SIG_slh_dsa_sha3_224_prehash_sha2_256s;SIG_slh_dsa_sha3_224_prehash_sha2_256f;SIG_slh_dsa_sha3_224_prehash_shake_128s;SIG_slh_dsa_sha3_224_prehash_shake_128f;SIG_slh_dsa_sha3_224_prehash_shake_192s;SIG_slh_dsa_sha3_224_prehash_shake_192f;SIG_slh_dsa_sha3_224_prehash_shake_256s;SIG_slh_dsa_sha3_224_prehash_shake_256f;SIG_slh_dsa_sha3_256_prehash_sha2_128s;SIG_slh_dsa_sha3_256_prehash_sha2_128f;SIG_slh_dsa_sha3_256_prehash_sha2_192s;SIG_slh_dsa_sha3_256_prehash_sha2_192f;SIG_slh_dsa_sha3_256_prehash_sha2_256s;SIG_slh_dsa_sha3_256_prehash_sha2_256f;SIG_slh_dsa_sha3_256_prehash_shake_128s;SIG_slh_dsa_sha3_256_prehash_shake_128f;SIG_slh_dsa_sha3_256_prehash_shake_192s;SIG_slh_dsa_sha3_256_prehash_shake_192f;SIG_slh_dsa_sha3_256_prehash_shake_256s;SIG_slh_dsa_sha3_256_prehash_shake_256f;SIG_slh_dsa_sha3_384_prehash_sha2_128s;SIG_slh_dsa_sha3_384_prehash_sha2_128f;SIG_slh_dsa_sha3_384_prehash_sha2_192s;SIG_slh_dsa_sha3_384_prehash_sha2_192f;SIG_slh_dsa_sha3_384_prehash_sha2_256s;SIG_slh_dsa_sha3_384_prehash_sha2_256f;SIG_slh_dsa_sha3_384_prehash_shake_128s;SIG_slh_dsa_sha3_384_prehash_shake_128f;SIG_slh_dsa_sha3_384_prehash_shake_192s;SIG_slh_dsa_sha3_384_prehash_shake_192f;SIG_slh_dsa_sha3_384_prehash_shake_256s;SIG_slh_dsa_sha3_384_prehash_shake_256f;SIG_slh_dsa_sha3_512_prehash_sha2_128s;SIG_slh_dsa_sha3_512_prehash_sha2_128f;SIG_slh_dsa_sha3_512_prehash_sha2_192s;SIG_slh_dsa_sha3_512_prehash_sha2_192f;SIG_slh_dsa_sha3_512_prehash_sha2_256s;SIG_slh_dsa_sha3_512_prehash_sha2_256f;SIG_slh_dsa_sha3_512_prehash_shake_128s;SIG_slh_dsa_sha3_512_prehash_shake_128f;SIG_slh_dsa_sha3_512_prehash_shake_192s;SIG_slh_dsa_sha3_512_prehash_shake_192f;SIG_slh_dsa_sha3_512_prehash_shake_256s;SIG_slh_dsa_sha3_512_prehash_shake_256f;SIG_slh_dsa_shake_128_prehash_sha2_128s;SIG_slh_dsa_shake_128_prehash_sha2_128f;SIG_slh_dsa_shake_128_prehash_sha2_192s;SIG_slh_dsa_shake_128_prehash_sha2_192f;SIG_slh_dsa_shake_128_prehash_sha2_256s;SIG_slh_dsa_shake_128_prehash_sha2_256f;SIG_slh_dsa_shake_128_prehash_shake_128s;SIG_slh_dsa_shake_128_prehash_shake_128f;SIG_slh_dsa_shake_128_prehash_shake_192s;SIG_slh_dsa_shake_128_prehash_shake_192f;SIG_slh_dsa_shake_128_prehash_shake_256s;SIG_slh_dsa_shake_128_prehash_shake_256f;SIG_slh_dsa_shake_256_prehash_sha2_128s;SIG_slh_dsa_shake_256_prehash_sha2_128f;SIG_slh_dsa_shake_256_prehash_sha2_192s;SIG_slh_dsa_shake_256_prehash_sha2_192f;SIG_slh_dsa_shake_256_prehash_sha2_256s;SIG_slh_dsa_shake_256_prehash_sha2_256f;SIG_slh_dsa_shake_256_prehash_shake_128s;SIG_slh_dsa_shake_256_prehash_shake_128f;SIG_slh_dsa_shake_256_prehash_shake_192s;SIG_slh_dsa_shake_256_prehash_shake_192f;SIG_slh_dsa_shake_256_prehash_shake_256s;SIG_slh_dsa_shake_256_prehash_shake_256f") + filter_algs("KEM_ml_kem_512;KEM_ml_kem_768;KEM_ml_kem_1024;SIG_ml_dsa_44;SIG_ml_dsa_65;SIG_ml_dsa_87;SIG_falcon_512;SIG_falcon_1024;SIG_falcon_padded_512;SIG_falcon_padded_1024;SIG_slh_dsa_pure_sha2_128s;SIG_slh_dsa_pure_sha2_128f;SIG_slh_dsa_pure_sha2_192s;SIG_slh_dsa_pure_sha2_192f;SIG_slh_dsa_pure_sha2_256s;SIG_slh_dsa_pure_sha2_256f;SIG_slh_dsa_pure_shake_128s;SIG_slh_dsa_pure_shake_128f;SIG_slh_dsa_pure_shake_192s;SIG_slh_dsa_pure_shake_192f;SIG_slh_dsa_pure_shake_256s;SIG_slh_dsa_pure_shake_256f") ##### OQS_COPY_FROM_UPSTREAM_FRAGMENT_LIST_STANDARDIZED_ALGS_END elseif(${OQS_ALGS_ENABLED} STREQUAL "NIST_R4") filter_algs("KEM_classic_mceliece_348864;KEM_classic_mceliece_348864f;KEM_classic_mceliece_460896;KEM_classic_mceliece_460896f;KEM_classic_mceliece_6688128;KEM_classic_mceliece_6688128f;KEM_classic_mceliece_6960119;KEM_classic_mceliece_6960119f;KEM_classic_mceliece_8192128;KEM_classic_mceliece_8192128f;KEM_hqc_128;KEM_hqc_192;KEM_hqc_256;KEM_bike_l1;KEM_bike_l3;KEM_bike_l5") diff --git a/scripts/copy_from_upstream/copy_from_upstream.py b/scripts/copy_from_upstream/copy_from_upstream.py index f0b37bf96..bc99fa608 100755 --- a/scripts/copy_from_upstream/copy_from_upstream.py +++ b/scripts/copy_from_upstream/copy_from_upstream.py @@ -902,6 +902,7 @@ if args.operation == "copy": "name": "slh_dsa", "schemes": [ {"scheme": scheme} for scheme in slh_dsa_schemes + if "pure" in scheme ] } ]