[−][src]Function pbkdf2_identifier::identify_iterations
pub fn identify_iterations<T>(
password: &[u8],
hash: &[u8],
salt: &[u8],
max: Option<usize>
) -> Option<usize> where
T: Input + BlockInput + FixedOutput + Reset + Default + Clone,
T::BlockSize: ArrayLength<u8>,
T::OutputSize: ArrayLength<u8>,
Tries to find the iteration count of the hash knowing its algorithm. password - The password of the hash hash - The hash itself salt - The salt used in the derivation max - The maximum number of iteration to try. Use 0 to try until aborted.