1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-06-21 15:39:03 +00:00

Fix -m 29500 in -a 1 mode multihash

This commit is contained in:
Jens Steube 2022-05-19 17:27:07 +02:00
parent ed3b521855
commit 446d82d8ea

View File

@ -17,6 +17,7 @@
KERNEL_FQ void m29500_mxx (KERN_ATTR_BASIC ()) KERNEL_FQ void m29500_mxx (KERN_ATTR_BASIC ())
{ {
/** /**
* modifier * modifier
*/ */
@ -96,10 +97,9 @@ KERNEL_FQ void m29500_mxx (KERN_ATTR_BASIC ())
} }
sha1_hmac_ctx_t ctx; sha1_hmac_ctx_t ctx;
sha1_hmac_init_swap (&ctx, c, pw_len + comb_len); sha1_hmac_init (&ctx, c, pw_len + comb_len);
sha1_hmac_update (&ctx, fixed, 14); sha1_hmac_update (&ctx, fixed, 14);
sha1_hmac_final (&ctx); sha1_hmac_final (&ctx);
u32 intermediate[16] = {0}; u32 intermediate[16] = {0};
intermediate[0] = ctx.opad.h[0]; intermediate[0] = ctx.opad.h[0];
intermediate[1] = ctx.opad.h[1]; intermediate[1] = ctx.opad.h[1];