core::crypto::hkdf
HKDF (RFC 5869) over any HashAlgorithm: extract a pseudorandom
key, expand it into output keying material.
Functions
extractSource
pub fn extract<S: AsBytes, I: AsBytes>(alg: HashAlgorithm, salt: S, ikm: I) -> Secret HMAC(salt, ikm); an empty salt is output_len zero bytes.
expandSource
pub fn expand<P: AsBytes, I: AsBytes>(alg: HashAlgorithm, prk: P, info: I, len: usize) throws (ValueError) -> Secret len bytes of output keying material; len is at most
255 * output_len.