Renumber to hash mode 27200

pull/2914/head
therealartifex 3 years ago
parent 483a62cb7c
commit d22bb0e712

@ -16,7 +16,7 @@
#include "inc_hash_sha1.cl"
#endif
KERNEL_FQ void m27100_mxx (KERN_ATTR_RULES ())
KERNEL_FQ void m27200_mxx (KERN_ATTR_RULES ())
{
/**
* modifier
@ -68,7 +68,7 @@ KERNEL_FQ void m27100_mxx (KERN_ATTR_RULES ())
}
}
KERNEL_FQ void m27100_sxx (KERN_ATTR_RULES ())
KERNEL_FQ void m27200_sxx (KERN_ATTR_RULES ())
{
/**
* modifier

@ -14,7 +14,7 @@
#include "inc_hash_sha1.cl"
#endif
KERNEL_FQ void m27100_mxx (KERN_ATTR_BASIC ())
KERNEL_FQ void m27200_mxx (KERN_ATTR_BASIC ())
{
/**
* modifier
@ -62,7 +62,7 @@ KERNEL_FQ void m27100_mxx (KERN_ATTR_BASIC ())
}
}
KERNEL_FQ void m27100_sxx (KERN_ATTR_BASIC ())
KERNEL_FQ void m27200_sxx (KERN_ATTR_BASIC ())
{
/**
* modifier

@ -14,7 +14,7 @@
#include "inc_hash_sha1.cl"
#endif
KERNEL_FQ void m27100_mxx (KERN_ATTR_VECTOR ())
KERNEL_FQ void m27200_mxx (KERN_ATTR_VECTOR ())
{
/**
* modifier
@ -80,7 +80,7 @@ KERNEL_FQ void m27100_mxx (KERN_ATTR_VECTOR ())
}
}
KERNEL_FQ void m27100_sxx (KERN_ATTR_VECTOR ())
KERNEL_FQ void m27200_sxx (KERN_ATTR_VECTOR ())
{
/**
* modifier

@ -18,7 +18,7 @@ static const u32 DGST_POS3 = 1;
static const u32 DGST_SIZE = DGST_SIZE_4_5;
static const u32 HASH_CATEGORY = HASH_CATEGORY_RAW_HASH_SALTED;
static const char *HASH_NAME = "Ruby on Rails Restful Auth (single round, no sitekey)";
static const u64 KERN_TYPE = 27100;
static const u64 KERN_TYPE = 27200;
static const u32 OPTI_TYPE = OPTI_TYPE_ZERO_BYTE
| OPTI_TYPE_PRECOMPUTE_INIT
| OPTI_TYPE_EARLY_SKIP
@ -47,6 +47,20 @@ u32 module_salt_type (MAYBE_UNUSED const hashconfig_t *hashconfig,
const char *module_st_hash (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return ST_HASH; }
const char *module_st_pass (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return ST_PASS; }
u32 module_salt_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)
{
const u32 salt_max = 40;
return salt_max;
}
u32 module_salt_min (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
{
const u32 salt_min = 40;
return salt_min;
}
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;
@ -216,8 +230,8 @@ void module_init (module_ctx_t *module_ctx)
module_ctx->module_pwdump_column = MODULE_DEFAULT;
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;
module_ctx->module_salt_max = module_salt_max;
module_ctx->module_salt_min = module_salt_min;
module_ctx->module_salt_type = module_salt_type;
module_ctx->module_separator = MODULE_DEFAULT;
module_ctx->module_st_hash = module_st_hash;
Loading…
Cancel
Save