Closed Ralith closed 6 years ago
Added a separate commit that changes the API to an RFC5869-inspired one, which I find more intuitive when implementing IETF standards, especially because the argument order differs. If you'd prefer to pass on that, I'll back it out.
cc @warner
First commit seems totally fine to me.
Matching the RFC function names makes sense, but if we're thinking about moving this under the RustCrypto umbrella (#6) then we might want to line up with their KDF API.
@newpavlov , any thoughts on this? Looks like we should circle back to https://github.com/RustCrypto/traits/issues/5 and come to a conclusion.
Thank you @Ralith !
This improves usability and marginally improves performance:
Before:
After: