[−][src]Function crypto::hkdf::hkdf_extract
pub fn hkdf_extract<D: Digest>(
digest: D,
salt: &[u8],
ikm: &[u8],
prk: &mut [u8]
)
Execute the HKDF-Extract function. Applications MUST NOT use this for password hashing.
Arguments
- digest - The digest function to use.
- salt - The optional salt value (a non-secret random value) to use.
- ikm - The input keying material to use.
- prk - The output buffer to fill with a digest.output_bytes() length pseudo random key.