-
Notifications
You must be signed in to change notification settings - Fork 570
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
One-Step Key Derivation Method with KMAC #4121
One-Step Key Derivation Method with KMAC #4121
Conversation
4d41863
to
bab8300
Compare
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.
Left some comments but overall seems fine
Thanks, @randombit, for your input! It seems I left some copy-past issues in the new implementation. Also, I did not correctly handle default_salts for KMAC. The doxygen comments were also deprecated in various places. I addressed your suggestions and the other mentioned issues in the latest commit. |
As mentioned in PR #4119, this pull request introduces the One-Step Key Derivation Method (KDM) of SP800-56Cr2 Section 4 using KMAC.
Previously, the One-Step KDM was defined in SP800-56Ar2. However, with the revision SP800-56Ar3, it has been moved to SP800-56Cr2. To reflect this change, I have updated comments and internal interfaces accordingly. The public API and external interfaces, including module names, remain unchanged.
Additionally, this pull request includes a KMAC option for the one-step Key Derivation Function (KDF), which is utilized by the Ounsworth Key Encapsulation Mechanism (KEM) combiner. Also, I added the test vectors I got for the Ounsworth PR. These include tests for the KMAC option and some for SHA-3 instances, which were not yet covered.