summaryrefslogtreecommitdiff
path: root/src/irmd/oap/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-02-17 22:37:39 +0100
committerSander Vrijders <sander@ouroboros.rocks>2026-02-18 07:53:35 +0100
commit040bdfb18684d809cb5edacf9867d3378b7e093b (patch)
treed0b337c83ea4af5312834541acce584719a52ca0 /src/irmd/oap/tests/CMakeLists.txt
parent2c717b2fc9773a74d6c9df01a2f873deea163918 (diff)
downloadouroboros-040bdfb18684d809cb5edacf9867d3378b7e093b.tar.gz
ouroboros-040bdfb18684d809cb5edacf9867d3378b7e093b.zip
lib: Add SLH-DSA tests and per-algorithm PQC gating
This replaces the single HAVE_OPENSSL_PQC/DISABLE_PQC with per-algorithm CMake variables (ML-KEM, ML-DSA, SLH-DSA), gated by the OpenSSL versions: ML-KEM and ML-DSA require >= 3.4, SLH-DSA >= 3.5. SLH-DSA was already working, but now added explicit authentication tests for it with a full certificate chain (root CA, intermediate CA, server) to show full support. Rename PQC test files and cert headers to use algorithm-specific names (ml_kem, ml_dsa, slh_dsa) and move cert headers to include/test/certs/. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/oap/tests/CMakeLists.txt')
-rw-r--r--src/irmd/oap/tests/CMakeLists.txt24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/irmd/oap/tests/CMakeLists.txt b/src/irmd/oap/tests/CMakeLists.txt
index 2bf23821..b534cb72 100644
--- a/src/irmd/oap/tests/CMakeLists.txt
+++ b/src/irmd/oap/tests/CMakeLists.txt
@@ -13,9 +13,9 @@ create_test_sourcelist(${PARENT_DIR}_tests test_suite.c
oap_test.c
)
-create_test_sourcelist(${PARENT_DIR}_pqc_tests test_suite_pqc.c
- # PQC-specific tests
- oap_test_pqc.c
+create_test_sourcelist(${PARENT_DIR}_ml_dsa_tests test_suite_ml_dsa.c
+ # ML-DSA-specific tests
+ oap_test_ml_dsa.c
)
# OAP test needs io.c compiled with OAP_TEST_MODE
@@ -41,24 +41,24 @@ target_include_directories(${PARENT_DIR}_test PRIVATE
${IRMD_BINARY_DIR}
)
-# PQC test executable (ML-DSA)
-add_executable(${PARENT_DIR}_pqc_test ${${PARENT_DIR}_pqc_tests} ${OAP_TEST_SOURCES})
+# ML-DSA test executable
+add_executable(${PARENT_DIR}_ml_dsa_test ${${PARENT_DIR}_ml_dsa_tests} ${OAP_TEST_SOURCES})
set_source_files_properties(${OAP_TEST_SOURCES}
- TARGET_DIRECTORY ${PARENT_DIR}_pqc_test
+ TARGET_DIRECTORY ${PARENT_DIR}_ml_dsa_test
PROPERTIES COMPILE_DEFINITIONS "OAP_TEST_MODE"
)
-disable_test_logging_for_target(${PARENT_DIR}_pqc_test)
-target_link_libraries(${PARENT_DIR}_pqc_test ouroboros-irm)
-target_include_directories(${PARENT_DIR}_pqc_test PRIVATE
+disable_test_logging_for_target(${PARENT_DIR}_ml_dsa_test)
+target_link_libraries(${PARENT_DIR}_ml_dsa_test ouroboros-irm)
+target_include_directories(${PARENT_DIR}_ml_dsa_test PRIVATE
${IRMD_SOURCE_DIR}
${IRMD_BINARY_DIR}
)
-add_dependencies(build_tests ${PARENT_DIR}_test ${PARENT_DIR}_pqc_test)
+add_dependencies(build_tests ${PARENT_DIR}_test ${PARENT_DIR}_ml_dsa_test)
# Regular tests
ouroboros_register_tests(TARGET ${PARENT_DIR}_test TESTS ${${PARENT_DIR}_tests})
-# PQC tests
-ouroboros_register_tests(TARGET ${PARENT_DIR}_pqc_test TESTS ${${PARENT_DIR}_pqc_tests})
+# ML-DSA tests
+ouroboros_register_tests(TARGET ${PARENT_DIR}_ml_dsa_test TESTS ${${PARENT_DIR}_ml_dsa_tests})