1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Normalize initial out_buf line in encoder in -m 30700

This commit is contained in:
jsteube 2022-12-16 23:11:00 +00:00
parent 2431201007
commit 1154272d6a

View File

@ -175,9 +175,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
u8 *out_buf = (u8 *) line_buf;
int out_len = strlen("sha256:");;
memcpy (out_buf, "sha256:", out_len);
int out_len = snprintf (line_buf, line_size, "%s:", SIGNATURE_ANOPE);
u32_to_hex (tmp[0], out_buf + out_len); out_len += 8;
u32_to_hex (tmp[1], out_buf + out_len); out_len += 8;