From 5c0820b8d304d026bd36b4d73aedc425f2fdce51 Mon Sep 17 00:00:00 2001 From: Jukka Ojanen Date: Fri, 13 Aug 2021 13:08:47 +0300 Subject: [PATCH] Assume hashconfig->tmp_size is the element size --- include/types.h | 1 - src/backend.c | 2 +- src/hashes.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/types.h b/include/types.h index 0f0061a4f..0723960a8 100644 --- a/include/types.h +++ b/include/types.h @@ -987,7 +987,6 @@ typedef struct hashconfig u64 hook_extra_param_size; u64 hook_salt_size; u64 tmp_size; - u64 extra_tmp_size; u64 hook_size; // password length limit diff --git a/src/backend.c b/src/backend.c index 3f1a91362..aa632f2f1 100644 --- a/src/backend.c +++ b/src/backend.c @@ -14581,7 +14581,7 @@ int backend_session_begin (hashcat_ctx_t *hashcat_ctx) // size_tmps - size_tmps = kernel_power_max * (hashconfig->tmp_size + hashconfig->extra_tmp_size); + size_tmps = kernel_power_max * hashconfig->tmp_size; // size_hooks diff --git a/src/hashes.c b/src/hashes.c index 371724e75..1e2d8437f 100644 --- a/src/hashes.c +++ b/src/hashes.c @@ -1954,7 +1954,7 @@ int hashes_init_stage4 (hashcat_ctx_t *hashcat_ctx) return -1; } - hashconfig->extra_tmp_size = extra_tmp_size; + hashconfig->tmp_size = extra_tmp_size; } // at this point we no longer need hash_t* structure