1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 07:08:19 +00:00

Improve kernel-loops detection for slow hashes

This commit is contained in:
Jens Steube 2019-05-13 17:25:33 +02:00
parent 51ddf52369
commit 1943c35e4a

View File

@ -201,7 +201,7 @@ static int autotune (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param
if (1) if (1)
{ {
const double exec_msec = try_run (hashcat_ctx, device_param, kernel_accel_min, kernel_loops_min); double exec_msec = try_run (hashcat_ctx, device_param, kernel_accel_min, kernel_loops_min);
if (exec_msec > 2000) if (exec_msec > 2000)
{ {
@ -210,6 +210,8 @@ static int autotune (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param
return -1; return -1;
} }
exec_msec = try_run (hashcat_ctx, device_param, kernel_accel_min, kernel_loops_min);
const u32 mm = kernel_loops_max / kernel_loops_min; const u32 mm = kernel_loops_max / kernel_loops_min;
if ((exec_msec * mm) > target_msec) if ((exec_msec * mm) > target_msec)