mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-27 02:18:21 +00:00
Try to use true and false in case we're handling a bool data-type just as kind of a hint it's a bool
This commit is contained in:
parent
1c82cc960d
commit
72e39a7ec0
@ -44,7 +44,7 @@ static u64 get_lowest_words_done (const hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
const u64 words_done = device_param->words_done;
|
const u64 words_done = device_param->words_done;
|
||||||
|
|
||||||
|
@ -633,7 +633,7 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
device_param = &opencl_ctx->devices_param[device_id];
|
device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
10
src/hwmon.c
10
src/hwmon.c
@ -3489,7 +3489,7 @@ int hwmon_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
if ((device_param->device_type & CL_DEVICE_TYPE_GPU) == 0) continue;
|
if ((device_param->device_type & CL_DEVICE_TYPE_GPU) == 0) continue;
|
||||||
|
|
||||||
@ -3539,7 +3539,7 @@ int hwmon_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue;
|
if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue;
|
||||||
|
|
||||||
@ -3758,7 +3758,7 @@ int hwmon_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue;
|
if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue;
|
||||||
|
|
||||||
@ -3839,7 +3839,7 @@ void hwmon_ctx_destroy (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue;
|
if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue;
|
||||||
|
|
||||||
@ -3885,7 +3885,7 @@ void hwmon_ctx_destroy (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue;
|
if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue;
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ static int monitor (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
const int rc_throttle = hm_get_throttle_with_device_id (hashcat_ctx, device_id);
|
const int rc_throttle = hm_get_throttle_with_device_id (hashcat_ctx, device_id);
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ static int monitor (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue;
|
if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue;
|
||||||
|
|
||||||
|
16
src/opencl.c
16
src/opencl.c
@ -2968,7 +2968,7 @@ void opencl_ctx_devices_destroy (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
hcfree (device_param->device_name);
|
hcfree (device_param->device_name);
|
||||||
hcfree (device_param->device_name_chksum);
|
hcfree (device_param->device_name_chksum);
|
||||||
@ -3043,7 +3043,7 @@ void opencl_ctx_devices_kernel_loops (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
if (device_param->kernel_loops_min < device_param->kernel_loops_max)
|
if (device_param->kernel_loops_min < device_param->kernel_loops_max)
|
||||||
{
|
{
|
||||||
@ -3146,7 +3146,7 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
/**
|
/**
|
||||||
@ -4746,7 +4746,7 @@ void opencl_session_destroy (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
hcfree (device_param->pws_buf);
|
hcfree (device_param->pws_buf);
|
||||||
hcfree (device_param->combs_buf);
|
hcfree (device_param->combs_buf);
|
||||||
@ -4868,7 +4868,7 @@ void opencl_session_reset (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
device_param->speed_pos = 0;
|
device_param->speed_pos = 0;
|
||||||
|
|
||||||
@ -4910,7 +4910,7 @@ int opencl_session_update_combinator (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
// kernel_params
|
// kernel_params
|
||||||
|
|
||||||
@ -4951,7 +4951,7 @@ int opencl_session_update_mp (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
device_param->kernel_params_mp_buf64[3] = 0;
|
device_param->kernel_params_mp_buf64[3] = 0;
|
||||||
device_param->kernel_params_mp_buf32[4] = mask_ctx->css_cnt;
|
device_param->kernel_params_mp_buf32[4] = mask_ctx->css_cnt;
|
||||||
@ -4979,7 +4979,7 @@ int opencl_session_update_mp_rl (hashcat_ctx_t *hashcat_ctx, const u32 css_cnt_l
|
|||||||
{
|
{
|
||||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||||
|
|
||||||
if (device_param->skipped) continue;
|
if (device_param->skipped == true) continue;
|
||||||
|
|
||||||
device_param->kernel_params_mp_l_buf64[3] = 0;
|
device_param->kernel_params_mp_l_buf64[3] = 0;
|
||||||
device_param->kernel_params_mp_l_buf32[4] = css_cnt_l;
|
device_param->kernel_params_mp_l_buf32[4] = css_cnt_l;
|
||||||
|
Loading…
Reference in New Issue
Block a user