[−][src]Function pbkdf2_identifier::identify_iterations_threaded
pub fn identify_iterations_threaded<T>(
password: &[u8],
hash: &[u8],
salt: &[u8],
max: Option<usize>,
found: &AtomicBool
) -> 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. Takes an shared variable to know when to stop searching. 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. found - Shared variable to notify other threads if the hash has been identified.