Fix self-test functionality if FIXED_LOCAL_SIZE_COMP is used

Fix -m 25700 datatype in -a 3 mode and maximum password length in pure kernel mode
Fix -m 12500, 23700 and 23800 if password is exactly length 128
This commit is contained in:
Jens Steube
2021-08-02 12:00:17 +02:00
parent 7f16921d8b
commit b2d1f42905
6 changed files with 19 additions and 9 deletions
+11 -1
View File
@@ -11111,7 +11111,7 @@ int backend_session_begin (hashcat_ctx_t *hashcat_ctx)
{
device_param->skipped = true;
continue;
}
}
}
/**
@@ -11629,6 +11629,16 @@ int backend_session_begin (hashcat_ctx_t *hashcat_ctx)
device_param->kernel_threads_min = fixed_local_size;
device_param->kernel_threads_max = fixed_local_size;
}
else
{
// kernels specific minimum needs to be set so that self-test wont fail
if (sscanf (jit_build_options, "-D FIXED_LOCAL_SIZE_COMP=%u", &fixed_local_size) == 1)
{
device_param->kernel_threads_min = fixed_local_size;
// device_param->kernel_threads_max = fixed_local_size;
}
}
}
}