From d0a59db595e8546b1a5c053ea3de90b7baf38bf0 Mon Sep 17 00:00:00 2001 From: philsmd <921533+philsmd@users.noreply.github.com> Date: Wed, 11 Dec 2019 15:44:32 +0100 Subject: [PATCH] allow 04 and 05 in zlib header check --- OpenCL/m21800-pure.cl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenCL/m21800-pure.cl b/OpenCL/m21800-pure.cl index ccdf822aa..dd9bcf0ba 100644 --- a/OpenCL/m21800-pure.cl +++ b/OpenCL/m21800-pure.cl @@ -513,7 +513,9 @@ KERNEL_FQ void m21800_comp (KERN_ATTR_TMPS_ESALT (electrum_tmp_t, electrum_t)) // early reject - if ((buf[0] & 0x0007ffff) != 0x00059c78) return; + u32 zlib_header = buf[0] & 0x0007ffff; + + if ((zlib_header != 0x00049c78) && (zlib_header != 0x00059c78)) return; buf[1] ^= iv[1]; buf[2] ^= iv[2];