-
Notifications
You must be signed in to change notification settings - Fork 122
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
ExternalMu mode for pre-hash ML-DSA #2113
Merged
+3,894
−838
Merged
Changes from 13 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
5abd396
ml-dsa extmu
jakemas 00b3ba1
CR fixes from nevine and will
jakemas 0461f48
spacing nits
jakemas 21006fd
evp documentation
jakemas 9f17f86
Merge branch 'main' into extmu-ml-dsa
jakemas 7823f93
removed use of internal functions in test file
jakemas 7baa8c1
spacing nits
jakemas 9de6f9d
mem leak in test code
jakemas dddd501
duplicated line
jakemas bd4e629
added negative testing for extmu
jakemas 9a90332
added ACVP access for extmu internal and KAT framework
jakemas cb40bdc
spacing nit
jakemas ba50e2c
Merge branch 'main' into extmu-ml-dsa
jakemas ba1856b
CR fixes
jakemas 255aa97
Merge branch 'extmu-ml-dsa' of github.com:jakemas/aws-lc into extmu-m…
jakemas 89d4744
spotted typo
jakemas 49580d6
updated message names to mu
jakemas a97e54b
Merge branch 'main' into extmu-ml-dsa
jakemas 318f0c1
internal naming
jakemas 6d214b5
readme updates
jakemas 195779c
readme update
jakemas 75ccaf5
Merge branch 'main' into extmu-ml-dsa
jakemas 3d98fb6
remove KAT
jakemas b347ee6
added source files
jakemas 3b6e302
updated gensrc
jakemas 2f8729a
update readme to discuss KAT
jakemas ce4f764
update gen src
jakemas 957523e
added ACVP test vectors
jakemas 76a71f1
update readme
jakemas 807aca4
Merge branch 'main' into extmu-ml-dsa
jakemas 201b096
update internal name
jakemas 6762c2a
Merge branch 'extmu-ml-dsa' of github.com:jakemas/aws-lc into extmu-m…
jakemas 0dfc1f2
typo
jakemas e56a143
missed space
jakemas 49d0b08
missed space
jakemas 36e9ae2
Merge branch 'main' into extmu-ml-dsa
jakemas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make it clear that this is not HashML-DSA, I suggest replacing
prehash
withexternal_mu
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a good idea. This is the
PQDSA
logic for ALL PQDSA types. ExternalMu isn't defined for any PQDSA scheme other than ML-DSA. For example, why would SLH-DSA or even HashML-DSA have a flag for ExternalMu?I have changed all the ML-DSA specific uses of a pre-hash flag to use
external_mu
but the ones that remain calledprehash
are intentional so that we can use the flag for the purposes of indicating any pre-hash method for any PQDSA signature scheme.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree this shouldn't be external_mu, but it isn't clear if prehash means the input has been pre-hashed or if AWS-LC should hash the input before signing it, can this follow the method names and use sign_message or sign_digest 0/1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Andrew, have I understood you correctly with this update: 318f0c1