2 * Author......: Jens Steube <jens.steube@gmail.com>
10 #include "include/constants.h"
11 #include "include/kernel_vendor.h"
18 #include "include/kernel_functions.c"
19 #include "OpenCL/types_ocl.c"
20 #include "OpenCL/common.c"
21 #include "include/rp_kernel.h"
22 #include "OpenCL/rp.c"
23 #include "OpenCL/simd.c"
25 __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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
31 const u32 gid = get_global_id (0);
32 const u32 lid = get_local_id (0);
33 const u32 lsz = get_local_size (0);
41 pw_buf0[0] = pws[gid].i[ 0];
42 pw_buf0[1] = pws[gid].i[ 1];
43 pw_buf0[2] = pws[gid].i[ 2];
44 pw_buf0[3] = pws[gid].i[ 3];
48 pw_buf1[0] = pws[gid].i[ 4];
49 pw_buf1[1] = pws[gid].i[ 5];
50 pw_buf1[2] = pws[gid].i[ 6];
51 pw_buf1[3] = pws[gid].i[ 7];
53 const u32 pw_len = pws[gid].pw_len;
61 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
62 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
63 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
64 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
68 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
69 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
70 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
71 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
87 const u32 salt_len = salt_bufs[salt_pos].salt_len;
93 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
100 const u32x out_len = apply_rules_vect (pw_buf0, pw_buf1, pw_len, rules_buf, il_pos, w0, w1);
134 switch_buffer_by_offset_le (w0_t, w1_t, w2_t, w3_t, salt_len);
136 w0_t[0] |= salt_buf0[0];
137 w0_t[1] |= salt_buf0[1];
138 w0_t[2] |= salt_buf0[2];
139 w0_t[3] |= salt_buf0[3];
140 w1_t[0] |= salt_buf1[0];
141 w1_t[1] |= salt_buf1[1];
142 w1_t[2] |= salt_buf1[2];
143 w1_t[3] |= salt_buf1[3];
144 w2_t[0] |= salt_buf2[0];
145 w2_t[1] |= salt_buf2[1];
146 w2_t[2] |= salt_buf2[2];
147 w2_t[3] |= salt_buf2[3];
148 w3_t[0] |= salt_buf3[0];
149 w3_t[1] |= salt_buf3[1];
150 w3_t[2] |= salt_buf3[2];
151 w3_t[3] |= salt_buf3[3];
159 s0[0] = salt_buf0[0];
160 s0[1] = salt_buf0[1];
161 s0[2] = salt_buf0[2];
162 s0[3] = salt_buf0[3];
166 s1[0] = salt_buf1[0];
167 s1[1] = salt_buf1[1];
168 s1[2] = salt_buf1[2];
169 s1[3] = salt_buf1[3];
185 switch_buffer_by_offset_le_VV (s0, s1, s2, s3, salt_len + out_len);
204 const u32x pw_salt_len = salt_len + out_len + salt_len;
206 append_0x80_4x4_VV (w0_t, w1_t, w2_t, w3_t, pw_salt_len);
208 w3_t[2] = pw_salt_len * 8;
219 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
220 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
221 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
222 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
223 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
224 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
225 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
226 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
227 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
228 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
229 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
230 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
231 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
232 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
233 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
234 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
236 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
237 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
238 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
239 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
240 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
241 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
242 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
243 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
244 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
245 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
246 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
247 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
248 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
249 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
250 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
251 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
253 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
254 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
255 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
256 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
257 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
258 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
259 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
260 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
261 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
262 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
263 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
264 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
265 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
266 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
267 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
268 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
270 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
271 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
272 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
273 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
274 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
275 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
276 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
277 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
278 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
279 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
280 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
281 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
282 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
283 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
284 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
285 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
287 COMPARE_M_SIMD (a, d, c, b);
291 __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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
295 __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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
299 __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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
305 const u32 gid = get_global_id (0);
306 const u32 lid = get_local_id (0);
307 const u32 lsz = get_local_size (0);
315 pw_buf0[0] = pws[gid].i[ 0];
316 pw_buf0[1] = pws[gid].i[ 1];
317 pw_buf0[2] = pws[gid].i[ 2];
318 pw_buf0[3] = pws[gid].i[ 3];
322 pw_buf1[0] = pws[gid].i[ 4];
323 pw_buf1[1] = pws[gid].i[ 5];
324 pw_buf1[2] = pws[gid].i[ 6];
325 pw_buf1[3] = pws[gid].i[ 7];
327 const u32 pw_len = pws[gid].pw_len;
335 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
336 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
337 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
338 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
342 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
343 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
344 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
345 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
361 const u32 salt_len = salt_bufs[salt_pos].salt_len;
367 const u32 search[4] =
369 digests_buf[digests_offset].digest_buf[DGST_R0],
370 digests_buf[digests_offset].digest_buf[DGST_R1],
371 digests_buf[digests_offset].digest_buf[DGST_R2],
372 digests_buf[digests_offset].digest_buf[DGST_R3]
379 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
386 const u32x out_len = apply_rules_vect (pw_buf0, pw_buf1, pw_len, rules_buf, il_pos, w0, w1);
420 switch_buffer_by_offset_le (w0_t, w1_t, w2_t, w3_t, salt_len);
422 w0_t[0] |= salt_buf0[0];
423 w0_t[1] |= salt_buf0[1];
424 w0_t[2] |= salt_buf0[2];
425 w0_t[3] |= salt_buf0[3];
426 w1_t[0] |= salt_buf1[0];
427 w1_t[1] |= salt_buf1[1];
428 w1_t[2] |= salt_buf1[2];
429 w1_t[3] |= salt_buf1[3];
430 w2_t[0] |= salt_buf2[0];
431 w2_t[1] |= salt_buf2[1];
432 w2_t[2] |= salt_buf2[2];
433 w2_t[3] |= salt_buf2[3];
434 w3_t[0] |= salt_buf3[0];
435 w3_t[1] |= salt_buf3[1];
436 w3_t[2] |= salt_buf3[2];
437 w3_t[3] |= salt_buf3[3];
445 s0[0] = salt_buf0[0];
446 s0[1] = salt_buf0[1];
447 s0[2] = salt_buf0[2];
448 s0[3] = salt_buf0[3];
452 s1[0] = salt_buf1[0];
453 s1[1] = salt_buf1[1];
454 s1[2] = salt_buf1[2];
455 s1[3] = salt_buf1[3];
471 switch_buffer_by_offset_le_VV (s0, s1, s2, s3, salt_len + out_len);
490 const u32x pw_salt_len = salt_len + out_len + salt_len;
492 append_0x80_4x4_VV (w0_t, w1_t, w2_t, w3_t, pw_salt_len);
494 w3_t[2] = pw_salt_len * 8;
505 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
506 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
507 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
508 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
509 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
510 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
511 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
512 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
513 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
514 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
515 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
516 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
517 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
518 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
519 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
520 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
522 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
523 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
524 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
525 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
526 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
527 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
528 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
529 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
530 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
531 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
532 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
533 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
534 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
535 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
536 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
537 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
539 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
540 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
541 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
542 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
543 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
544 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
545 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
546 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
547 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
548 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
549 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
550 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
551 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
552 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
553 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
554 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
556 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
557 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
558 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
559 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
560 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
561 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
562 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
563 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
564 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
565 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
566 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
567 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
568 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
569 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
570 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
571 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
573 COMPARE_S_SIMD (a, d, c, b);
577 __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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
581 __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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)