[crypto] ML-DSA-87: Keygen hashing routines#30173
Merged
Merged
Conversation
etterli
approved these changes
May 21, 2026
nasahlpa
approved these changes
May 21, 2026
ML-DSA keygen is parametrized by a seed Xi that needs to be hash in order to derived the public and secret keys. Signed-off-by: Andrea Caforio <andrea.caforio@lowrisc.org>
Signed-off-by: Andrea Caforio <andrea.caforio@lowrisc.org>
3db6a90 to
33a4760
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hashing of the seed and public key.
This is a series of PRs that in their composition result in FIPS-204-compliant OTBN implementation of ML-DSA-87 keygen.
Resources
Gadgets
[crypto] ML-DSA-87: Modulo 5 gadget (1/8) #30108sec_mod5Sampling
[crypto] ML-DSA-87: Rejection-sample coefficient-bounded polys (2/8) #30138sample_uniform_eta,expand_sEncoding
[crypto] ML-DSA-87: Encoding and rounding of T polynomials #30154encode_t0,encode_t1,power2round[crypto] ML-DSA-87: Encoding of S polynomials (4/8) #30162encode_sVector Ops
[crypto] ML-DSA-87: Computation of the S and T vectors (5-6/8) #30164compute_t[crypto] ML-DSA-87: Computation of the S and T vectors (5-6/8) #30164sample_shash_seed,hask_pkEpilogue
app