-
Notifications
You must be signed in to change notification settings - Fork 26
Improve HKDF API #1177
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
Improve HKDF API #1177
Conversation
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.
You didn't want to put the APIs just into the respective crates? What APIs should consumers use when they only want to use blake2 or hkdf in this case?
71a3837
to
c69c994
Compare
3f34d26
to
e90148c
Compare
I dropped the attempts to standardise KDF and PRF and instead tried making the hkdf API a bit neater. |
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 think it looks good, beside the issue with the doc test.
Thanks for simplifying the PSQ code while you were updating it to the new API!
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.
lgtm with a few nits. But leaving an r+ already.
Review re-requested
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.
Looks good!
Instead of creating a kdf crate, I am iterating on the HKDF API.