Skip to content

Add TLS 1.3 test using only ML-KEM and ML-DSA - #12396

Merged
philljj merged 1 commit into
wolfSSL:masterfrom
SparkiDev:mlkem_mldsa_suite_test
Dec 4, 2026
Merged

philljj merged 1 commit into
wolfSSL:masterfrom
SparkiDev:mlkem_mldsa_suite_test

Conversation

@SparkiDev

Copy link
Copy Markdown
Contributor

Description

Add a cipher suite test configuration that uses standalone ML-KEM key exchange and ML-DSA certificates with mutual authentication, so that no classical public key algorithm is used. The existing standalone ML-KEM tests use the build's default certificates, which are normally RSA.

Pairs ML-KEM-512/768/1024 with ML-DSA-44/65/87.

Testing

./configure --enable-mldsa --enable-tls-mlkem-standalone
make
./tests/unit.test

@SparkiDev SparkiDev self-assigned this Dec 4, 2026
Copilot AI balanced review requested due to automatic review settings December 4, 2026 01:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The test guard omits WOLFSSL_MLDSA_NO_MAKE_KEY, causing supported builds without key generation to fail loading seed-based private keys before exercising TLS.

1 open issue
What changed in this PR

Adds TLS 1.3 coverage using only post-quantum public-key algorithms to wolfSSL’s cipher-suite tests.

Changes:

  • Pairs standalone ML-KEM-512/768/1024 with ML-DSA-44/65/87 certificates for mutual authentication.
  • Registers the configuration under feature guards and includes it in source distributions.
File Description
tests/​test-tls13-pq-mlkem-mldsa.conf Defines three post-quantum client/server test pairs.
tests/​suites.c Registers the configuration with the test harness.
tests/​include.am Adds the configuration to distribution inputs.

Review effort: Balanced

Comment thread tests/suites.c Resolved
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

zephyr-frdm_rw612

  • FLASH: datas +16 B, log_const_area -8 B, rodata +108 B, text +13,904 B (+5.0%, 296,484 B / 67,108,864 B, total: 0% used)
  • RAM: bss +49 B, datas +16 B (+0.1%, 58,423 B / 983,040 B, total: 6% used)

No memory changes detected for:


Catch memory regressions in CI with MemBrowse. Free for open source.

Add a cipher suite test configuration that uses standalone ML-KEM key
exchange and ML-DSA certificates with mutual authentication, so that no
classical public key algorithm is used. The existing standalone ML-KEM
tests use the build's default certificates, which are normally RSA.

Pairs ML-KEM-512/768/1024 with ML-DSA-44/65/87.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the added post-quantum TLS 1.3 test coverage.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@SparkiDev SparkiDev assigned wolfSSL-Bot and unassigned SparkiDev Dec 4, 2026
@philljj philljj self-assigned this Dec 4, 2026
@philljj
philljj merged commit 23cf77b into wolfSSL:master Dec 4, 2026
432 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants