1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-05-07 17:39:10 +00:00

Merge pull request #2248 from philsmd/patch-1

electrum5: simplify zlib rejection check
This commit is contained in:
Jens Steube 2019-12-13 11:18:14 +01:00 committed by GitHub
commit 0321a99c87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -513,9 +513,7 @@ KERNEL_FQ void m21800_comp (KERN_ATTR_TMPS_ESALT (electrum_tmp_t, electrum_t))
// early reject
u32 zlib_header = buf[0] & 0x0007ffff;
if ((zlib_header != 0x00049c78) && (zlib_header != 0x00059c78)) return;
if ((buf[0] & 0x0006ffff) != 0x00049c78) return; // allow 0b100 or 0b101 at the end of 3rd byte
buf[1] ^= iv[1];
buf[2] ^= iv[2];