Skip to main content

pbkdf2

Function pbkdf2 

Source
pub fn pbkdf2<M: Mac>(
    password: &[u8],
    salt: &[u8],
    iterations: u32,
    out: &mut [u8],
) -> Result<()>
Expand description

Derive out.len() bytes from password and salt.

Rejects iteration counts below the SP 800-132 minimum of 1 000 and salts shorter than the 128-bit minimum, so a misconfigured caller fails loudly rather than producing a weak key.