Skip to content

Conversation

keks
Copy link
Member

@keks keks commented Sep 24, 2025

Instead of creating a kdf crate, I am iterating on the HKDF API.

  • docs & examples
  • use secret types
  • move hkdf into crates/

@keks keks linked an issue Sep 24, 2025 that may be closed by this pull request
2 tasks
Copy link
Member

@franziskuskiefer franziskuskiefer left a 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?

@keks keks force-pushed the keks/hkdf-slice branch 2 times, most recently from 71a3837 to c69c994 Compare September 30, 2025 08:37
@keks keks changed the title First Take at KDF crate Improve HKDF API Sep 30, 2025
@keks
Copy link
Member Author

keks commented Sep 30, 2025

I dropped the attempts to standardise KDF and PRF and instead tried making the hkdf API a bit neater.

@keks keks marked this pull request as ready for review September 30, 2025 10:22
@keks keks requested review from a team as code owners September 30, 2025 10:22
@keks keks mentioned this pull request Sep 30, 2025
24 tasks
Copy link
Collaborator

@jschneider-bensch jschneider-bensch left a 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!

Copy link
Member

@franziskuskiefer franziskuskiefer left a 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.

@keks keks force-pushed the keks/hkdf-slice branch from 680e32c to aec5f9c Compare October 1, 2025 10:30
Copy link
Collaborator

@jschneider-bensch jschneider-bensch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@keks keks added this pull request to the merge queue Oct 2, 2025
Merged via the queue into main with commit 7d9c047 Oct 2, 2025
117 of 121 checks passed
@keks keks deleted the keks/hkdf-slice branch October 2, 2025 07:05
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.

KDF trait

3 participants