mirror of
https://github.com/hashcat/hashcat.git
synced 2025-08-02 11:58:26 +00:00
PR comments polish 3
This commit is contained in:
parent
b19101ed08
commit
02b1a7930b
@ -19,12 +19,6 @@
|
|||||||
|
|
||||||
#define SHA512_DIGEST_LENGTH 64
|
#define SHA512_DIGEST_LENGTH 64
|
||||||
|
|
||||||
typedef struct shiro1_sha512
|
|
||||||
{
|
|
||||||
u32 salt_buf[4];
|
|
||||||
u32 iterations;
|
|
||||||
} shiro1_sha512_t;
|
|
||||||
|
|
||||||
typedef struct shiro1_sha512_tmp
|
typedef struct shiro1_sha512_tmp
|
||||||
{
|
{
|
||||||
u64 dgst[8];
|
u64 dgst[8];
|
||||||
|
@ -47,12 +47,6 @@ u32 module_salt_type (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE
|
|||||||
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_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; }
|
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; }
|
||||||
|
|
||||||
typedef struct shiro1_sha512
|
|
||||||
{
|
|
||||||
u32 salt_buf[4];
|
|
||||||
u32 iterations;
|
|
||||||
} shiro1_sha512_t;
|
|
||||||
|
|
||||||
typedef struct shiro1_sha512_tmp
|
typedef struct shiro1_sha512_tmp
|
||||||
{
|
{
|
||||||
u64 dgst[8];
|
u64 dgst[8];
|
||||||
@ -61,13 +55,6 @@ typedef struct shiro1_sha512_tmp
|
|||||||
|
|
||||||
static const char *SIGNATURE_SHIRO1_SHA512 = "$shiro1$SHA-512$";
|
static const char *SIGNATURE_SHIRO1_SHA512 = "$shiro1$SHA-512$";
|
||||||
|
|
||||||
u64 module_esalt_size (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 u64 esalt_size = (const u64) sizeof (shiro1_sha512_t);
|
|
||||||
|
|
||||||
return esalt_size;
|
|
||||||
}
|
|
||||||
|
|
||||||
u64 module_tmp_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
u64 module_tmp_size (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 u64 tmp_size = (const u64) sizeof (shiro1_sha512_tmp_t);
|
const u64 tmp_size = (const u64) sizeof (shiro1_sha512_tmp_t);
|
||||||
@ -184,7 +171,7 @@ void module_init (module_ctx_t *module_ctx)
|
|||||||
module_ctx->module_dgst_pos3 = module_dgst_pos3;
|
module_ctx->module_dgst_pos3 = module_dgst_pos3;
|
||||||
module_ctx->module_dgst_size = module_dgst_size;
|
module_ctx->module_dgst_size = module_dgst_size;
|
||||||
module_ctx->module_dictstat_disable = MODULE_DEFAULT;
|
module_ctx->module_dictstat_disable = MODULE_DEFAULT;
|
||||||
module_ctx->module_esalt_size = module_esalt_size;
|
module_ctx->module_esalt_size = MODULE_DEFAULT;
|
||||||
module_ctx->module_extra_buffer_size = MODULE_DEFAULT;
|
module_ctx->module_extra_buffer_size = MODULE_DEFAULT;
|
||||||
module_ctx->module_extra_tmp_size = MODULE_DEFAULT;
|
module_ctx->module_extra_tmp_size = MODULE_DEFAULT;
|
||||||
module_ctx->module_extra_tuningdb_block = MODULE_DEFAULT;
|
module_ctx->module_extra_tuningdb_block = MODULE_DEFAULT;
|
||||||
|
Loading…
Reference in New Issue
Block a user