You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hrm. openssl::sha::Sha256 doesn't implement a fair number of traits the HKDF library wants. (Notably digest::Input and digest::FixedOutput) I could probably create a wrapper class for openssl that includes those traits, but not really sure that's the best solution rather than just use the pure rust libraries, since that would be less hacky.
Activity
jrconlin commentedon Apr 23, 2019
It's kind of required by the
hkdffunction., and was probably included as part of the example cargo.The pedigree for the hkdf and sha2 crates look to be fairly good.
I can investigate using
opensslonly to reduce the amount of dependencies.jrconlin commentedon Apr 23, 2019
Hrm.
openssl::sha::Sha256doesn't implement a fair number of traits theHKDFlibrary wants. (Notablydigest::Inputanddigest::FixedOutput) I could probably create a wrapper class for openssl that includes those traits, but not really sure that's the best solution rather than just use the pure rust libraries, since that would be less hacky.thomcc commentedon Apr 23, 2019
Honestly you should probably not be using HKDF either. Stuff from the
rust-cryptoproject hasn't gotten any security auditing IIUC.But I guess
rust-openssldoesn't expose openssl's hkdf functions, dang.