pub fn hkdf_sha256(salt: &[u8], ikm: &[u8], info: &[u8], out: &mut [u8])Expand description
Derives output key material from input keying material with HKDF-SHA256.
Extracts a pseudorandom key from salt and ikm, then expands it under info to
fill out.
§Arguments
salt- a non-secret salt; a fresh per-session value gives each session its own key.ikm- the input keying material, such as a shared or pairing secret.info- a context label binding the output to its purpose.out- the buffer to fill with derived key material.
§Panics
Panics if out is longer than HKDF-SHA256’s 255 * 32-byte limit.