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"
25 __kernel void m00030_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)
31 const u32 lid = get_local_id (0);
37 const u32 gid = get_global_id (0);
39 if (gid >= gid_max) return;
43 wordl0[0] = pws[gid].i[ 0];
44 wordl0[1] = pws[gid].i[ 1];
45 wordl0[2] = pws[gid].i[ 2];
46 wordl0[3] = pws[gid].i[ 3];
50 wordl1[0] = pws[gid].i[ 4];
51 wordl1[1] = pws[gid].i[ 5];
52 wordl1[2] = pws[gid].i[ 6];
53 wordl1[3] = pws[gid].i[ 7];
69 const u32 pw_l_len = pws[gid].pw_len;
71 if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
73 switch_buffer_by_offset_le (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
82 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[0];
83 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[1];
84 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[2];
85 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[3];
89 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[4];
90 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[5];
91 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[6];
92 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[7];
94 const u32 salt_len = salt_bufs[salt_pos].salt_len;
100 for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
102 const u32 pw_r_len = combs_buf[il_pos].pw_len;
104 const u32 pw_len = pw_l_len + pw_r_len;
108 wordr0[0] = combs_buf[il_pos].i[0];
109 wordr0[1] = combs_buf[il_pos].i[1];
110 wordr0[2] = combs_buf[il_pos].i[2];
111 wordr0[3] = combs_buf[il_pos].i[3];
115 wordr1[0] = combs_buf[il_pos].i[4];
116 wordr1[1] = combs_buf[il_pos].i[5];
117 wordr1[2] = combs_buf[il_pos].i[6];
118 wordr1[3] = combs_buf[il_pos].i[7];
134 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
136 switch_buffer_by_offset_le (wordr0, wordr1, wordr2, wordr3, pw_l_len);
145 s0[0] = salt_buf0[0];
146 s0[1] = salt_buf0[1];
147 s0[2] = salt_buf0[2];
148 s0[3] = salt_buf0[3];
152 s1[0] = salt_buf1[0];
153 s1[1] = salt_buf1[1];
154 s1[2] = salt_buf1[2];
155 s1[3] = salt_buf1[3];
171 switch_buffer_by_offset_le (s0, s1, s2, s3, (pw_len * 2));
173 const u32 pw_salt_len = (pw_len * 2) + salt_len;
180 w0[0] = wordl0[0] | wordr0[0];
181 w0[1] = wordl0[1] | wordr0[1];
182 w0[2] = wordl0[2] | wordr0[2];
183 w0[3] = wordl0[3] | wordr0[3];
184 w1[0] = wordl1[0] | wordr1[0];
185 w1[1] = wordl1[1] | wordr1[1];
186 w1[2] = wordl1[2] | wordr1[2];
187 w1[3] = wordl1[3] | wordr1[3];
202 make_unicode (w0, w0_t, w1_t);
203 make_unicode (w1, w2_t, w3_t);
222 append_0x80_4x4 (w0_t, w1_t, w2_t, w3_t, pw_salt_len);
224 w3_t[2] = pw_salt_len * 8;
235 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
236 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
237 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
238 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
239 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
240 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
241 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
242 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
243 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
244 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
245 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
246 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
247 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
248 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
249 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
250 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
252 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
253 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
254 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
255 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
256 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
257 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
258 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
259 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
260 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
261 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
262 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
263 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
264 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
265 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
266 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
267 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
269 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
270 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
271 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
272 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
273 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
274 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
275 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
276 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
277 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
278 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
279 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
280 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
281 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
282 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
283 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
284 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
286 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
287 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
288 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
289 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
290 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
291 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
292 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
293 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
294 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
295 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
296 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
297 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
298 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
299 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
300 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
301 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
313 __kernel void m00030_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)
317 __kernel void m00030_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)
321 __kernel void m00030_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)
327 const u32 lid = get_local_id (0);
333 const u32 gid = get_global_id (0);
335 if (gid >= gid_max) return;
339 wordl0[0] = pws[gid].i[ 0];
340 wordl0[1] = pws[gid].i[ 1];
341 wordl0[2] = pws[gid].i[ 2];
342 wordl0[3] = pws[gid].i[ 3];
346 wordl1[0] = pws[gid].i[ 4];
347 wordl1[1] = pws[gid].i[ 5];
348 wordl1[2] = pws[gid].i[ 6];
349 wordl1[3] = pws[gid].i[ 7];
365 const u32 pw_l_len = pws[gid].pw_len;
367 if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
369 switch_buffer_by_offset_le (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
378 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[0];
379 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[1];
380 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[2];
381 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[3];
385 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[4];
386 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[5];
387 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[6];
388 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[7];
390 const u32 salt_len = salt_bufs[salt_pos].salt_len;
396 const u32 search[4] =
398 digests_buf[digests_offset].digest_buf[DGST_R0],
399 digests_buf[digests_offset].digest_buf[DGST_R1],
400 digests_buf[digests_offset].digest_buf[DGST_R2],
401 digests_buf[digests_offset].digest_buf[DGST_R3]
408 for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
410 const u32 pw_r_len = combs_buf[il_pos].pw_len;
412 const u32 pw_len = pw_l_len + pw_r_len;
416 wordr0[0] = combs_buf[il_pos].i[0];
417 wordr0[1] = combs_buf[il_pos].i[1];
418 wordr0[2] = combs_buf[il_pos].i[2];
419 wordr0[3] = combs_buf[il_pos].i[3];
423 wordr1[0] = combs_buf[il_pos].i[4];
424 wordr1[1] = combs_buf[il_pos].i[5];
425 wordr1[2] = combs_buf[il_pos].i[6];
426 wordr1[3] = combs_buf[il_pos].i[7];
442 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
444 switch_buffer_by_offset_le (wordr0, wordr1, wordr2, wordr3, pw_l_len);
453 s0[0] = salt_buf0[0];
454 s0[1] = salt_buf0[1];
455 s0[2] = salt_buf0[2];
456 s0[3] = salt_buf0[3];
460 s1[0] = salt_buf1[0];
461 s1[1] = salt_buf1[1];
462 s1[2] = salt_buf1[2];
463 s1[3] = salt_buf1[3];
479 switch_buffer_by_offset_le (s0, s1, s2, s3, (pw_len * 2));
481 const u32 pw_salt_len = (pw_len * 2) + salt_len;
488 w0[0] = wordl0[0] | wordr0[0];
489 w0[1] = wordl0[1] | wordr0[1];
490 w0[2] = wordl0[2] | wordr0[2];
491 w0[3] = wordl0[3] | wordr0[3];
492 w1[0] = wordl1[0] | wordr1[0];
493 w1[1] = wordl1[1] | wordr1[1];
494 w1[2] = wordl1[2] | wordr1[2];
495 w1[3] = wordl1[3] | wordr1[3];
510 make_unicode (w0, w0_t, w1_t);
511 make_unicode (w1, w2_t, w3_t);
530 append_0x80_4x4 (w0_t, w1_t, w2_t, w3_t, pw_salt_len);
532 w3_t[2] = pw_salt_len * 8;
543 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
544 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
545 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
546 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
547 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
548 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
549 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
550 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
551 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
552 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
553 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
554 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
555 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
556 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
557 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
558 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
560 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
561 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
562 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
563 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
564 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
565 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
566 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
567 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
568 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
569 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
570 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
571 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
572 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
573 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
574 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
575 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
577 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
578 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
579 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
580 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
581 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
582 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
583 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
584 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
585 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
586 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
587 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
588 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
589 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
590 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
591 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
592 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
594 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
595 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
596 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
597 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
598 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
599 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
600 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
601 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
602 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
603 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
604 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
605 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
606 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
608 bool q_cond = allx (search[0] != a);
610 if (q_cond) continue;
612 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
613 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
614 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
626 __kernel void m00030_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)
630 __kernel void m00030_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)