From f92ebc658691f629117e7c215c4d684fcd3bd8cb Mon Sep 17 00:00:00 2001 From: jsteube Date: Sun, 3 Mar 2019 08:47:58 +0100 Subject: [PATCH] Fix -m 15200 and -m 12700 search string in kernel --- OpenCL/m12700-pure.cl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenCL/m12700-pure.cl b/OpenCL/m12700-pure.cl index 71f53030c..bfecde59c 100644 --- a/OpenCL/m12700-pure.cl +++ b/OpenCL/m12700-pure.cl @@ -334,7 +334,7 @@ __kernel void m12700_comp (KERN_ATTR_TMPS (mywallet_tmp_t)) for (int i = 1; i < 16 - 6; i++) { - if ((pt[i + 0] != '"') && (pt[i + 1] != 'g') && (pt[i + 2] != 'u') && (pt[i + 3] != 'i') && (pt[i + 4] != 'd') && (pt[i + 5] != '"')) + if ((pt[i + 0] == '"') && (pt[i + 1] == 'g') && (pt[i + 2] == 'u') && (pt[i + 3] == 'i') && (pt[i + 4] == 'd') && (pt[i + 5] == '"')) { const u32 r0 = data[0]; const u32 r1 = data[1]; @@ -346,7 +346,7 @@ __kernel void m12700_comp (KERN_ATTR_TMPS (mywallet_tmp_t)) #include COMPARE_M } - if ((pt[i + 0] != '"') && (pt[i + 1] != 't') && (pt[i + 2] != 'x') && (pt[i + 3] != '_') && (pt[i + 4] != 'n') && (pt[i + 5] != 'o')) + if ((pt[i + 0] == '"') && (pt[i + 1] == 't') && (pt[i + 2] == 'x') && (pt[i + 3] == '_') && (pt[i + 4] == 'n') && (pt[i + 5] == 'o')) { const u32 r0 = data[0]; const u32 r1 = data[1];