Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/include.am
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ EXTRA_DIST += tests/unit.h \
tests/test-tls13-null.conf \
tests/test-tls13-psk.conf \
tests/test-tls13-pq-standalone.conf \
tests/test-tls13-pq-mlkem-mldsa.conf \
tests/test-tls13-pq-hybrid.conf \
tests/test-tls13-pq-hybrid-extra.conf \
tests/test-tls13-slhdsa-shake.conf \
Expand Down
18 changes: 18 additions & 0 deletions tests/suites.c
Original file line number Diff line number Diff line change
Expand Up @@ -1246,6 +1246,24 @@ int SuiteTest(int argc, char** argv)
args.return_code = EXIT_FAILURE;
goto exit;
}
#if defined(TEST_HAVE_MLDSA_CERTS) && !defined(WOLFSSL_MLDSA_NO_ASN1) && \
!defined(WOLFSSL_MLDSA_NO_MAKE_KEY) && \
!defined(WOLFSSL_NO_ML_DSA_44) && !defined(WOLFSSL_NO_ML_DSA_65) && \
!defined(WOLFSSL_NO_ML_DSA_87)
/* add TLSv13 ML-KEM key exchange with ML-DSA certificates tests. A
* certificate loads even when its ML-DSA level is not compiled in, so the
* harness can't skip by level and all of them are required. The private
* keys include the seed, which needs key generation to decode. */
XSTRLCPY(argv0[1], "tests/test-tls13-pq-mlkem-mldsa.conf",
sizeof(argv0[1]));
printf("starting TLSv13 ML-KEM and ML-DSA only tests\n");
test_harness(&args);
if (args.return_code != 0) {
printf("error from script %d\n", args.return_code);
args.return_code = EXIT_FAILURE;
goto exit;
}
#endif
#endif /* !WOLFSSL_TLS_NO_MLKEM_STANDALONE */
#ifdef WOLFSSL_PQC_HYBRIDS
/* add TLSv13 pq hybrid tests */
Expand Down
58 changes: 58 additions & 0 deletions tests/test-tls13-pq-mlkem-mldsa.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Post-quantum only TLS 1.3: ML-KEM key exchange and ML-DSA authentication.
#
# Standalone (non-hybrid) ML-KEM groups and self-signed ML-DSA certificates with
# mutual authentication, so no classical public key algorithm is used.

# server TLSv1.3 ML-KEM-512 key exchange, ML-DSA-44 certificates
-v 4
-l TLS13-AES256-GCM-SHA384
--pqc ML_KEM_512
-c ./certs/mldsa/mldsa44-cert.pem
-k ./certs/mldsa/mldsa44-key.pem
-A ./certs/mldsa/mldsa44-cert.pem
-V

# client TLSv1.3 ML-KEM-512 key exchange, ML-DSA-44 certificates
-v 4
-l TLS13-AES256-GCM-SHA384
--pqc ML_KEM_512
-c ./certs/mldsa/mldsa44-cert.pem
-k ./certs/mldsa/mldsa44-key.pem
-A ./certs/mldsa/mldsa44-cert.pem
-C

# server TLSv1.3 ML-KEM-768 key exchange, ML-DSA-65 certificates
-v 4
-l TLS13-AES256-GCM-SHA384
--pqc ML_KEM_768
-c ./certs/mldsa/mldsa65-cert.pem
-k ./certs/mldsa/mldsa65-key.pem
-A ./certs/mldsa/mldsa65-cert.pem
-V

# client TLSv1.3 ML-KEM-768 key exchange, ML-DSA-65 certificates
-v 4
-l TLS13-AES256-GCM-SHA384
--pqc ML_KEM_768
-c ./certs/mldsa/mldsa65-cert.pem
-k ./certs/mldsa/mldsa65-key.pem
-A ./certs/mldsa/mldsa65-cert.pem
-C

# server TLSv1.3 ML-KEM-1024 key exchange, ML-DSA-87 certificates
-v 4
-l TLS13-AES256-GCM-SHA384
--pqc ML_KEM_1024
-c ./certs/mldsa/mldsa87-cert.pem
-k ./certs/mldsa/mldsa87-key.pem
-A ./certs/mldsa/mldsa87-cert.pem
-V

# client TLSv1.3 ML-KEM-1024 key exchange, ML-DSA-87 certificates
-v 4
-l TLS13-AES256-GCM-SHA384
--pqc ML_KEM_1024
-c ./certs/mldsa/mldsa87-cert.pem
-k ./certs/mldsa/mldsa87-key.pem
-A ./certs/mldsa/mldsa87-cert.pem
-C
Loading