mirror of
https://github.com/hashcat/hashcat.git
synced 2025-06-06 16:18:48 +00:00
Fix -a 7 of fast hashes in optimized mode
This commit is contained in:
parent
68ab3277d6
commit
07f119c28b
10
src/opencl.c
10
src/opencl.c
@ -6231,6 +6231,12 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
|
|||||||
device_param->kernel_params[ 4] = &device_param->d_tmps;
|
device_param->kernel_params[ 4] = &device_param->d_tmps;
|
||||||
device_param->kernel_params[ 5] = &device_param->d_hooks;
|
device_param->kernel_params[ 5] = &device_param->d_hooks;
|
||||||
|
|
||||||
|
if (hashconfig->opti_type & OPTI_TYPE_OPTIMIZED_KERNEL)
|
||||||
|
{
|
||||||
|
// nothing to do
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if (user_options->attack_mode == ATTACK_MODE_HYBRID2)
|
if (user_options->attack_mode == ATTACK_MODE_HYBRID2)
|
||||||
{
|
{
|
||||||
device_param->kernel_params_mp[0] = (hashconfig->attack_exec == ATTACK_EXEC_INSIDE_KERNEL)
|
device_param->kernel_params_mp[0] = (hashconfig->attack_exec == ATTACK_EXEC_INSIDE_KERNEL)
|
||||||
@ -6239,7 +6245,9 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
CL_rc = hc_clSetKernelArg (hashcat_ctx, device_param->kernel_mp, 0, sizeof (cl_mem), device_param->kernel_params_mp[0]); if (CL_rc == -1) return -1;
|
CL_rc = hc_clSetKernelArg (hashcat_ctx, device_param->kernel_mp, 0, sizeof (cl_mem), device_param->kernel_params_mp[0]); if (CL_rc == -1) return -1;
|
||||||
}
|
}
|
||||||
else if (user_options->attack_mode == ATTACK_MODE_BF)
|
}
|
||||||
|
|
||||||
|
if (user_options->attack_mode == ATTACK_MODE_BF)
|
||||||
{
|
{
|
||||||
device_param->kernel_params_mp_l[0] = (hashconfig->attack_exec == ATTACK_EXEC_INSIDE_KERNEL)
|
device_param->kernel_params_mp_l[0] = (hashconfig->attack_exec == ATTACK_EXEC_INSIDE_KERNEL)
|
||||||
? &device_param->d_pws_buf
|
? &device_param->d_pws_buf
|
||||||
|
Loading…
Reference in New Issue
Block a user