Skip to main content

extract

Function extract 

Source
pub fn extract<H: Hasher>(salt: Option<&[u8]>, ikm: &[u8]) -> Hash
Expand description

Extract step: PRK = HMAC-Hash(salt, IKM).

If salt is None, a string of H::OUTPUT_SIZE zero bytes is used.