@ -2875,12 +2875,12 @@ int choose_kernel (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param,
if ( device_param - > is_cuda = = true )
{
if ( hc_cuMemcpyDtoH ( hashcat_ctx , device_param - > hooks_buf , device_param - > cuda_d_hooks , device_param- > size_hooks ) = = - 1 ) return - 1 ;
if ( hc_cuMemcpyDtoH ( hashcat_ctx , device_param - > hooks_buf , device_param - > cuda_d_hooks , pws_cnt * hashconfig - > hook_size ) = = - 1 ) return - 1 ;
}
if ( device_param - > is_opencl = = true )
{
if ( hc_clEnqueueReadBuffer ( hashcat_ctx , device_param - > opencl_command_queue , device_param - > opencl_d_hooks , CL_TRUE , 0 , device_param- > size_hooks , device_param - > hooks_buf , 0 , NULL , NULL ) = = - 1 ) return - 1 ;
if ( hc_clEnqueueReadBuffer ( hashcat_ctx , device_param - > opencl_command_queue , device_param - > opencl_d_hooks , CL_TRUE , 0 , pws_cnt * hashconfig - > hook_size , device_param - > hooks_buf , 0 , NULL , NULL ) = = - 1 ) return - 1 ;
}
const int hook_threads = ( int ) user_options - > hook_threads ;
@ -2923,12 +2923,12 @@ int choose_kernel (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param,
if ( device_param - > is_cuda = = true )
{
if ( hc_cuMemcpyHtoD ( hashcat_ctx , device_param - > cuda_d_hooks , device_param - > hooks_buf , device_param- > size_hooks ) = = - 1 ) return - 1 ;
if ( hc_cuMemcpyHtoD ( hashcat_ctx , device_param - > cuda_d_hooks , device_param - > hooks_buf , pws_cnt * hashconfig - > hook_size ) = = - 1 ) return - 1 ;
}
if ( device_param - > is_opencl = = true )
{
if ( hc_clEnqueueWriteBuffer ( hashcat_ctx , device_param - > opencl_command_queue , device_param - > opencl_d_hooks , CL_TRUE , 0 , device_param- > size_hooks , device_param - > hooks_buf , 0 , NULL , NULL ) = = - 1 ) return - 1 ;
if ( hc_clEnqueueWriteBuffer ( hashcat_ctx , device_param - > opencl_command_queue , device_param - > opencl_d_hooks , CL_TRUE , 0 , pws_cnt * hashconfig - > hook_size , device_param - > hooks_buf , 0 , NULL , NULL ) = = - 1 ) return - 1 ;
}
}
}
@ -2991,12 +2991,12 @@ int choose_kernel (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param,
if ( device_param - > is_cuda = = true )
{
if ( hc_cuMemcpyDtoH ( hashcat_ctx , device_param - > hooks_buf , device_param - > cuda_d_hooks , device_param- > size_hooks ) = = - 1 ) return - 1 ;
if ( hc_cuMemcpyDtoH ( hashcat_ctx , device_param - > hooks_buf , device_param - > cuda_d_hooks , pws_cnt * hashconfig - > hook_size ) = = - 1 ) return - 1 ;
}
if ( device_param - > is_opencl = = true )
{
if ( hc_clEnqueueReadBuffer ( hashcat_ctx , device_param - > opencl_command_queue , device_param - > opencl_d_hooks , CL_TRUE , 0 , device_param- > size_hooks , device_param - > hooks_buf , 0 , NULL , NULL ) = = - 1 ) return - 1 ;
if ( hc_clEnqueueReadBuffer ( hashcat_ctx , device_param - > opencl_command_queue , device_param - > opencl_d_hooks , CL_TRUE , 0 , pws_cnt * hashconfig - > hook_size , device_param - > hooks_buf , 0 , NULL , NULL ) = = - 1 ) return - 1 ;
}
const int hook_threads = ( int ) user_options - > hook_threads ;
@ -3039,12 +3039,12 @@ int choose_kernel (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param,
if ( device_param - > is_cuda = = true )
{
if ( hc_cuMemcpyHtoD ( hashcat_ctx , device_param - > cuda_d_hooks , device_param - > hooks_buf , device_param- > size_hooks ) = = - 1 ) return - 1 ;
if ( hc_cuMemcpyHtoD ( hashcat_ctx , device_param - > cuda_d_hooks , device_param - > hooks_buf , pws_cnt * hashconfig - > hook_size ) = = - 1 ) return - 1 ;
}
if ( device_param - > is_opencl = = true )
{
if ( hc_clEnqueueWriteBuffer ( hashcat_ctx , device_param - > opencl_command_queue , device_param - > opencl_d_hooks , CL_TRUE , 0 , device_param- > size_hooks , device_param - > hooks_buf , 0 , NULL , NULL ) = = - 1 ) return - 1 ;
if ( hc_clEnqueueWriteBuffer ( hashcat_ctx , device_param - > opencl_command_queue , device_param - > opencl_d_hooks , CL_TRUE , 0 , pws_cnt * hashconfig - > hook_size , device_param - > hooks_buf , 0 , NULL , NULL ) = = - 1 ) return - 1 ;
}
}
}
@ -3128,12 +3128,12 @@ int choose_kernel (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param,
{
if ( device_param - > is_cuda = = true )
{
if ( run_cuda_kernel_bzero ( hashcat_ctx , device_param , device_param - > cuda_d_hooks , device_param- > size_hooks ) = = - 1 ) return - 1 ;
if ( run_cuda_kernel_bzero ( hashcat_ctx , device_param , device_param - > cuda_d_hooks , pws_cnt * hashconfig - > hook_size ) = = - 1 ) return - 1 ;
}
if ( device_param - > is_opencl = = true )
{
if ( run_opencl_kernel_bzero ( hashcat_ctx , device_param , device_param - > opencl_d_hooks , device_param- > size_hooks ) = = - 1 ) return - 1 ;
if ( run_opencl_kernel_bzero ( hashcat_ctx , device_param , device_param - > opencl_d_hooks , pws_cnt * hashconfig - > hook_size ) = = - 1 ) return - 1 ;
}
}
}