2 * Author......: Jens Steube <jens.steube@gmail.com>
8 #include "include/constants.h"
9 #include "include/kernel_vendor.h"
28 #include "include/kernel_functions.c"
29 #include "types_amd.c"
30 #include "common_amd.c"
33 #define VECT_COMPARE_S "check_single_vect1_comp4.c"
34 #define VECT_COMPARE_M "check_multi_vect1_comp4.c"
38 #define VECT_COMPARE_S "check_single_vect2_comp4.c"
39 #define VECT_COMPARE_M "check_multi_vect2_comp4.c"
43 #define VECT_COMPARE_S "check_single_vect4_comp4.c"
44 #define VECT_COMPARE_M "check_multi_vect4_comp4.c"
47 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m02410_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
53 const u32 lid = get_local_id (0);
59 const u32 gid = get_global_id (0);
61 if (gid >= gid_max) return;
65 wordl0[0] = pws[gid].i[ 0];
66 wordl0[1] = pws[gid].i[ 1];
67 wordl0[2] = pws[gid].i[ 2];
68 wordl0[3] = pws[gid].i[ 3];
72 wordl1[0] = pws[gid].i[ 4];
73 wordl1[1] = pws[gid].i[ 5];
74 wordl1[2] = pws[gid].i[ 6];
75 wordl1[3] = pws[gid].i[ 7];
91 const u32 pw_l_len = pws[gid].pw_len;
93 if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
95 switch_buffer_by_offset (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
104 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[0];
109 const u32 salt_len = (salt_bufs[salt_pos].salt_len < 4) ? salt_bufs[salt_pos].salt_len : 4;
115 for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
117 const u32 pw_r_len = combs_buf[il_pos].pw_len;
119 const u32 pw_len = pw_l_len + pw_r_len;
123 wordr0[0] = combs_buf[il_pos].i[0];
124 wordr0[1] = combs_buf[il_pos].i[1];
125 wordr0[2] = combs_buf[il_pos].i[2];
126 wordr0[3] = combs_buf[il_pos].i[3];
130 wordr1[0] = combs_buf[il_pos].i[4];
131 wordr1[1] = combs_buf[il_pos].i[5];
132 wordr1[2] = combs_buf[il_pos].i[6];
133 wordr1[3] = combs_buf[il_pos].i[7];
149 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
151 switch_buffer_by_offset (wordr0, wordr1, wordr2, wordr3, pw_l_len);
160 s0[0] = salt_buf0[0];
161 s0[1] = salt_buf0[1];
162 s0[2] = salt_buf0[2];
163 s0[3] = salt_buf0[3];
186 switch_buffer_by_offset (s0, s1, s2, s3, pw_len);
188 const u32 pw_salt_len = pw_len + salt_len;
192 w0[0] = wordl0[0] | wordr0[0] | s0[0];
193 w0[1] = wordl0[1] | wordr0[1] | s0[1];
194 w0[2] = wordl0[2] | wordr0[2] | s0[2];
195 w0[3] = wordl0[3] | wordr0[3] | s0[3];
199 w1[0] = wordl1[0] | wordr1[0];
200 w1[1] = wordl1[1] | wordr1[1];
201 w1[2] = wordl1[2] | wordr1[2];
202 w1[3] = wordl1[3] | wordr1[3];
206 w2[0] = wordl2[0] | wordr2[0];
207 w2[1] = wordl2[1] | wordr2[1];
208 w2[2] = wordl2[2] | wordr2[2];
209 w2[3] = wordl2[3] | wordr2[3];
213 w3[0] = wordl3[0] | wordr3[0];
214 w3[1] = wordl3[1] | wordr3[1];
218 truncate_block (w0, pw_salt_len);
230 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
231 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
232 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
233 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
234 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
235 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
236 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
237 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
238 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
239 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
240 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
241 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
242 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
243 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
244 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
245 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
247 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
248 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
249 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
250 MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
251 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
252 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
253 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
254 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
255 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
256 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
257 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
258 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
259 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
260 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
261 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
262 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
264 MD5_STEP (MD5_H1, a, b, c, d, w1[1], MD5C20, MD5S20);
265 MD5_STEP (MD5_H2, d, a, b, c, w2[0], MD5C21, MD5S21);
266 MD5_STEP (MD5_H1, c, d, a, b, w2[3], MD5C22, MD5S22);
267 MD5_STEP (MD5_H2, b, c, d, a, w3[2], MD5C23, MD5S23);
268 MD5_STEP (MD5_H1, a, b, c, d, w0[1], MD5C24, MD5S20);
269 MD5_STEP (MD5_H2, d, a, b, c, w1[0], MD5C25, MD5S21);
270 MD5_STEP (MD5_H1, c, d, a, b, w1[3], MD5C26, MD5S22);
271 MD5_STEP (MD5_H2, b, c, d, a, w2[2], MD5C27, MD5S23);
272 MD5_STEP (MD5_H1, a, b, c, d, w3[1], MD5C28, MD5S20);
273 MD5_STEP (MD5_H2, d, a, b, c, w0[0], MD5C29, MD5S21);
274 MD5_STEP (MD5_H1, c, d, a, b, w0[3], MD5C2a, MD5S22);
275 MD5_STEP (MD5_H2, b, c, d, a, w1[2], MD5C2b, MD5S23);
276 MD5_STEP (MD5_H1, a, b, c, d, w2[1], MD5C2c, MD5S20);
277 MD5_STEP (MD5_H2, d, a, b, c, w3[0], MD5C2d, MD5S21);
278 MD5_STEP (MD5_H1, c, d, a, b, w3[3], MD5C2e, MD5S22);
279 MD5_STEP (MD5_H2, b, c, d, a, w0[2], MD5C2f, MD5S23);
281 MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
282 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
283 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
284 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
285 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
286 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
287 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
288 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
289 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
290 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
291 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
292 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
293 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
294 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
295 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
296 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
308 #include VECT_COMPARE_M
312 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m02410_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
316 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m02410_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
320 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m02410_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
326 const u32 lid = get_local_id (0);
332 const u32 gid = get_global_id (0);
334 if (gid >= gid_max) return;
338 wordl0[0] = pws[gid].i[ 0];
339 wordl0[1] = pws[gid].i[ 1];
340 wordl0[2] = pws[gid].i[ 2];
341 wordl0[3] = pws[gid].i[ 3];
345 wordl1[0] = pws[gid].i[ 4];
346 wordl1[1] = pws[gid].i[ 5];
347 wordl1[2] = pws[gid].i[ 6];
348 wordl1[3] = pws[gid].i[ 7];
364 const u32 pw_l_len = pws[gid].pw_len;
366 if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
368 switch_buffer_by_offset (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
377 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[0];
382 const u32 salt_len = (salt_bufs[salt_pos].salt_len < 4) ? salt_bufs[salt_pos].salt_len : 4;
388 const u32 search[4] =
390 digests_buf[digests_offset].digest_buf[DGST_R0],
391 digests_buf[digests_offset].digest_buf[DGST_R1],
392 digests_buf[digests_offset].digest_buf[DGST_R2],
393 digests_buf[digests_offset].digest_buf[DGST_R3]
400 for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
402 const u32 pw_r_len = combs_buf[il_pos].pw_len;
404 const u32 pw_len = pw_l_len + pw_r_len;
408 wordr0[0] = combs_buf[il_pos].i[0];
409 wordr0[1] = combs_buf[il_pos].i[1];
410 wordr0[2] = combs_buf[il_pos].i[2];
411 wordr0[3] = combs_buf[il_pos].i[3];
415 wordr1[0] = combs_buf[il_pos].i[4];
416 wordr1[1] = combs_buf[il_pos].i[5];
417 wordr1[2] = combs_buf[il_pos].i[6];
418 wordr1[3] = combs_buf[il_pos].i[7];
434 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
436 switch_buffer_by_offset (wordr0, wordr1, wordr2, wordr3, pw_l_len);
445 s0[0] = salt_buf0[0];
446 s0[1] = salt_buf0[1];
447 s0[2] = salt_buf0[2];
448 s0[3] = salt_buf0[3];
471 switch_buffer_by_offset (s0, s1, s2, s3, pw_len);
473 const u32 pw_salt_len = pw_len + salt_len;
477 w0[0] = wordl0[0] | wordr0[0] | s0[0];
478 w0[1] = wordl0[1] | wordr0[1] | s0[1];
479 w0[2] = wordl0[2] | wordr0[2] | s0[2];
480 w0[3] = wordl0[3] | wordr0[3] | s0[3];
484 w1[0] = wordl1[0] | wordr1[0];
485 w1[1] = wordl1[1] | wordr1[1];
486 w1[2] = wordl1[2] | wordr1[2];
487 w1[3] = wordl1[3] | wordr1[3];
491 w2[0] = wordl2[0] | wordr2[0];
492 w2[1] = wordl2[1] | wordr2[1];
493 w2[2] = wordl2[2] | wordr2[2];
494 w2[3] = wordl2[3] | wordr2[3];
498 w3[0] = wordl3[0] | wordr3[0];
499 w3[1] = wordl3[1] | wordr3[1];
503 truncate_block (w0, pw_salt_len);
515 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
516 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
517 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
518 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
519 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
520 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
521 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
522 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
523 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
524 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
525 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
526 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
527 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
528 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
529 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
530 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
532 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
533 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
534 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
535 MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
536 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
537 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
538 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
539 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
540 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
541 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
542 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
543 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
544 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
545 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
546 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
547 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
549 MD5_STEP (MD5_H1, a, b, c, d, w1[1], MD5C20, MD5S20);
550 MD5_STEP (MD5_H2, d, a, b, c, w2[0], MD5C21, MD5S21);
551 MD5_STEP (MD5_H1, c, d, a, b, w2[3], MD5C22, MD5S22);
552 MD5_STEP (MD5_H2, b, c, d, a, w3[2], MD5C23, MD5S23);
553 MD5_STEP (MD5_H1, a, b, c, d, w0[1], MD5C24, MD5S20);
554 MD5_STEP (MD5_H2, d, a, b, c, w1[0], MD5C25, MD5S21);
555 MD5_STEP (MD5_H1, c, d, a, b, w1[3], MD5C26, MD5S22);
556 MD5_STEP (MD5_H2, b, c, d, a, w2[2], MD5C27, MD5S23);
557 MD5_STEP (MD5_H1, a, b, c, d, w3[1], MD5C28, MD5S20);
558 MD5_STEP (MD5_H2, d, a, b, c, w0[0], MD5C29, MD5S21);
559 MD5_STEP (MD5_H1, c, d, a, b, w0[3], MD5C2a, MD5S22);
560 MD5_STEP (MD5_H2, b, c, d, a, w1[2], MD5C2b, MD5S23);
561 MD5_STEP (MD5_H1, a, b, c, d, w2[1], MD5C2c, MD5S20);
562 MD5_STEP (MD5_H2, d, a, b, c, w3[0], MD5C2d, MD5S21);
563 MD5_STEP (MD5_H1, c, d, a, b, w3[3], MD5C2e, MD5S22);
564 MD5_STEP (MD5_H2, b, c, d, a, w0[2], MD5C2f, MD5S23);
566 MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
567 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
568 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
569 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
570 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
571 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
572 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
573 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
574 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
575 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
576 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
577 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
578 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
580 bool q_cond = allx ((a & 0x00ffffff) != search[0]);
582 if (q_cond) continue;
584 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
585 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
586 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
598 #include VECT_COMPARE_S
602 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m02410_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
606 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m02410_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)