mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-23 14:10:57 +00:00
Fix -m 14800 benchmark iteration count
This commit is contained in:
parent
756ec0288e
commit
6e0ef6984c
@ -9,6 +9,7 @@
|
|||||||
#include "bitops.h"
|
#include "bitops.h"
|
||||||
#include "convert.h"
|
#include "convert.h"
|
||||||
#include "shared.h"
|
#include "shared.h"
|
||||||
|
#include "memory.h"
|
||||||
|
|
||||||
static const u32 ATTACK_EXEC = ATTACK_EXEC_OUTSIDE_KERNEL;
|
static const u32 ATTACK_EXEC = ATTACK_EXEC_OUTSIDE_KERNEL;
|
||||||
static const u32 DGST_POS0 = 0;
|
static const u32 DGST_POS0 = 0;
|
||||||
@ -63,6 +64,17 @@ typedef struct pbkdf2_sha256_tmp
|
|||||||
|
|
||||||
static const char *SIGNATURE_ITUNES_BACKUP = "$itunes_backup$";
|
static const char *SIGNATURE_ITUNES_BACKUP = "$itunes_backup$";
|
||||||
|
|
||||||
|
salt_t *module_benchmark_salt (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
||||||
|
{
|
||||||
|
salt_t *salt = (salt_t *) hcmalloc (sizeof (salt_t));
|
||||||
|
|
||||||
|
salt->salt_iter = 10000000 - 1;
|
||||||
|
salt->salt_iter2 = 10000 - 1;
|
||||||
|
salt->salt_len = 16;
|
||||||
|
|
||||||
|
return salt;
|
||||||
|
}
|
||||||
|
|
||||||
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)
|
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 (itunes_backup_t);
|
const u64 esalt_size = (const u64) sizeof (itunes_backup_t);
|
||||||
@ -364,7 +376,7 @@ void module_init (module_ctx_t *module_ctx)
|
|||||||
module_ctx->module_benchmark_esalt = MODULE_DEFAULT;
|
module_ctx->module_benchmark_esalt = MODULE_DEFAULT;
|
||||||
module_ctx->module_benchmark_hook_salt = MODULE_DEFAULT;
|
module_ctx->module_benchmark_hook_salt = MODULE_DEFAULT;
|
||||||
module_ctx->module_benchmark_mask = MODULE_DEFAULT;
|
module_ctx->module_benchmark_mask = MODULE_DEFAULT;
|
||||||
module_ctx->module_benchmark_salt = MODULE_DEFAULT;
|
module_ctx->module_benchmark_salt = module_benchmark_salt;
|
||||||
module_ctx->module_build_plain_postprocess = MODULE_DEFAULT;
|
module_ctx->module_build_plain_postprocess = MODULE_DEFAULT;
|
||||||
module_ctx->module_deep_comp_kernel = MODULE_DEFAULT;
|
module_ctx->module_deep_comp_kernel = MODULE_DEFAULT;
|
||||||
module_ctx->module_dgst_pos0 = module_dgst_pos0;
|
module_ctx->module_dgst_pos0 = module_dgst_pos0;
|
||||||
|
Loading…
Reference in New Issue
Block a user