|
|
|
@ -47,21 +47,6 @@ const char *module_st_pass (MAYBE_UNUSED const hashconfig_t *hashconfig,
|
|
|
|
|
|
|
|
|
|
static const char *SIGNATURE_FORTIGATE = "SH2";
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
{
|
|
|
|
|
u32 pw_max = PW_MAX;
|
|
|
|
|
|
|
|
|
|
// There's no optimized kernel?!
|
|
|
|
|
const bool optimized_kernel = (hashconfig->opti_type & OPTI_TYPE_OPTIMIZED_KERNEL);
|
|
|
|
|
|
|
|
|
|
if (optimized_kernel == true)
|
|
|
|
|
{
|
|
|
|
|
pw_max = 31;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
{
|
|
|
|
|
u32 *digest = (u32 *) digest_buf;
|
|
|
|
|