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 __kernel void m03800_m04 (__global pw_t *pws, __global kernel_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
29 const u32 gid = get_global_id (0);
30 const u32 lid = get_local_id (0);
31 const u32 lsz = get_local_size (0);
39 wordl0[0] = pws[gid].i[ 0];
40 wordl0[1] = pws[gid].i[ 1];
41 wordl0[2] = pws[gid].i[ 2];
42 wordl0[3] = pws[gid].i[ 3];
46 wordl1[0] = pws[gid].i[ 4];
47 wordl1[1] = pws[gid].i[ 5];
48 wordl1[2] = pws[gid].i[ 6];
49 wordl1[3] = pws[gid].i[ 7];
65 const u32 pw_l_len = pws[gid].pw_len;
67 if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
69 switch_buffer_by_offset_le (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
78 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
79 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
80 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
81 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
85 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
86 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
87 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
88 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
104 const u32 salt_len = salt_bufs[salt_pos].salt_len;
110 for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
112 const u32 pw_r_len = combs_buf[il_pos].pw_len;
114 const u32 pw_len = pw_l_len + pw_r_len;
118 wordr0[0] = combs_buf[il_pos].i[0];
119 wordr0[1] = combs_buf[il_pos].i[1];
120 wordr0[2] = combs_buf[il_pos].i[2];
121 wordr0[3] = combs_buf[il_pos].i[3];
125 wordr1[0] = combs_buf[il_pos].i[4];
126 wordr1[1] = combs_buf[il_pos].i[5];
127 wordr1[2] = combs_buf[il_pos].i[6];
128 wordr1[3] = combs_buf[il_pos].i[7];
144 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
146 switch_buffer_by_offset_le (wordr0, wordr1, wordr2, wordr3, pw_l_len);
151 w0[0] = wordl0[0] | wordr0[0];
152 w0[1] = wordl0[1] | wordr0[1];
153 w0[2] = wordl0[2] | wordr0[2];
154 w0[3] = wordl0[3] | wordr0[3];
158 w1[0] = wordl1[0] | wordr1[0];
159 w1[1] = wordl1[1] | wordr1[1];
160 w1[2] = wordl1[2] | wordr1[2];
161 w1[3] = wordl1[3] | wordr1[3];
165 w2[0] = wordl2[0] | wordr2[0];
166 w2[1] = wordl2[1] | wordr2[1];
167 w2[2] = wordl2[2] | wordr2[2];
168 w2[3] = wordl2[3] | wordr2[3];
172 w3[0] = wordl3[0] | wordr3[0];
173 w3[1] = wordl3[1] | wordr3[1];
209 switch_buffer_by_offset_le (w0_t, w1_t, w2_t, w3_t, salt_len);
211 w0_t[0] |= salt_buf0[0];
212 w0_t[1] |= salt_buf0[1];
213 w0_t[2] |= salt_buf0[2];
214 w0_t[3] |= salt_buf0[3];
215 w1_t[0] |= salt_buf1[0];
216 w1_t[1] |= salt_buf1[1];
217 w1_t[2] |= salt_buf1[2];
218 w1_t[3] |= salt_buf1[3];
219 w2_t[0] |= salt_buf2[0];
220 w2_t[1] |= salt_buf2[1];
221 w2_t[2] |= salt_buf2[2];
222 w2_t[3] |= salt_buf2[3];
223 w3_t[0] |= salt_buf3[0];
224 w3_t[1] |= salt_buf3[1];
225 w3_t[2] |= salt_buf3[2];
226 w3_t[3] |= salt_buf3[3];
234 s0[0] = salt_buf0[0];
235 s0[1] = salt_buf0[1];
236 s0[2] = salt_buf0[2];
237 s0[3] = salt_buf0[3];
241 s1[0] = salt_buf1[0];
242 s1[1] = salt_buf1[1];
243 s1[2] = salt_buf1[2];
244 s1[3] = salt_buf1[3];
260 switch_buffer_by_offset_le (s0, s1, s2, s3, salt_len + pw_len);
279 const u32 pw_salt_len = salt_len + pw_len + salt_len;
281 append_0x80_4x4 (w0_t, w1_t, w2_t, w3_t, pw_salt_len);
283 w3_t[2] = pw_salt_len * 8;
294 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
295 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
296 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
297 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
298 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
299 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
300 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
301 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
302 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
303 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
304 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
305 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
306 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
307 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
308 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
309 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
311 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
312 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
313 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
314 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
315 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
316 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
317 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
318 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
319 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
320 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
321 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
322 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
323 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
324 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
325 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
326 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
328 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
329 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
330 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
331 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
332 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
333 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
334 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
335 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
336 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
337 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
338 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
339 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
340 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
341 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
342 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
343 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
345 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
346 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
347 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
348 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
349 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
350 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
351 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
352 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
353 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
354 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
355 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
356 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
357 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
359 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
360 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
361 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
372 __kernel void m03800_m08 (__global pw_t *pws, __global kernel_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
376 __kernel void m03800_m16 (__global pw_t *pws, __global kernel_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
380 __kernel void m03800_s04 (__global pw_t *pws, __global kernel_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
386 const u32 gid = get_global_id (0);
387 const u32 lid = get_local_id (0);
388 const u32 lsz = get_local_size (0);
396 wordl0[0] = pws[gid].i[ 0];
397 wordl0[1] = pws[gid].i[ 1];
398 wordl0[2] = pws[gid].i[ 2];
399 wordl0[3] = pws[gid].i[ 3];
403 wordl1[0] = pws[gid].i[ 4];
404 wordl1[1] = pws[gid].i[ 5];
405 wordl1[2] = pws[gid].i[ 6];
406 wordl1[3] = pws[gid].i[ 7];
422 const u32 pw_l_len = pws[gid].pw_len;
424 if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
426 switch_buffer_by_offset_le (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
435 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
436 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
437 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
438 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
442 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
443 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
444 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
445 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
461 const u32 salt_len = salt_bufs[salt_pos].salt_len;
467 const u32 search[4] =
469 digests_buf[digests_offset].digest_buf[DGST_R0],
470 digests_buf[digests_offset].digest_buf[DGST_R1],
471 digests_buf[digests_offset].digest_buf[DGST_R2],
472 digests_buf[digests_offset].digest_buf[DGST_R3]
479 for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
481 const u32 pw_r_len = combs_buf[il_pos].pw_len;
483 const u32 pw_len = pw_l_len + pw_r_len;
487 wordr0[0] = combs_buf[il_pos].i[0];
488 wordr0[1] = combs_buf[il_pos].i[1];
489 wordr0[2] = combs_buf[il_pos].i[2];
490 wordr0[3] = combs_buf[il_pos].i[3];
494 wordr1[0] = combs_buf[il_pos].i[4];
495 wordr1[1] = combs_buf[il_pos].i[5];
496 wordr1[2] = combs_buf[il_pos].i[6];
497 wordr1[3] = combs_buf[il_pos].i[7];
513 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
515 switch_buffer_by_offset_le (wordr0, wordr1, wordr2, wordr3, pw_l_len);
520 w0[0] = wordl0[0] | wordr0[0];
521 w0[1] = wordl0[1] | wordr0[1];
522 w0[2] = wordl0[2] | wordr0[2];
523 w0[3] = wordl0[3] | wordr0[3];
527 w1[0] = wordl1[0] | wordr1[0];
528 w1[1] = wordl1[1] | wordr1[1];
529 w1[2] = wordl1[2] | wordr1[2];
530 w1[3] = wordl1[3] | wordr1[3];
534 w2[0] = wordl2[0] | wordr2[0];
535 w2[1] = wordl2[1] | wordr2[1];
536 w2[2] = wordl2[2] | wordr2[2];
537 w2[3] = wordl2[3] | wordr2[3];
541 w3[0] = wordl3[0] | wordr3[0];
542 w3[1] = wordl3[1] | wordr3[1];
578 switch_buffer_by_offset_le (w0_t, w1_t, w2_t, w3_t, salt_len);
580 w0_t[0] |= salt_buf0[0];
581 w0_t[1] |= salt_buf0[1];
582 w0_t[2] |= salt_buf0[2];
583 w0_t[3] |= salt_buf0[3];
584 w1_t[0] |= salt_buf1[0];
585 w1_t[1] |= salt_buf1[1];
586 w1_t[2] |= salt_buf1[2];
587 w1_t[3] |= salt_buf1[3];
588 w2_t[0] |= salt_buf2[0];
589 w2_t[1] |= salt_buf2[1];
590 w2_t[2] |= salt_buf2[2];
591 w2_t[3] |= salt_buf2[3];
592 w3_t[0] |= salt_buf3[0];
593 w3_t[1] |= salt_buf3[1];
594 w3_t[2] |= salt_buf3[2];
595 w3_t[3] |= salt_buf3[3];
603 s0[0] = salt_buf0[0];
604 s0[1] = salt_buf0[1];
605 s0[2] = salt_buf0[2];
606 s0[3] = salt_buf0[3];
610 s1[0] = salt_buf1[0];
611 s1[1] = salt_buf1[1];
612 s1[2] = salt_buf1[2];
613 s1[3] = salt_buf1[3];
629 switch_buffer_by_offset_le (s0, s1, s2, s3, salt_len + pw_len);
648 const u32 pw_salt_len = salt_len + pw_len + salt_len;
650 append_0x80_4x4 (w0_t, w1_t, w2_t, w3_t, pw_salt_len);
652 w3_t[2] = pw_salt_len * 8;
663 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
664 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
665 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
666 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
667 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
668 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
669 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
670 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
671 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
672 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
673 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
674 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
675 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
676 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
677 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
678 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
680 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
681 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
682 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
683 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
684 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
685 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
686 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
687 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
688 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
689 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
690 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
691 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
692 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
693 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
694 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
695 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
697 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
698 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
699 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
700 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
701 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
702 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
703 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
704 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
705 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
706 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
707 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
708 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
709 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
710 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
711 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
712 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
714 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
715 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
716 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
717 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
718 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
719 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
720 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
721 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
722 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
723 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
724 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
725 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
726 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
727 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
728 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
729 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
740 __kernel void m03800_s08 (__global pw_t *pws, __global kernel_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
744 __kernel void m03800_s16 (__global pw_t *pws, __global kernel_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)