projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2236bb9
)
Ensure a minimum length for password candidates in autotune
author
Jens Steube
<jens.steube@gmail.com>
Tue, 23 Feb 2016 17:51:28 +0000
(18:51 +0100)
committer
Jens Steube
<jens.steube@gmail.com>
Tue, 23 Feb 2016 17:51:28 +0000
(18:51 +0100)
src/oclHashcat.c
patch
|
blob
|
history
diff --git
a/src/oclHashcat.c
b/src/oclHashcat.c
index
a4f94a6
..
5ebb57f
100644
(file)
--- a/
src/oclHashcat.c
+++ b/
src/oclHashcat.c
@@
-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);