mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
Simplify module_hash_decode() in -m 32700
This commit is contained in:
parent
33be14995a
commit
302dab6a24
@ -107,10 +107,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
// 8 bytes salt
|
||||
const u8 *salt_pos = token.buf[1];
|
||||
|
||||
for (u32 i = 0, j = 0; i < 8 / 4; i += 1, j += 8)
|
||||
{
|
||||
salt->salt_buf[i] = hex_to_u32 (salt_pos + j);
|
||||
}
|
||||
salt->salt_buf[0] = hex_to_u32 (salt_pos + 0);
|
||||
salt->salt_buf[1] = hex_to_u32 (salt_pos + 8);
|
||||
|
||||
salt->salt_len = 8;
|
||||
salt->salt_iter = 1000;
|
||||
|
Loading…
Reference in New Issue
Block a user