crypto::hkdf

Function hkdf_extract

Source
pub fn hkdf_extract<D: Digest>(
    digest: D,
    salt: &[u8],
    ikm: &[u8],
    prk: &mut [u8],
)
Expand description

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.