crypto::pbkdf2

Function pbkdf2

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

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.