pub fn hkdf(
mode: Algorithm,
salt: &[u8],
ikm: &[u8],
info: &[u8],
okm_len: usize,
) -> Result<Vec<u8>, Error>
Expand description
HKDF using hash function mode
, salt
, input key material ikm
, info
, and output length okm_len
.
Calls extract
and expand
with the given input.
Returns the key material in a vector of length okm_len
or Error::OkmLengthTooLarge
if the requested output length is too large.