Skip to content

ML-DSA renaming part 2#10497

Merged
dgarske merged 2 commits into
wolfSSL:masterfrom
Frauschi:mldsa_rename
May 20, 2026
Merged

ML-DSA renaming part 2#10497
dgarske merged 2 commits into
wolfSSL:masterfrom
Frauschi:mldsa_rename

Conversation

@Frauschi
Copy link
Copy Markdown
Contributor

More internal ML-DSA renaming

@Frauschi Frauschi self-assigned this May 19, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 19, 2026

MemBrowse Memory Report

No memory changes detected for:

@Frauschi Frauschi force-pushed the mldsa_rename branch 3 times, most recently from 5925eff to 306b9cb Compare May 19, 2026 06:58
@Frauschi
Copy link
Copy Markdown
Contributor Author

Jenkins retest this please

@Frauschi Frauschi assigned wolfSSL-Bot and unassigned Frauschi May 19, 2026
@Frauschi Frauschi requested review from SparkiDev, dgarske and douzzer May 19, 2026 18:28
@dgarske dgarske requested a review from Copilot May 19, 2026 19:03
dgarske
dgarske previously approved these changes May 19, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR continues the internal Dilithium → ML-DSA (FIPS 204) naming migration by consolidating ML-DSA size/parameter macros under canonical spellings and extending the legacy <wolfssl/wolfcrypt/dilithium.h> shim to keep older macro names and tuning knobs working.

Changes:

  • Replaced redundant DILITHIUM_* / ML_DSA_LEVEL* size macro families in wc_mldsa.h with canonical WC_MLDSA_{44,65,87}_*_SIZE and MLDSA_* algorithm-parameter macros.
  • Added legacy macro/tuning-knob forward-translation and extensive macro aliasing to wolfssl/wolfcrypt/dilithium.h.
  • Updated migration documentation and the known-macro extras list.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

File Description
wolfssl/wolfcrypt/wc_mldsa.h Consolidates ML-DSA parameter-set sizing macros and renames internal parameter macros from DILITHIUM_* to MLDSA_*.
wolfssl/wolfcrypt/dilithium.h Extends the compatibility shim to forward-translate legacy tuning knobs and provide reverse macro aliases for legacy names.
doc/dilithium-to-mldsa-migration.md Documents the macro family consolidation and naming rules for retained identifiers/gates.
.wolfssl_known_macro_extras Updates the macro whitelist (adds MLDSA_USE_HINT_CT, removes two CryptoCb-only macros).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread wolfssl/wolfcrypt/dilithium.h Outdated
Comment thread doc/dilithium-to-mldsa-migration.md Outdated
Comment thread .wolfssl_known_macro_extras
@Frauschi Frauschi force-pushed the mldsa_rename branch 2 times, most recently from eab7426 to eae29d5 Compare May 19, 2026 22:35
Copy link
Copy Markdown
Member

@dgarske dgarske left a comment

Choose a reason for hiding this comment

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

unrecognized macros used:
WOLFSSL_NO_ML_DSA_LEGACY_NAMES
add well-formed but unknown macros to .wolfssl_known_macro_extras at top of source tree.

@Frauschi
Copy link
Copy Markdown
Contributor Author

unrecognized macros used: WOLFSSL_NO_ML_DSA_LEGACY_NAMES

Fixed with the latest force-push.

dgarske
dgarske previously approved these changes May 19, 2026
@dgarske dgarske merged commit 7827872 into wolfSSL:master May 20, 2026
446 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