Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ML-DSA: Add external API functions #213

Merged
merged 11 commits into from
Jan 7, 2025
Merged

ML-DSA: Add external API functions #213

merged 11 commits into from
Jan 7, 2025

Conversation

marsella
Copy link
Contributor

@marsella marsella commented Jan 2, 2025

Closes #198

  • Rearranges the module structure a little to better support the public API functions separately from the internal functions, and to eventually make it easier to add the hashed class of functions (ML-DSA: Define HashML-DSA external functions #199).
  • Adds the external functions with documentation, including docs about the one deviation with bit ordering.
  • Adds some extra KATs

This moves the anonymous interface module defining the parameters for
ML-DSA into a named interface module. This will support having two
separate external APIS for ML-DSA.
- Add a top-level `ML_DSA` module to define the external functions
- Update the instantiation to use the new module instead of the
  `Specification` one.
- Exposes the internal functions from the external module in a submodule
Adjusts the module imports a bit so we don't have to label everything
with `Spec::`.
- Adds documentation to bytesToBits vs join spots.
- Adds and docs a KAT

This doesn't work yet.
- Refactors the tests to support both hedged and deterministic signing
- Adds two hedged KATs for raw and pure APIs
@marsella marsella linked an issue Jan 2, 2025 that may be closed by this pull request
6 tasks
@marsella marsella changed the base branch from master to 192-verify January 2, 2025 22:15
Base automatically changed from 192-verify to master January 3, 2025 15:46
Updates the hint property to run faster, with a note about prove time.
Copy link
Contributor

@mccleeary-galois mccleeary-galois left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for changing the :prove to a :check

@marsella marsella merged commit 74784ab into master Jan 7, 2025
2 checks passed
@marsella marsella deleted the 198-external branch January 7, 2025 17:21
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: Define external functions
2 participants