1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-31 02:48:50 +00:00

PR comments polish 3

This commit is contained in:
Dylan Evans 2024-06-10 11:10:09 -04:00
parent b19101ed08
commit 02b1a7930b
2 changed files with 1 additions and 20 deletions

View File

@ -19,12 +19,6 @@
#define SHA512_DIGEST_LENGTH 64
typedef struct shiro1_sha512
{
u32 salt_buf[4];
u32 iterations;
} shiro1_sha512_t;
typedef struct shiro1_sha512_tmp
{
u64 dgst[8];

View File

@ -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_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
{
u64 dgst[8];
@ -61,13 +55,6 @@ typedef struct shiro1_sha512_tmp
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)
{
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_size = module_dgst_size;
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_tmp_size = MODULE_DEFAULT;
module_ctx->module_extra_tuningdb_block = MODULE_DEFAULT;