Function crypto::pbkdf2::pbkdf2 [] [src]

pub fn pbkdf2<M: Mac>(mac: &mut M, salt: &[u8], c: u32, output: &mut [u8])

Execute the PBKDF2 Key Derivation Function. The Scrypt Key Derivation Function generally provides better security, so, applications that do not have a requirement to use PBKDF2 specifically should consider using that function instead.

Arguments

  • mac - The Pseudo Random Function to use.
  • salt - The salt value to use.
  • c - The iteration count. Users should carefully determine this value as it is the primary factor in determining the security of the derived key.
  • output - The output buffer to fill with the derived key value.