hkdf

Function hkdf 

Source
pub fn hkdf(
    salt: Option<&[u8]>,
    length: usize,
    ikm: &[u8],
    info: Option<&[u8]>,
) -> Vec<u8> 
Expand description

Derive a HKDF key.

§Arguments

  • salt - Key salt, None for no salt
  • length - Length of the derived key value that is returned.
  • ikm - The input keying material.
  • info - Optional context and application specific information to use.

§Returns

The output keying material, with the length as as specified in the length argument.