2 * Author......: Jens Steube <jens.steube@gmail.com>
8 #include "include/constants.h"
9 #include "include/kernel_vendor.h"
16 #include "include/kernel_functions.c"
17 #include "OpenCL/types_ocl.c"
18 #include "OpenCL/common.c"
20 #define COMPARE_S "OpenCL/check_single_comp4.c"
21 #define COMPARE_M "OpenCL/check_multi_comp4.c"
23 static void m04900m (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_len, __global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_scryptV_buf, const u32 bitmap_mask, const u32 bitmap_shift1, const u32 bitmap_shift2, const u32 salt_pos, const u32 loop_pos, const u32 loop_cnt, const u32 bfs_cnt, const u32 digests_cnt, const u32 digests_offset)
29 const u32 gid = get_global_id (0);
30 const u32 lid = get_local_id (0);
38 salt_buf0_t[0] = salt_bufs[salt_pos].salt_buf[0];
39 salt_buf0_t[1] = salt_bufs[salt_pos].salt_buf[1];
40 salt_buf0_t[2] = salt_bufs[salt_pos].salt_buf[2];
41 salt_buf0_t[3] = salt_bufs[salt_pos].salt_buf[3];
45 salt_buf1_t[0] = salt_bufs[salt_pos].salt_buf[4];
46 salt_buf1_t[1] = salt_bufs[salt_pos].salt_buf[5];
47 salt_buf1_t[2] = salt_bufs[salt_pos].salt_buf[6];
48 salt_buf1_t[3] = salt_bufs[salt_pos].salt_buf[7];
64 const u32 salt_len = salt_bufs[salt_pos].salt_len;
66 const u32 pw_salt_len = salt_len + pw_len + salt_len;
68 // first we need to switch the right-hand salt to the correct position (2nd salt)
70 switch_buffer_by_offset (salt_buf0_t, salt_buf1_t, salt_buf2_t, salt_buf3_t, salt_len + pw_len);
74 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[0];
75 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[1];
76 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[2];
77 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[3];
81 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[4];
82 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[5];
83 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[6];
84 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[7];
100 // concatenate the 1st and 2nd instance of the salt
102 salt_buf0[0] |= salt_buf0_t[0];
103 salt_buf0[1] |= salt_buf0_t[1];
104 salt_buf0[2] |= salt_buf0_t[2];
105 salt_buf0[3] |= salt_buf0_t[3];
107 salt_buf1[0] |= salt_buf1_t[0];
108 salt_buf1[1] |= salt_buf1_t[1];
109 salt_buf1[2] |= salt_buf1_t[2];
110 salt_buf1[3] |= salt_buf1_t[3];
112 salt_buf2[0] |= salt_buf2_t[0];
113 salt_buf2[1] |= salt_buf2_t[1];
114 salt_buf2[2] |= salt_buf2_t[2];
115 salt_buf2[3] |= salt_buf2_t[3];
117 salt_buf3[0] |= salt_buf3_t[0];
118 salt_buf3[1] |= salt_buf3_t[1];
119 salt_buf3[2] |= salt_buf3_t[2];
120 salt_buf3[3] |= salt_buf3_t[3];
122 append_0x80_4x4 (salt_buf0, salt_buf1, salt_buf2, salt_buf3, pw_salt_len);
130 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
132 const u32 w0r = bfs_buf[il_pos].i;
165 * put the password after the first salt but before the second salt
168 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, salt_len);
170 w0_t[0] |= salt_buf0[0];
171 w0_t[1] |= salt_buf0[1];
172 w0_t[2] |= salt_buf0[2];
173 w0_t[3] |= salt_buf0[3];
174 w1_t[0] |= salt_buf1[0];
175 w1_t[1] |= salt_buf1[1];
176 w1_t[2] |= salt_buf1[2];
177 w1_t[3] |= salt_buf1[3];
178 w2_t[0] |= salt_buf2[0];
179 w2_t[1] |= salt_buf2[1];
180 w2_t[2] |= salt_buf2[2];
181 w2_t[3] |= salt_buf2[3];
182 w3_t[0] |= salt_buf3[0];
183 w3_t[1] |= salt_buf3[1];
184 w3_t[2] |= salt_buf3[2];
186 u32 w0 = swap32 (w0_t[0]);
187 u32 w1 = swap32 (w0_t[1]);
188 u32 w2 = swap32 (w0_t[2]);
189 u32 w3 = swap32 (w0_t[3]);
190 u32 w4 = swap32 (w1_t[0]);
191 u32 w5 = swap32 (w1_t[1]);
192 u32 w6 = swap32 (w1_t[2]);
193 u32 w7 = swap32 (w1_t[3]);
194 u32 w8 = swap32 (w2_t[0]);
195 u32 w9 = swap32 (w2_t[1]);
196 u32 wa = swap32 (w2_t[2]);
197 u32 wb = swap32 (w2_t[3]);
198 u32 wc = swap32 (w3_t[0]);
199 u32 wd = swap32 (w3_t[1]);
200 u32 we = swap32 (w3_t[2]);
201 u32 wf = pw_salt_len * 8;
216 SHA1_STEP (SHA1_F0o, a, b, c, d, e, w0);
217 SHA1_STEP (SHA1_F0o, e, a, b, c, d, w1);
218 SHA1_STEP (SHA1_F0o, d, e, a, b, c, w2);
219 SHA1_STEP (SHA1_F0o, c, d, e, a, b, w3);
220 SHA1_STEP (SHA1_F0o, b, c, d, e, a, w4);
221 SHA1_STEP (SHA1_F0o, a, b, c, d, e, w5);
222 SHA1_STEP (SHA1_F0o, e, a, b, c, d, w6);
223 SHA1_STEP (SHA1_F0o, d, e, a, b, c, w7);
224 SHA1_STEP (SHA1_F0o, c, d, e, a, b, w8);
225 SHA1_STEP (SHA1_F0o, b, c, d, e, a, w9);
226 SHA1_STEP (SHA1_F0o, a, b, c, d, e, wa);
227 SHA1_STEP (SHA1_F0o, e, a, b, c, d, wb);
228 SHA1_STEP (SHA1_F0o, d, e, a, b, c, wc);
229 SHA1_STEP (SHA1_F0o, c, d, e, a, b, wd);
230 SHA1_STEP (SHA1_F0o, b, c, d, e, a, we);
231 SHA1_STEP (SHA1_F0o, a, b, c, d, e, wf);
232 w0 = rotl32 ((wd ^ w8 ^ w2 ^ w0), 1u); SHA1_STEP (SHA1_F0o, e, a, b, c, d, w0);
233 w1 = rotl32 ((we ^ w9 ^ w3 ^ w1), 1u); SHA1_STEP (SHA1_F0o, d, e, a, b, c, w1);
234 w2 = rotl32 ((wf ^ wa ^ w4 ^ w2), 1u); SHA1_STEP (SHA1_F0o, c, d, e, a, b, w2);
235 w3 = rotl32 ((w0 ^ wb ^ w5 ^ w3), 1u); SHA1_STEP (SHA1_F0o, b, c, d, e, a, w3);
240 w4 = rotl32 ((w1 ^ wc ^ w6 ^ w4), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w4);
241 w5 = rotl32 ((w2 ^ wd ^ w7 ^ w5), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, w5);
242 w6 = rotl32 ((w3 ^ we ^ w8 ^ w6), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w6);
243 w7 = rotl32 ((w4 ^ wf ^ w9 ^ w7), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w7);
244 w8 = rotl32 ((w5 ^ w0 ^ wa ^ w8), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w8);
245 w9 = rotl32 ((w6 ^ w1 ^ wb ^ w9), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w9);
246 wa = rotl32 ((w7 ^ w2 ^ wc ^ wa), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, wa);
247 wb = rotl32 ((w8 ^ w3 ^ wd ^ wb), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, wb);
248 wc = rotl32 ((w9 ^ w4 ^ we ^ wc), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, wc);
249 wd = rotl32 ((wa ^ w5 ^ wf ^ wd), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, wd);
250 we = rotl32 ((wb ^ w6 ^ w0 ^ we), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, we);
251 wf = rotl32 ((wc ^ w7 ^ w1 ^ wf), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, wf);
252 w0 = rotl32 ((wd ^ w8 ^ w2 ^ w0), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w0);
253 w1 = rotl32 ((we ^ w9 ^ w3 ^ w1), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w1);
254 w2 = rotl32 ((wf ^ wa ^ w4 ^ w2), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w2);
255 w3 = rotl32 ((w0 ^ wb ^ w5 ^ w3), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w3);
256 w4 = rotl32 ((w1 ^ wc ^ w6 ^ w4), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, w4);
257 w5 = rotl32 ((w2 ^ wd ^ w7 ^ w5), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w5);
258 w6 = rotl32 ((w3 ^ we ^ w8 ^ w6), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w6);
259 w7 = rotl32 ((w4 ^ wf ^ w9 ^ w7), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w7);
264 w8 = rotl32 ((w5 ^ w0 ^ wa ^ w8), 1u); SHA1_STEP (SHA1_F2o, a, b, c, d, e, w8);
265 w9 = rotl32 ((w6 ^ w1 ^ wb ^ w9), 1u); SHA1_STEP (SHA1_F2o, e, a, b, c, d, w9);
266 wa = rotl32 ((w7 ^ w2 ^ wc ^ wa), 1u); SHA1_STEP (SHA1_F2o, d, e, a, b, c, wa);
267 wb = rotl32 ((w8 ^ w3 ^ wd ^ wb), 1u); SHA1_STEP (SHA1_F2o, c, d, e, a, b, wb);
268 wc = rotl32 ((w9 ^ w4 ^ we ^ wc), 1u); SHA1_STEP (SHA1_F2o, b, c, d, e, a, wc);
269 wd = rotl32 ((wa ^ w5 ^ wf ^ wd), 1u); SHA1_STEP (SHA1_F2o, a, b, c, d, e, wd);
270 we = rotl32 ((wb ^ w6 ^ w0 ^ we), 1u); SHA1_STEP (SHA1_F2o, e, a, b, c, d, we);
271 wf = rotl32 ((wc ^ w7 ^ w1 ^ wf), 1u); SHA1_STEP (SHA1_F2o, d, e, a, b, c, wf);
272 w0 = rotl32 ((wd ^ w8 ^ w2 ^ w0), 1u); SHA1_STEP (SHA1_F2o, c, d, e, a, b, w0);
273 w1 = rotl32 ((we ^ w9 ^ w3 ^ w1), 1u); SHA1_STEP (SHA1_F2o, b, c, d, e, a, w1);
274 w2 = rotl32 ((wf ^ wa ^ w4 ^ w2), 1u); SHA1_STEP (SHA1_F2o, a, b, c, d, e, w2);
275 w3 = rotl32 ((w0 ^ wb ^ w5 ^ w3), 1u); SHA1_STEP (SHA1_F2o, e, a, b, c, d, w3);
276 w4 = rotl32 ((w1 ^ wc ^ w6 ^ w4), 1u); SHA1_STEP (SHA1_F2o, d, e, a, b, c, w4);
277 w5 = rotl32 ((w2 ^ wd ^ w7 ^ w5), 1u); SHA1_STEP (SHA1_F2o, c, d, e, a, b, w5);
278 w6 = rotl32 ((w3 ^ we ^ w8 ^ w6), 1u); SHA1_STEP (SHA1_F2o, b, c, d, e, a, w6);
279 w7 = rotl32 ((w4 ^ wf ^ w9 ^ w7), 1u); SHA1_STEP (SHA1_F2o, a, b, c, d, e, w7);
280 w8 = rotl32 ((w5 ^ w0 ^ wa ^ w8), 1u); SHA1_STEP (SHA1_F2o, e, a, b, c, d, w8);
281 w9 = rotl32 ((w6 ^ w1 ^ wb ^ w9), 1u); SHA1_STEP (SHA1_F2o, d, e, a, b, c, w9);
282 wa = rotl32 ((w7 ^ w2 ^ wc ^ wa), 1u); SHA1_STEP (SHA1_F2o, c, d, e, a, b, wa);
283 wb = rotl32 ((w8 ^ w3 ^ wd ^ wb), 1u); SHA1_STEP (SHA1_F2o, b, c, d, e, a, wb);
288 wc = rotl32 ((w9 ^ w4 ^ we ^ wc), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, wc);
289 wd = rotl32 ((wa ^ w5 ^ wf ^ wd), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, wd);
290 we = rotl32 ((wb ^ w6 ^ w0 ^ we), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, we);
291 wf = rotl32 ((wc ^ w7 ^ w1 ^ wf), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, wf);
292 w0 = rotl32 ((wd ^ w8 ^ w2 ^ w0), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w0);
293 w1 = rotl32 ((we ^ w9 ^ w3 ^ w1), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w1);
294 w2 = rotl32 ((wf ^ wa ^ w4 ^ w2), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, w2);
295 w3 = rotl32 ((w0 ^ wb ^ w5 ^ w3), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w3);
296 w4 = rotl32 ((w1 ^ wc ^ w6 ^ w4), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w4);
297 w5 = rotl32 ((w2 ^ wd ^ w7 ^ w5), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w5);
298 w6 = rotl32 ((w3 ^ we ^ w8 ^ w6), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w6);
299 w7 = rotl32 ((w4 ^ wf ^ w9 ^ w7), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, w7);
300 w8 = rotl32 ((w5 ^ w0 ^ wa ^ w8), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w8);
301 w9 = rotl32 ((w6 ^ w1 ^ wb ^ w9), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w9);
302 wa = rotl32 ((w7 ^ w2 ^ wc ^ wa), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, wa);
303 wb = rotl32 ((w8 ^ w3 ^ wd ^ wb), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, wb);
304 wc = rotl32 ((w9 ^ w4 ^ we ^ wc), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, wc);
305 wd = rotl32 ((wa ^ w5 ^ wf ^ wd), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, wd);
306 we = rotl32 ((wb ^ w6 ^ w0 ^ we), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, we);
307 wf = rotl32 ((wc ^ w7 ^ w1 ^ wf), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, wf);
318 static void m04900s (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_len, __global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_scryptV_buf, const u32 bitmap_mask, const u32 bitmap_shift1, const u32 bitmap_shift2, const u32 salt_pos, const u32 loop_pos, const u32 loop_cnt, const u32 bfs_cnt, const u32 digests_cnt, const u32 digests_offset)
324 const u32 gid = get_global_id (0);
325 const u32 lid = get_local_id (0);
331 const u32 search[4] =
333 digests_buf[digests_offset].digest_buf[DGST_R0],
334 digests_buf[digests_offset].digest_buf[DGST_R1],
335 digests_buf[digests_offset].digest_buf[DGST_R2],
336 digests_buf[digests_offset].digest_buf[DGST_R3]
343 const u32 e_rev = rotl32 (search[1], 2u);
351 salt_buf0_t[0] = salt_bufs[salt_pos].salt_buf[0];
352 salt_buf0_t[1] = salt_bufs[salt_pos].salt_buf[1];
353 salt_buf0_t[2] = salt_bufs[salt_pos].salt_buf[2];
354 salt_buf0_t[3] = salt_bufs[salt_pos].salt_buf[3];
358 salt_buf1_t[0] = salt_bufs[salt_pos].salt_buf[4];
359 salt_buf1_t[1] = salt_bufs[salt_pos].salt_buf[5];
360 salt_buf1_t[2] = salt_bufs[salt_pos].salt_buf[6];
361 salt_buf1_t[3] = salt_bufs[salt_pos].salt_buf[7];
377 const u32 salt_len = salt_bufs[salt_pos].salt_len;
379 const u32 pw_salt_len = salt_len + pw_len + salt_len;
381 // first we need to switch the right-hand salt to the correct position (2nd salt)
383 switch_buffer_by_offset (salt_buf0_t, salt_buf1_t, salt_buf2_t, salt_buf3_t, salt_len + pw_len);
387 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[0];
388 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[1];
389 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[2];
390 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[3];
394 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[4];
395 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[5];
396 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[6];
397 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[7];
413 // concatenate the 1st and 2nd instance of the salt
415 salt_buf0[0] |= salt_buf0_t[0];
416 salt_buf0[1] |= salt_buf0_t[1];
417 salt_buf0[2] |= salt_buf0_t[2];
418 salt_buf0[3] |= salt_buf0_t[3];
420 salt_buf1[0] |= salt_buf1_t[0];
421 salt_buf1[1] |= salt_buf1_t[1];
422 salt_buf1[2] |= salt_buf1_t[2];
423 salt_buf1[3] |= salt_buf1_t[3];
425 salt_buf2[0] |= salt_buf2_t[0];
426 salt_buf2[1] |= salt_buf2_t[1];
427 salt_buf2[2] |= salt_buf2_t[2];
428 salt_buf2[3] |= salt_buf2_t[3];
430 salt_buf3[0] |= salt_buf3_t[0];
431 salt_buf3[1] |= salt_buf3_t[1];
432 salt_buf3[2] |= salt_buf3_t[2];
433 salt_buf3[3] |= salt_buf3_t[3];
435 append_0x80_4x4 (salt_buf0, salt_buf1, salt_buf2, salt_buf3, pw_salt_len);
443 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
445 const u32 w0r = bfs_buf[il_pos].i;
478 * put the password after the first salt but before the second salt
481 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, salt_len);
483 w0_t[0] |= salt_buf0[0];
484 w0_t[1] |= salt_buf0[1];
485 w0_t[2] |= salt_buf0[2];
486 w0_t[3] |= salt_buf0[3];
487 w1_t[0] |= salt_buf1[0];
488 w1_t[1] |= salt_buf1[1];
489 w1_t[2] |= salt_buf1[2];
490 w1_t[3] |= salt_buf1[3];
491 w2_t[0] |= salt_buf2[0];
492 w2_t[1] |= salt_buf2[1];
493 w2_t[2] |= salt_buf2[2];
494 w2_t[3] |= salt_buf2[3];
495 w3_t[0] |= salt_buf3[0];
496 w3_t[1] |= salt_buf3[1];
497 w3_t[2] |= salt_buf3[2];
499 u32 w0 = swap32 (w0_t[0]);
500 u32 w1 = swap32 (w0_t[1]);
501 u32 w2 = swap32 (w0_t[2]);
502 u32 w3 = swap32 (w0_t[3]);
503 u32 w4 = swap32 (w1_t[0]);
504 u32 w5 = swap32 (w1_t[1]);
505 u32 w6 = swap32 (w1_t[2]);
506 u32 w7 = swap32 (w1_t[3]);
507 u32 w8 = swap32 (w2_t[0]);
508 u32 w9 = swap32 (w2_t[1]);
509 u32 wa = swap32 (w2_t[2]);
510 u32 wb = swap32 (w2_t[3]);
511 u32 wc = swap32 (w3_t[0]);
512 u32 wd = swap32 (w3_t[1]);
513 u32 we = swap32 (w3_t[2]);
514 u32 wf = pw_salt_len * 8;
529 SHA1_STEP (SHA1_F0o, a, b, c, d, e, w0);
530 SHA1_STEP (SHA1_F0o, e, a, b, c, d, w1);
531 SHA1_STEP (SHA1_F0o, d, e, a, b, c, w2);
532 SHA1_STEP (SHA1_F0o, c, d, e, a, b, w3);
533 SHA1_STEP (SHA1_F0o, b, c, d, e, a, w4);
534 SHA1_STEP (SHA1_F0o, a, b, c, d, e, w5);
535 SHA1_STEP (SHA1_F0o, e, a, b, c, d, w6);
536 SHA1_STEP (SHA1_F0o, d, e, a, b, c, w7);
537 SHA1_STEP (SHA1_F0o, c, d, e, a, b, w8);
538 SHA1_STEP (SHA1_F0o, b, c, d, e, a, w9);
539 SHA1_STEP (SHA1_F0o, a, b, c, d, e, wa);
540 SHA1_STEP (SHA1_F0o, e, a, b, c, d, wb);
541 SHA1_STEP (SHA1_F0o, d, e, a, b, c, wc);
542 SHA1_STEP (SHA1_F0o, c, d, e, a, b, wd);
543 SHA1_STEP (SHA1_F0o, b, c, d, e, a, we);
544 SHA1_STEP (SHA1_F0o, a, b, c, d, e, wf);
545 w0 = rotl32 ((wd ^ w8 ^ w2 ^ w0), 1u); SHA1_STEP (SHA1_F0o, e, a, b, c, d, w0);
546 w1 = rotl32 ((we ^ w9 ^ w3 ^ w1), 1u); SHA1_STEP (SHA1_F0o, d, e, a, b, c, w1);
547 w2 = rotl32 ((wf ^ wa ^ w4 ^ w2), 1u); SHA1_STEP (SHA1_F0o, c, d, e, a, b, w2);
548 w3 = rotl32 ((w0 ^ wb ^ w5 ^ w3), 1u); SHA1_STEP (SHA1_F0o, b, c, d, e, a, w3);
553 w4 = rotl32 ((w1 ^ wc ^ w6 ^ w4), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w4);
554 w5 = rotl32 ((w2 ^ wd ^ w7 ^ w5), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, w5);
555 w6 = rotl32 ((w3 ^ we ^ w8 ^ w6), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w6);
556 w7 = rotl32 ((w4 ^ wf ^ w9 ^ w7), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w7);
557 w8 = rotl32 ((w5 ^ w0 ^ wa ^ w8), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w8);
558 w9 = rotl32 ((w6 ^ w1 ^ wb ^ w9), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w9);
559 wa = rotl32 ((w7 ^ w2 ^ wc ^ wa), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, wa);
560 wb = rotl32 ((w8 ^ w3 ^ wd ^ wb), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, wb);
561 wc = rotl32 ((w9 ^ w4 ^ we ^ wc), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, wc);
562 wd = rotl32 ((wa ^ w5 ^ wf ^ wd), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, wd);
563 we = rotl32 ((wb ^ w6 ^ w0 ^ we), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, we);
564 wf = rotl32 ((wc ^ w7 ^ w1 ^ wf), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, wf);
565 w0 = rotl32 ((wd ^ w8 ^ w2 ^ w0), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w0);
566 w1 = rotl32 ((we ^ w9 ^ w3 ^ w1), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w1);
567 w2 = rotl32 ((wf ^ wa ^ w4 ^ w2), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w2);
568 w3 = rotl32 ((w0 ^ wb ^ w5 ^ w3), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w3);
569 w4 = rotl32 ((w1 ^ wc ^ w6 ^ w4), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, w4);
570 w5 = rotl32 ((w2 ^ wd ^ w7 ^ w5), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w5);
571 w6 = rotl32 ((w3 ^ we ^ w8 ^ w6), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w6);
572 w7 = rotl32 ((w4 ^ wf ^ w9 ^ w7), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w7);
577 w8 = rotl32 ((w5 ^ w0 ^ wa ^ w8), 1u); SHA1_STEP (SHA1_F2o, a, b, c, d, e, w8);
578 w9 = rotl32 ((w6 ^ w1 ^ wb ^ w9), 1u); SHA1_STEP (SHA1_F2o, e, a, b, c, d, w9);
579 wa = rotl32 ((w7 ^ w2 ^ wc ^ wa), 1u); SHA1_STEP (SHA1_F2o, d, e, a, b, c, wa);
580 wb = rotl32 ((w8 ^ w3 ^ wd ^ wb), 1u); SHA1_STEP (SHA1_F2o, c, d, e, a, b, wb);
581 wc = rotl32 ((w9 ^ w4 ^ we ^ wc), 1u); SHA1_STEP (SHA1_F2o, b, c, d, e, a, wc);
582 wd = rotl32 ((wa ^ w5 ^ wf ^ wd), 1u); SHA1_STEP (SHA1_F2o, a, b, c, d, e, wd);
583 we = rotl32 ((wb ^ w6 ^ w0 ^ we), 1u); SHA1_STEP (SHA1_F2o, e, a, b, c, d, we);
584 wf = rotl32 ((wc ^ w7 ^ w1 ^ wf), 1u); SHA1_STEP (SHA1_F2o, d, e, a, b, c, wf);
585 w0 = rotl32 ((wd ^ w8 ^ w2 ^ w0), 1u); SHA1_STEP (SHA1_F2o, c, d, e, a, b, w0);
586 w1 = rotl32 ((we ^ w9 ^ w3 ^ w1), 1u); SHA1_STEP (SHA1_F2o, b, c, d, e, a, w1);
587 w2 = rotl32 ((wf ^ wa ^ w4 ^ w2), 1u); SHA1_STEP (SHA1_F2o, a, b, c, d, e, w2);
588 w3 = rotl32 ((w0 ^ wb ^ w5 ^ w3), 1u); SHA1_STEP (SHA1_F2o, e, a, b, c, d, w3);
589 w4 = rotl32 ((w1 ^ wc ^ w6 ^ w4), 1u); SHA1_STEP (SHA1_F2o, d, e, a, b, c, w4);
590 w5 = rotl32 ((w2 ^ wd ^ w7 ^ w5), 1u); SHA1_STEP (SHA1_F2o, c, d, e, a, b, w5);
591 w6 = rotl32 ((w3 ^ we ^ w8 ^ w6), 1u); SHA1_STEP (SHA1_F2o, b, c, d, e, a, w6);
592 w7 = rotl32 ((w4 ^ wf ^ w9 ^ w7), 1u); SHA1_STEP (SHA1_F2o, a, b, c, d, e, w7);
593 w8 = rotl32 ((w5 ^ w0 ^ wa ^ w8), 1u); SHA1_STEP (SHA1_F2o, e, a, b, c, d, w8);
594 w9 = rotl32 ((w6 ^ w1 ^ wb ^ w9), 1u); SHA1_STEP (SHA1_F2o, d, e, a, b, c, w9);
595 wa = rotl32 ((w7 ^ w2 ^ wc ^ wa), 1u); SHA1_STEP (SHA1_F2o, c, d, e, a, b, wa);
596 wb = rotl32 ((w8 ^ w3 ^ wd ^ wb), 1u); SHA1_STEP (SHA1_F2o, b, c, d, e, a, wb);
601 wc = rotl32 ((w9 ^ w4 ^ we ^ wc), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, wc);
602 wd = rotl32 ((wa ^ w5 ^ wf ^ wd), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, wd);
603 we = rotl32 ((wb ^ w6 ^ w0 ^ we), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, we);
604 wf = rotl32 ((wc ^ w7 ^ w1 ^ wf), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, wf);
605 w0 = rotl32 ((wd ^ w8 ^ w2 ^ w0), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w0);
606 w1 = rotl32 ((we ^ w9 ^ w3 ^ w1), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w1);
607 w2 = rotl32 ((wf ^ wa ^ w4 ^ w2), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, w2);
608 w3 = rotl32 ((w0 ^ wb ^ w5 ^ w3), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w3);
609 w4 = rotl32 ((w1 ^ wc ^ w6 ^ w4), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w4);
610 w5 = rotl32 ((w2 ^ wd ^ w7 ^ w5), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w5);
611 w6 = rotl32 ((w3 ^ we ^ w8 ^ w6), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w6);
612 w7 = rotl32 ((w4 ^ wf ^ w9 ^ w7), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, w7);
613 w8 = rotl32 ((w5 ^ w0 ^ wa ^ w8), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w8);
614 w9 = rotl32 ((w6 ^ w1 ^ wb ^ w9), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w9);
615 wa = rotl32 ((w7 ^ w2 ^ wc ^ wa), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, wa);
616 wb = rotl32 ((w8 ^ w3 ^ wd ^ wb), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, wb);
618 if (allx (e != e_rev)) continue;
620 wc = rotl32 ((w9 ^ w4 ^ we ^ wc), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, wc);
621 wd = rotl32 ((wa ^ w5 ^ wf ^ wd), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, wd);
622 we = rotl32 ((wb ^ w6 ^ w0 ^ we), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, we);
623 wf = rotl32 ((wc ^ w7 ^ w1 ^ wf), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, wf);
634 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m04900_m04 (__global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_scryptV_buf, const u32 bitmap_mask, const u32 bitmap_shift1, const u32 bitmap_shift2, const u32 salt_pos, const u32 loop_pos, const u32 loop_cnt, const u32 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
640 const u32 gid = get_global_id (0);
642 if (gid >= gid_max) return;
648 const u32 lid = get_local_id (0);
652 w0[0] = pws[gid].i[ 0];
653 w0[1] = pws[gid].i[ 1];
654 w0[2] = pws[gid].i[ 2];
655 w0[3] = pws[gid].i[ 3];
675 w3[2] = pws[gid].i[14];
678 const u32 pw_len = pws[gid].pw_len;
684 m04900m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
687 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m04900_m08 (__global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_scryptV_buf, const u32 bitmap_mask, const u32 bitmap_shift1, const u32 bitmap_shift2, const u32 salt_pos, const u32 loop_pos, const u32 loop_cnt, const u32 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
693 const u32 gid = get_global_id (0);
695 if (gid >= gid_max) return;
701 const u32 lid = get_local_id (0);
705 w0[0] = pws[gid].i[ 0];
706 w0[1] = pws[gid].i[ 1];
707 w0[2] = pws[gid].i[ 2];
708 w0[3] = pws[gid].i[ 3];
712 w1[0] = pws[gid].i[ 4];
713 w1[1] = pws[gid].i[ 5];
714 w1[2] = pws[gid].i[ 6];
715 w1[3] = pws[gid].i[ 7];
728 w3[2] = pws[gid].i[14];
731 const u32 pw_len = pws[gid].pw_len;
737 m04900m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
740 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m04900_m16 (__global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_scryptV_buf, const u32 bitmap_mask, const u32 bitmap_shift1, const u32 bitmap_shift2, const u32 salt_pos, const u32 loop_pos, const u32 loop_cnt, const u32 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
746 const u32 gid = get_global_id (0);
748 if (gid >= gid_max) return;
754 const u32 lid = get_local_id (0);
758 w0[0] = pws[gid].i[ 0];
759 w0[1] = pws[gid].i[ 1];
760 w0[2] = pws[gid].i[ 2];
761 w0[3] = pws[gid].i[ 3];
765 w1[0] = pws[gid].i[ 4];
766 w1[1] = pws[gid].i[ 5];
767 w1[2] = pws[gid].i[ 6];
768 w1[3] = pws[gid].i[ 7];
772 w2[0] = pws[gid].i[ 8];
773 w2[1] = pws[gid].i[ 9];
774 w2[2] = pws[gid].i[10];
775 w2[3] = pws[gid].i[11];
779 w3[0] = pws[gid].i[12];
780 w3[1] = pws[gid].i[13];
781 w3[2] = pws[gid].i[14];
782 w3[3] = pws[gid].i[15];
784 const u32 pw_len = pws[gid].pw_len;
790 m04900m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
793 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m04900_s04 (__global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_scryptV_buf, const u32 bitmap_mask, const u32 bitmap_shift1, const u32 bitmap_shift2, const u32 salt_pos, const u32 loop_pos, const u32 loop_cnt, const u32 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
799 const u32 gid = get_global_id (0);
801 if (gid >= gid_max) return;
807 const u32 lid = get_local_id (0);
811 w0[0] = pws[gid].i[ 0];
812 w0[1] = pws[gid].i[ 1];
813 w0[2] = pws[gid].i[ 2];
814 w0[3] = pws[gid].i[ 3];
834 w3[2] = pws[gid].i[14];
837 const u32 pw_len = pws[gid].pw_len;
843 m04900s (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
846 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m04900_s08 (__global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_scryptV_buf, const u32 bitmap_mask, const u32 bitmap_shift1, const u32 bitmap_shift2, const u32 salt_pos, const u32 loop_pos, const u32 loop_cnt, const u32 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
852 const u32 gid = get_global_id (0);
854 if (gid >= gid_max) return;
860 const u32 lid = get_local_id (0);
864 w0[0] = pws[gid].i[ 0];
865 w0[1] = pws[gid].i[ 1];
866 w0[2] = pws[gid].i[ 2];
867 w0[3] = pws[gid].i[ 3];
871 w1[0] = pws[gid].i[ 4];
872 w1[1] = pws[gid].i[ 5];
873 w1[2] = pws[gid].i[ 6];
874 w1[3] = pws[gid].i[ 7];
887 w3[2] = pws[gid].i[14];
890 const u32 pw_len = pws[gid].pw_len;
896 m04900s (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
899 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m04900_s16 (__global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_scryptV_buf, const u32 bitmap_mask, const u32 bitmap_shift1, const u32 bitmap_shift2, const u32 salt_pos, const u32 loop_pos, const u32 loop_cnt, const u32 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
905 const u32 gid = get_global_id (0);
907 if (gid >= gid_max) return;
913 const u32 lid = get_local_id (0);
917 w0[0] = pws[gid].i[ 0];
918 w0[1] = pws[gid].i[ 1];
919 w0[2] = pws[gid].i[ 2];
920 w0[3] = pws[gid].i[ 3];
924 w1[0] = pws[gid].i[ 4];
925 w1[1] = pws[gid].i[ 5];
926 w1[2] = pws[gid].i[ 6];
927 w1[3] = pws[gid].i[ 7];
931 w2[0] = pws[gid].i[ 8];
932 w2[1] = pws[gid].i[ 9];
933 w2[2] = pws[gid].i[10];
934 w2[3] = pws[gid].i[11];
938 w3[0] = pws[gid].i[12];
939 w3[1] = pws[gid].i[13];
940 w3[2] = pws[gid].i[14];
941 w3[3] = pws[gid].i[15];
943 const u32 pw_len = pws[gid].pw_len;
949 m04900s (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);