mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-13 11:40:02 +08:00
chg: 'hf mf hardnested' - speedup for those with good cpus, triggering the bruteforce faster.
This commit is contained in:
parent
f80aaa13ab
commit
e23d53adc1
1 changed files with 5 additions and 2 deletions
|
@ -1038,8 +1038,11 @@ static bool shrink_key_space(float *brute_forces)
|
|||
}
|
||||
*brute_forces = MIN(brute_forces1, brute_forces2);
|
||||
float reduction_rate = update_reduction_rate(*brute_forces, false);
|
||||
return ((hardnested_stage & CHECK_2ND_BYTES)
|
||||
&& reduction_rate >= 0.0 && reduction_rate < brute_force_per_second * sample_period / 1000.0);
|
||||
|
||||
//iceman 2018
|
||||
return ((hardnested_stage & CHECK_2ND_BYTES) &&
|
||||
reduction_rate >= 0.0 &&
|
||||
( reduction_rate < brute_force_per_second * (float)sample_period / 1000.0 || *brute_forces < 0x1F000000000));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue