|
|
|
@ -44,18 +44,6 @@ const char *module_st_pass (MAYBE_UNUSED const hashconfig_t *hashconfig,
|
|
|
|
|
|
|
|
|
|
static const char *SIGNATURE_BLAKE2B = "$BLAKE2$";
|
|
|
|
|
|
|
|
|
|
u32 module_pw_max (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
|
|
|
|
{
|
|
|
|
|
// this overrides the reductions of pw_max in case optimized kernel is selected
|
|
|
|
|
// IOW, even in optimized kernel mode it support length 64
|
|
|
|
|
|
|
|
|
|
const bool optimized_kernel = (hashconfig->opti_type & OPTI_TYPE_OPTIMIZED_KERNEL);
|
|
|
|
|
|
|
|
|
|
const u32 pw_max = (optimized_kernel == true) ? 64 : PW_MAX;
|
|
|
|
|
|
|
|
|
|
return pw_max;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED void *digest_buf, MAYBE_UNUSED salt_t *salt, MAYBE_UNUSED void *esalt_buf, MAYBE_UNUSED void *hook_salt_buf, MAYBE_UNUSED hashinfo_t *hash_info, const char *line_buf, MAYBE_UNUSED const int line_len)
|
|
|
|
|
{
|
|
|
|
|
u64 *digest = (u64 *) digest_buf;
|
|
|
|
@ -178,7 +166,7 @@ void module_init (module_ctx_t *module_ctx)
|
|
|
|
|
module_ctx->module_potfile_disable = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_potfile_keep_all_hashes = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_pwdump_column = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_pw_max = module_pw_max;
|
|
|
|
|
module_ctx->module_pw_max = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_pw_min = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_salt_max = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_salt_min = MODULE_DEFAULT;
|
|
|
|
|