1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-10 15:51:10 +00:00

Ensure a minimum length for password candidates in autotune

This commit is contained in:
Jens Steube 2016-02-23 18:51:28 +01:00
parent 2236bb972c
commit 8c89ef0490

View File

@ -2825,8 +2825,9 @@ static double try_run (hc_device_param_t *device_param, const u32 kernel_accel,
for (u32 i = 0; i < kernel_power; i++)
{
device_param->pws_buf[i].i[0] = i;
device_param->pws_buf[i].i[1] = 0x01234567;
device_param->pws_buf[i].pw_len = i & 7;
device_param->pws_buf[i].pw_len = 4 + (i & 3);
}
hc_clEnqueueWriteBuffer (data.ocl, device_param->command_queue, device_param->d_pws_buf, CL_TRUE, 0, kernel_power * sizeof (pw_t), device_param->pws_buf, 0, NULL, NULL);