pub fn hkdf<const OKM_LEN: usize>(
salt: &[u8],
ikm: &[u8],
info: &[u8],
) -> Result<[u8; OKM_LEN], Error>
Expand description
HKDF using the salt
, input key material ikm
, info
. The output length
is defined through the result type.
Calls extract
and expand
with the given input.
Returns the key material in an array of length okm_len
.