2 * Author......: Jens Steube <jens.steube@gmail.com>
8 #include "include/constants.h"
9 #include "include/kernel_vendor.h"
24 #include "include/kernel_functions.c"
26 #include "common_nv.c"
29 #define VECT_COMPARE_S "check_single_vect1_comp4.c"
30 #define VECT_COMPARE_M "check_multi_vect1_comp4.c"
34 #define VECT_COMPARE_S "check_single_vect2_comp4.c"
35 #define VECT_COMPARE_M "check_multi_vect2_comp4.c"
39 #define VECT_COMPARE_S "check_single_vect4_comp4.c"
40 #define VECT_COMPARE_M "check_multi_vect4_comp4.c"
43 __device__ __constant__ comb_t c_combs[1024];
45 extern "C" __global__ void __launch_bounds__ (256, 1) m02410_m04 (const pw_t *pws, const gpu_rule_t *rules_buf, const comb_t *combs_buf, const bf_t *bfs_buf, const void *tmps, void *hooks, const u32 *bitmaps_buf_s1_a, const u32 *bitmaps_buf_s1_b, const u32 *bitmaps_buf_s1_c, const u32 *bitmaps_buf_s1_d, const u32 *bitmaps_buf_s2_a, const u32 *bitmaps_buf_s2_b, const u32 *bitmaps_buf_s2_c, const u32 *bitmaps_buf_s2_d, plain_t *plains_buf, const digest_t *digests_buf, u32 *hashes_shown, const salt_t *salt_bufs, const void *esalt_bufs, u32 *d_return_buf, 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)
51 const u32 lid = threadIdx.x;
57 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
59 if (gid >= gid_max) return;
63 wordl0[0] = pws[gid].i[ 0];
64 wordl0[1] = pws[gid].i[ 1];
65 wordl0[2] = pws[gid].i[ 2];
66 wordl0[3] = pws[gid].i[ 3];
70 wordl1[0] = pws[gid].i[ 4];
71 wordl1[1] = pws[gid].i[ 5];
72 wordl1[2] = pws[gid].i[ 6];
73 wordl1[3] = pws[gid].i[ 7];
89 const u32 pw_l_len = pws[gid].pw_len;
91 if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
93 switch_buffer_by_offset (wordl0, wordl1, wordl2, wordl3, c_combs[0].pw_len);
102 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[0];
107 const u32 salt_len = (salt_bufs[salt_pos].salt_len < 4) ? salt_bufs[salt_pos].salt_len : 4;
113 for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
115 const u32 pw_r_len = c_combs[il_pos].pw_len;
117 const u32 pw_len = pw_l_len + pw_r_len;
121 wordr0[0] = c_combs[il_pos].i[0];
122 wordr0[1] = c_combs[il_pos].i[1];
123 wordr0[2] = c_combs[il_pos].i[2];
124 wordr0[3] = c_combs[il_pos].i[3];
128 wordr1[0] = c_combs[il_pos].i[4];
129 wordr1[1] = c_combs[il_pos].i[5];
130 wordr1[2] = c_combs[il_pos].i[6];
131 wordr1[3] = c_combs[il_pos].i[7];
147 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
149 switch_buffer_by_offset (wordr0, wordr1, wordr2, wordr3, pw_l_len);
158 s0[0] = salt_buf0[0];
159 s0[1] = salt_buf0[1];
160 s0[2] = salt_buf0[2];
161 s0[3] = salt_buf0[3];
184 switch_buffer_by_offset (s0, s1, s2, s3, pw_len);
186 const u32 pw_salt_len = pw_len + salt_len;
190 w0[0] = wordl0[0] | wordr0[0] | s0[0];
191 w0[1] = wordl0[1] | wordr0[1] | s0[1];
192 w0[2] = wordl0[2] | wordr0[2] | s0[2];
193 w0[3] = wordl0[3] | wordr0[3] | s0[3];
197 w1[0] = wordl1[0] | wordr1[0];
198 w1[1] = wordl1[1] | wordr1[1];
199 w1[2] = wordl1[2] | wordr1[2];
200 w1[3] = wordl1[3] | wordr1[3];
204 w2[0] = wordl2[0] | wordr2[0];
205 w2[1] = wordl2[1] | wordr2[1];
206 w2[2] = wordl2[2] | wordr2[2];
207 w2[3] = wordl2[3] | wordr2[3];
211 w3[0] = wordl3[0] | wordr3[0];
212 w3[1] = wordl3[1] | wordr3[1];
216 truncate_block (w0, pw_salt_len);
228 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
229 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
230 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
231 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
232 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
233 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
234 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
235 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
236 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
237 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
238 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
239 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
240 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
241 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
242 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
243 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
245 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
246 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
247 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
248 MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
249 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
250 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
251 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
252 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
253 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
254 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
255 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
256 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
257 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
258 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
259 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
260 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
262 MD5_STEP (MD5_H1, a, b, c, d, w1[1], MD5C20, MD5S20);
263 MD5_STEP (MD5_H2, d, a, b, c, w2[0], MD5C21, MD5S21);
264 MD5_STEP (MD5_H1, c, d, a, b, w2[3], MD5C22, MD5S22);
265 MD5_STEP (MD5_H2, b, c, d, a, w3[2], MD5C23, MD5S23);
266 MD5_STEP (MD5_H1, a, b, c, d, w0[1], MD5C24, MD5S20);
267 MD5_STEP (MD5_H2, d, a, b, c, w1[0], MD5C25, MD5S21);
268 MD5_STEP (MD5_H1, c, d, a, b, w1[3], MD5C26, MD5S22);
269 MD5_STEP (MD5_H2, b, c, d, a, w2[2], MD5C27, MD5S23);
270 MD5_STEP (MD5_H1, a, b, c, d, w3[1], MD5C28, MD5S20);
271 MD5_STEP (MD5_H2, d, a, b, c, w0[0], MD5C29, MD5S21);
272 MD5_STEP (MD5_H1, c, d, a, b, w0[3], MD5C2a, MD5S22);
273 MD5_STEP (MD5_H2, b, c, d, a, w1[2], MD5C2b, MD5S23);
274 MD5_STEP (MD5_H1, a, b, c, d, w2[1], MD5C2c, MD5S20);
275 MD5_STEP (MD5_H2, d, a, b, c, w3[0], MD5C2d, MD5S21);
276 MD5_STEP (MD5_H1, c, d, a, b, w3[3], MD5C2e, MD5S22);
277 MD5_STEP (MD5_H2, b, c, d, a, w0[2], MD5C2f, MD5S23);
279 MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
280 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
281 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
282 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
283 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
284 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
285 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
286 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
287 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
288 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
289 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
290 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
291 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
292 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
293 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
294 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
306 #include VECT_COMPARE_M
310 extern "C" __global__ void __launch_bounds__ (256, 1) m02410_m08 (const pw_t *pws, const gpu_rule_t *rules_buf, const comb_t *combs_buf, const bf_t *bfs_buf, const void *tmps, void *hooks, const u32 *bitmaps_buf_s1_a, const u32 *bitmaps_buf_s1_b, const u32 *bitmaps_buf_s1_c, const u32 *bitmaps_buf_s1_d, const u32 *bitmaps_buf_s2_a, const u32 *bitmaps_buf_s2_b, const u32 *bitmaps_buf_s2_c, const u32 *bitmaps_buf_s2_d, plain_t *plains_buf, const digest_t *digests_buf, u32 *hashes_shown, const salt_t *salt_bufs, const void *esalt_bufs, u32 *d_return_buf, 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)
314 extern "C" __global__ void __launch_bounds__ (256, 1) m02410_m16 (const pw_t *pws, const gpu_rule_t *rules_buf, const comb_t *combs_buf, const bf_t *bfs_buf, const void *tmps, void *hooks, const u32 *bitmaps_buf_s1_a, const u32 *bitmaps_buf_s1_b, const u32 *bitmaps_buf_s1_c, const u32 *bitmaps_buf_s1_d, const u32 *bitmaps_buf_s2_a, const u32 *bitmaps_buf_s2_b, const u32 *bitmaps_buf_s2_c, const u32 *bitmaps_buf_s2_d, plain_t *plains_buf, const digest_t *digests_buf, u32 *hashes_shown, const salt_t *salt_bufs, const void *esalt_bufs, u32 *d_return_buf, 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)
318 extern "C" __global__ void __launch_bounds__ (256, 1) m02410_s04 (const pw_t *pws, const gpu_rule_t *rules_buf, const comb_t *combs_buf, const bf_t *bfs_buf, const void *tmps, void *hooks, const u32 *bitmaps_buf_s1_a, const u32 *bitmaps_buf_s1_b, const u32 *bitmaps_buf_s1_c, const u32 *bitmaps_buf_s1_d, const u32 *bitmaps_buf_s2_a, const u32 *bitmaps_buf_s2_b, const u32 *bitmaps_buf_s2_c, const u32 *bitmaps_buf_s2_d, plain_t *plains_buf, const digest_t *digests_buf, u32 *hashes_shown, const salt_t *salt_bufs, const void *esalt_bufs, u32 *d_return_buf, 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)
324 const u32 lid = threadIdx.x;
330 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
332 if (gid >= gid_max) return;
336 wordl0[0] = pws[gid].i[ 0];
337 wordl0[1] = pws[gid].i[ 1];
338 wordl0[2] = pws[gid].i[ 2];
339 wordl0[3] = pws[gid].i[ 3];
343 wordl1[0] = pws[gid].i[ 4];
344 wordl1[1] = pws[gid].i[ 5];
345 wordl1[2] = pws[gid].i[ 6];
346 wordl1[3] = pws[gid].i[ 7];
362 const u32 pw_l_len = pws[gid].pw_len;
364 if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
366 switch_buffer_by_offset (wordl0, wordl1, wordl2, wordl3, c_combs[0].pw_len);
375 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[0];
380 const u32 salt_len = (salt_bufs[salt_pos].salt_len < 4) ? salt_bufs[salt_pos].salt_len : 4;
386 const u32 search[4] =
388 digests_buf[digests_offset].digest_buf[DGST_R0],
389 digests_buf[digests_offset].digest_buf[DGST_R1],
390 digests_buf[digests_offset].digest_buf[DGST_R2],
391 digests_buf[digests_offset].digest_buf[DGST_R3]
398 for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
400 const u32 pw_r_len = c_combs[il_pos].pw_len;
402 const u32 pw_len = pw_l_len + pw_r_len;
406 wordr0[0] = c_combs[il_pos].i[0];
407 wordr0[1] = c_combs[il_pos].i[1];
408 wordr0[2] = c_combs[il_pos].i[2];
409 wordr0[3] = c_combs[il_pos].i[3];
413 wordr1[0] = c_combs[il_pos].i[4];
414 wordr1[1] = c_combs[il_pos].i[5];
415 wordr1[2] = c_combs[il_pos].i[6];
416 wordr1[3] = c_combs[il_pos].i[7];
432 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
434 switch_buffer_by_offset (wordr0, wordr1, wordr2, wordr3, pw_l_len);
443 s0[0] = salt_buf0[0];
444 s0[1] = salt_buf0[1];
445 s0[2] = salt_buf0[2];
446 s0[3] = salt_buf0[3];
469 switch_buffer_by_offset (s0, s1, s2, s3, pw_len);
471 const u32 pw_salt_len = pw_len + salt_len;
475 w0[0] = wordl0[0] | wordr0[0] | s0[0];
476 w0[1] = wordl0[1] | wordr0[1] | s0[1];
477 w0[2] = wordl0[2] | wordr0[2] | s0[2];
478 w0[3] = wordl0[3] | wordr0[3] | s0[3];
482 w1[0] = wordl1[0] | wordr1[0];
483 w1[1] = wordl1[1] | wordr1[1];
484 w1[2] = wordl1[2] | wordr1[2];
485 w1[3] = wordl1[3] | wordr1[3];
489 w2[0] = wordl2[0] | wordr2[0];
490 w2[1] = wordl2[1] | wordr2[1];
491 w2[2] = wordl2[2] | wordr2[2];
492 w2[3] = wordl2[3] | wordr2[3];
496 w3[0] = wordl3[0] | wordr3[0];
497 w3[1] = wordl3[1] | wordr3[1];
501 truncate_block (w0, pw_salt_len);
513 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
514 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
515 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
516 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
517 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
518 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
519 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
520 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
521 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
522 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
523 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
524 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
525 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
526 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
527 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
528 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
530 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
531 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
532 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
533 MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
534 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
535 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
536 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
537 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
538 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
539 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
540 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
541 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
542 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
543 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
544 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
545 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
547 MD5_STEP (MD5_H1, a, b, c, d, w1[1], MD5C20, MD5S20);
548 MD5_STEP (MD5_H2, d, a, b, c, w2[0], MD5C21, MD5S21);
549 MD5_STEP (MD5_H1, c, d, a, b, w2[3], MD5C22, MD5S22);
550 MD5_STEP (MD5_H2, b, c, d, a, w3[2], MD5C23, MD5S23);
551 MD5_STEP (MD5_H1, a, b, c, d, w0[1], MD5C24, MD5S20);
552 MD5_STEP (MD5_H2, d, a, b, c, w1[0], MD5C25, MD5S21);
553 MD5_STEP (MD5_H1, c, d, a, b, w1[3], MD5C26, MD5S22);
554 MD5_STEP (MD5_H2, b, c, d, a, w2[2], MD5C27, MD5S23);
555 MD5_STEP (MD5_H1, a, b, c, d, w3[1], MD5C28, MD5S20);
556 MD5_STEP (MD5_H2, d, a, b, c, w0[0], MD5C29, MD5S21);
557 MD5_STEP (MD5_H1, c, d, a, b, w0[3], MD5C2a, MD5S22);
558 MD5_STEP (MD5_H2, b, c, d, a, w1[2], MD5C2b, MD5S23);
559 MD5_STEP (MD5_H1, a, b, c, d, w2[1], MD5C2c, MD5S20);
560 MD5_STEP (MD5_H2, d, a, b, c, w3[0], MD5C2d, MD5S21);
561 MD5_STEP (MD5_H1, c, d, a, b, w3[3], MD5C2e, MD5S22);
562 MD5_STEP (MD5_H2, b, c, d, a, w0[2], MD5C2f, MD5S23);
564 MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
565 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
566 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
567 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
568 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
569 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
570 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
571 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
572 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
573 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
574 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
575 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
576 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
578 bool q_cond = ((a & 0x00ffffff) != search[0]);
580 if (q_cond) continue;
582 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
583 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
584 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
596 #include VECT_COMPARE_S
600 extern "C" __global__ void __launch_bounds__ (256, 1) m02410_s08 (const pw_t *pws, const gpu_rule_t *rules_buf, const comb_t *combs_buf, const bf_t *bfs_buf, const void *tmps, void *hooks, const u32 *bitmaps_buf_s1_a, const u32 *bitmaps_buf_s1_b, const u32 *bitmaps_buf_s1_c, const u32 *bitmaps_buf_s1_d, const u32 *bitmaps_buf_s2_a, const u32 *bitmaps_buf_s2_b, const u32 *bitmaps_buf_s2_c, const u32 *bitmaps_buf_s2_d, plain_t *plains_buf, const digest_t *digests_buf, u32 *hashes_shown, const salt_t *salt_bufs, const void *esalt_bufs, u32 *d_return_buf, 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)
604 extern "C" __global__ void __launch_bounds__ (256, 1) m02410_s16 (const pw_t *pws, const gpu_rule_t *rules_buf, const comb_t *combs_buf, const bf_t *bfs_buf, const void *tmps, void *hooks, const u32 *bitmaps_buf_s1_a, const u32 *bitmaps_buf_s1_b, const u32 *bitmaps_buf_s1_c, const u32 *bitmaps_buf_s1_d, const u32 *bitmaps_buf_s2_a, const u32 *bitmaps_buf_s2_b, const u32 *bitmaps_buf_s2_c, const u32 *bitmaps_buf_s2_d, plain_t *plains_buf, const digest_t *digests_buf, u32 *hashes_shown, const salt_t *salt_bufs, const void *esalt_bufs, u32 *d_return_buf, 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)