Skip to content

ml-dsa: add VerifyingKey::compute_mu()#1074

Merged
tarcieri merged 1 commit intoRustCrypto:masterfrom
daxpedda:ml-dsa-compute-mu
Oct 29, 2025
Merged

ml-dsa: add VerifyingKey::compute_mu()#1074
tarcieri merged 1 commit intoRustCrypto:masterfrom
daxpedda:ml-dsa-compute-mu

Conversation

@daxpedda
Copy link
Copy Markdown
Contributor

While #1064 mostly resolves any need to add dedicated methods to compute µ for ML-DSA, one scenario was still uncovered: being able to use external-µ signing with e.g. HSMs. In which case we don't have access to the secret key, but we can compute µ with the help of the public key.

So we add a VerifyingKey::compute_mu() method that facilitates that.

This specifically targets ML-DSA.Sign and not ML-DSA.Sign_internal. I can add another method for that if desired.

Resolves #1060.
Builds on top of #1073.

@daxpedda daxpedda marked this pull request as ready for review September 19, 2025 07:54
@tarcieri tarcieri merged commit 67e9a34 into RustCrypto:master Oct 29, 2025
5 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.

ml-dsa: add ComputeMu()

2 participants