Skip to content

hkdf: simplify generic signatures - #155

Merged
newpavlov merged 1 commit into
masterfrom
hkdf/simplify
Oct 13, 2025
Merged

hkdf: simplify generic signatures#155
newpavlov merged 1 commit into
masterfrom
hkdf/simplify

Conversation

@newpavlov

Copy link
Copy Markdown
Member

This PR renames Hkdf and HkdfExtract to GenericHkdf and GenericHkdfExtract respectively and simplifies their generic signature. Now the types are generic over single type H: HmacImpl. It also removes the generic parameter from the HmacImpl trait.

Finally, it introduces HkdfExtract and Hkdf aliases to simplify migration for users.

@newpavlovnewpavlov changed the title hkdf: simplify generic signaturehkdf: simplify generic signaturesOct 13, 2025
@newpavlov

Copy link
Copy Markdown
MemberAuthor

We also could make the hmac dependency optional (but enabled by default), but I am not sure whether it's worth the trouble.

@newpavlov
newpavlov merged commit 127c5ac into masterOct 13, 2025
10 checks passed
@newpavlov
newpavlov deleted the hkdf/simplify branch October 13, 2025 12:58
@tarcieritarcieri mentioned this pull request Oct 13, 2025
@tarcieritarcieri mentioned this pull request Mar 30, 2026
tarcieri added a commit that referenced this pull request Mar 30, 2026
## Added
- New `Hkdf` and `HkdfExtract` type aliases for `GenericHkdf` and
`GenericHkdfExtract` (#155)
- Implement `kdf::Kdf` for `GenericHkdfExtract` (#173)
## Changed
- Bump MSRV to 1.85 and edition to 2024 (#114)
- Bump `hmac` dependency to v0.13
- Use `digest::EagerHash` (#148)
- Unseal `HmacImpl` trait (#154)
- Rename `Hkdf` and `HkdfExtract` to `GenericHkdf` and
`GenericHkdfExtract` respectively (#155)
- Use simplified `H: HmacImpl` bounds (#155)
## Removed
- `std` crate feature (#105)
Sign up for freeto 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

@newpavlov@tarcieri