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

[crypto] Implement HKDF. #20725

Merged
merged 1 commit into from
Dec 23, 2023
Merged

Conversation

jadephilipoom
Copy link
Contributor

HKDF is a common HMAC-based KDF separate from KDF-CTR. This PR implements it on top of the existing HMAC interface.

HKDF wasn't originally part of the cryptolib API because (I think) there was some confusion about whether it was the same thing as KDF-CTR with HMAC as the PRF. It's a bit different, though, and more commonly used, so it seems worth its own entrypoint.

HKDF is a common HMAC-based KDF separate from KDF-CTR. This PR
implements it on top of the existing HMAC interface.

Signed-off-by: Jade Philipoom <[email protected]>
@jadephilipoom jadephilipoom requested review from mundaym and a team as code owners December 22, 2023 09:13
@moidx moidx removed the request for review from a team December 22, 2023 23:15
@jadephilipoom
Copy link
Contributor Author

I'll merge this quickly so that I can open the follow-up with a test, but if you have any comments @y-srini I'm happy to make follow-up changes.

@jadephilipoom jadephilipoom merged commit d3b981f into lowRISC:master Dec 23, 2023
32 checks passed
@jadephilipoom jadephilipoom deleted the hkdf-impl branch December 23, 2023 07:33
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.

2 participants