Skip to content

[mldsa] Add randomness parameter for signing.#205

Merged
jadephilipoom merged 1 commit intomasterfrom
jadep/add-sign-rnd
Mar 2, 2026
Merged

[mldsa] Add randomness parameter for signing.#205
jadephilipoom merged 1 commit intomasterfrom
jadep/add-sign-rnd

Conversation

@jadephilipoom
Copy link
Collaborator

This allows a little more flexibility with how the random value is sourced; it allows tests to provide a predetermined random value, while runtime binaries could still populate this with 0 or RND.

For now the behavior is completely unchanged; the testgen infrastructure always populates with 0. For context, this tweak was necessary to use a not-yet-merged benchmarking technique for ML-DSA signing that requires variable randomness. I'd merge it along with that technique, but I built some code-size improvements on top of this and those are ready to merge now, so it would be nice to get this in a bit early.

This allows a little more flexibility with how the random value is sourced; it
allows tests to provide a predetermined random value, while runtime binaries
could still populate this with 0 or RND.

Signed-off-by: Jade Philipoom <jadep@zerorisc.com>
Copy link
Contributor

@pqcfox pqcfox left a comment

Choose a reason for hiding this comment

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

Looks great, thanks so much for tag!

@jadephilipoom jadephilipoom merged commit ab4595d into master Mar 2, 2026
28 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants