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

Context support for ML-DSA and SLH-DSA #4567

Draft
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

FAlbertDev
Copy link
Collaborator

@FAlbertDev FAlbertDev commented Jan 17, 2025

ML-DSA and SLH-DSA allow for a custom context for domain separation. This PR adds support for this using the new (experimental) signature options interface.

This closes #4376 since pre-hashed variants are postponed for now (see #4376 (comment)).

Dependencies

TODOs

  • Tests

randombit and others added 18 commits January 16, 2025 13:04
This allows controlling all details of how signatures are created,
without having to stuff values into the single parameters string
which was previously available.
Without this patch, clang seemed to miscompile the retrofitting of the
PK_Signer() legacy constructor. valgrind complained about uninitialized
memory when building with clang in -O2 and -O3 (didn't test -O1).
@coveralls
Copy link

Coverage Status

coverage: 91.206% (-0.003%) from 91.209%
when pulling 34786d9 on Rohde-Schwarz:feature/fips_ctx_and_prehash
into 6a97b80 on randombit:master.

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.

Support Pre-Hash and Context in ML-DSA/SLH-DSA
4 participants