Function expand

Source
pub fn expand(
    alg: Algorithm,
    prk: impl AsRef<[u8]>,
    info: impl AsRef<[u8]>,
    okm_len: usize,
) -> Result<Vec<u8>, Error>
Expand description

HKDF expand using hash function mode, pre-key material prk, info, and output length okm_len. Returns the key material in a vector of length okm_len or Error::OkmLengthTooLarge if the requested output length is too large.