1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 09:58:16 +00:00

Fix missing const keyword in module_hash_encode() in -m 29600

This commit is contained in:
jsteube 2023-03-06 18:39:26 +00:00
parent 51084ad6ad
commit 4fe68b0d4f

View File

@ -103,9 +103,10 @@ u32 module_salt_max (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED c
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) 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)
{ {
terra_t *terra = (terra_t *) esalt_buf;
u32 *digest = (u32 *) digest_buf; u32 *digest = (u32 *) digest_buf;
terra_t *terra = (terra_t *) esalt_buf;
hc_token_t token; hc_token_t token;
token.token_cnt = 3; token.token_cnt = 3;
@ -195,10 +196,10 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const void *digest_buf, MAYBE_UNUSED const salt_t *salt, MAYBE_UNUSED const void *esalt_buf, MAYBE_UNUSED const void *hook_salt_buf, MAYBE_UNUSED const hashinfo_t *hash_info, char *line_buf, MAYBE_UNUSED const int line_size) int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const void *digest_buf, MAYBE_UNUSED const salt_t *salt, MAYBE_UNUSED const void *esalt_buf, MAYBE_UNUSED const void *hook_salt_buf, MAYBE_UNUSED const hashinfo_t *hash_info, char *line_buf, MAYBE_UNUSED const int line_size)
{ {
terra_t *terra = (terra_t *) esalt_buf;
u32 *digest = (u32 *) digest_buf; u32 *digest = (u32 *) digest_buf;
const terra_t *terra = (const terra_t *) esalt_buf;
// salt: // salt:
char salt_hex[32 + 1] = { 0 }; char salt_hex[32 + 1] = { 0 };