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__ bf_t c_bfs[1024];
45 __device__ static void m04800m (u32x w0[4], u32x w1[4], u32x w2[4], u32x w3[4], const u32 pw_len, 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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset)
51 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
52 const u32 lid = threadIdx.x;
60 salt_buf[0] = salt_bufs[salt_pos].salt_buf[0];
61 salt_buf[1] = salt_bufs[salt_pos].salt_buf[1];
62 salt_buf[2] = salt_bufs[salt_pos].salt_buf[2];
63 salt_buf[3] = salt_bufs[salt_pos].salt_buf[3];
64 salt_buf[4] = salt_bufs[salt_pos].salt_buf[4];
66 const u32 salt_len = salt_bufs[salt_pos].salt_len;
68 const u32 pw_salt_len = pw_len + salt_len;
128 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, 1);
130 switch_buffer_by_offset (s0, s1, s2, s3, 1 + pw_len);
149 w3_t[2] = pw_salt_len * 8;
156 w0_t[0] |= salt_buf[4];
165 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
167 const u32 w0r = c_bfs[il_pos].i;
169 w0_t[0] = w0l | (w0r << 8);
170 w0_t[1] = w1l | (w0r >> 24);
181 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
182 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
183 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
184 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
185 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
186 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
187 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
188 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
189 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
190 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
191 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
192 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
193 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
194 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
195 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
196 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
198 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
199 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
200 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
201 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
202 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
203 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
204 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
205 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
206 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
207 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
208 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
209 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
210 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
211 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
212 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
213 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
215 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
216 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
217 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
218 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
219 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
220 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
221 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
222 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
223 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
224 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
225 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
226 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
227 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
228 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
229 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
230 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
232 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
233 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
234 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
235 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
236 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
237 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
238 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
239 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
240 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
241 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
242 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
243 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
244 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
245 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
246 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
247 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
254 #include VECT_COMPARE_M
258 __device__ static void m04800s (u32x w0[4], u32x w1[4], u32x w2[4], u32x w3[4], const u32 pw_len, 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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset)
264 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
265 const u32 lid = threadIdx.x;
273 salt_buf[0] = salt_bufs[salt_pos].salt_buf[0];
274 salt_buf[1] = salt_bufs[salt_pos].salt_buf[1];
275 salt_buf[2] = salt_bufs[salt_pos].salt_buf[2];
276 salt_buf[3] = salt_bufs[salt_pos].salt_buf[3];
277 salt_buf[4] = salt_bufs[salt_pos].salt_buf[4];
279 const u32 salt_len = salt_bufs[salt_pos].salt_len;
281 const u32 pw_salt_len = pw_len + salt_len;
341 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, 1);
343 switch_buffer_by_offset (s0, s1, s2, s3, 1 + pw_len);
362 w3_t[2] = pw_salt_len * 8;
369 w0_t[0] |= salt_buf[4];
375 const u32 search[4] =
377 digests_buf[digests_offset].digest_buf[DGST_R0],
378 digests_buf[digests_offset].digest_buf[DGST_R1],
379 digests_buf[digests_offset].digest_buf[DGST_R2],
380 digests_buf[digests_offset].digest_buf[DGST_R3]
390 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
392 const u32 w0r = c_bfs[il_pos].i;
394 w0_t[0] = w0l | (w0r << 8);
395 w0_t[1] = w1l | (w0r >> 24);
406 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
407 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
408 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
409 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
410 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
411 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
412 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
413 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
414 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
415 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
416 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
417 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
418 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
419 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
420 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
421 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
423 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
424 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
425 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
426 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
427 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
428 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
429 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
430 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
431 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
432 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
433 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
434 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
435 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
436 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
437 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
438 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
440 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
441 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
442 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
443 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
444 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
445 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
446 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
447 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
448 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
449 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
450 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
451 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
452 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
453 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
454 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
455 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
457 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
458 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
459 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
460 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
461 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
462 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
463 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
464 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
465 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
466 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
467 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
468 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
469 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
471 bool q_cond = (search[0] != a);
473 if (q_cond) continue;
475 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
476 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
477 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
484 #include VECT_COMPARE_S
488 extern "C" __global__ void __launch_bounds__ (256, 1) m04800_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
494 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
496 if (gid >= gid_max) return;
501 w0[0] = pws[gid].i[ 0];
502 w0[1] = pws[gid].i[ 1];
503 w0[2] = pws[gid].i[ 2];
504 w0[3] = pws[gid].i[ 3];
527 const u32 pw_len = pws[gid].pw_len;
533 m04800m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
536 extern "C" __global__ void __launch_bounds__ (256, 1) m04800_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
542 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
544 if (gid >= gid_max) return;
549 w0[0] = pws[gid].i[ 0];
550 w0[1] = pws[gid].i[ 1];
551 w0[2] = pws[gid].i[ 2];
552 w0[3] = pws[gid].i[ 3];
556 w1[0] = pws[gid].i[ 4];
557 w1[1] = pws[gid].i[ 5];
558 w1[2] = pws[gid].i[ 6];
559 w1[3] = pws[gid].i[ 7];
575 const u32 pw_len = pws[gid].pw_len;
581 m04800m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
584 extern "C" __global__ void __launch_bounds__ (256, 1) m04800_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
590 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
592 if (gid >= gid_max) return;
597 w0[0] = pws[gid].i[ 0];
598 w0[1] = pws[gid].i[ 1];
599 w0[2] = pws[gid].i[ 2];
600 w0[3] = pws[gid].i[ 3];
604 w1[0] = pws[gid].i[ 4];
605 w1[1] = pws[gid].i[ 5];
606 w1[2] = pws[gid].i[ 6];
607 w1[3] = pws[gid].i[ 7];
611 w2[0] = pws[gid].i[ 8];
612 w2[1] = pws[gid].i[ 9];
613 w2[2] = pws[gid].i[10];
614 w2[3] = pws[gid].i[11];
618 w3[0] = pws[gid].i[12];
619 w3[1] = pws[gid].i[13];
620 w3[2] = pws[gid].i[14];
621 w3[3] = pws[gid].i[15];
623 const u32 pw_len = pws[gid].pw_len;
629 m04800m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
632 extern "C" __global__ void __launch_bounds__ (256, 1) m04800_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
638 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
640 if (gid >= gid_max) return;
644 w0[0] = pws[gid].i[ 0];
645 w0[1] = pws[gid].i[ 1];
646 w0[2] = pws[gid].i[ 2];
647 w0[3] = pws[gid].i[ 3];
670 const u32 pw_len = pws[gid].pw_len;
676 m04800s (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
679 extern "C" __global__ void __launch_bounds__ (256, 1) m04800_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
685 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
687 if (gid >= gid_max) return;
692 w0[0] = pws[gid].i[ 0];
693 w0[1] = pws[gid].i[ 1];
694 w0[2] = pws[gid].i[ 2];
695 w0[3] = pws[gid].i[ 3];
699 w1[0] = pws[gid].i[ 4];
700 w1[1] = pws[gid].i[ 5];
701 w1[2] = pws[gid].i[ 6];
702 w1[3] = pws[gid].i[ 7];
718 const u32 pw_len = pws[gid].pw_len;
724 m04800s (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
727 extern "C" __global__ void __launch_bounds__ (256, 1) m04800_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
733 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
735 if (gid >= gid_max) return;
740 w0[0] = pws[gid].i[ 0];
741 w0[1] = pws[gid].i[ 1];
742 w0[2] = pws[gid].i[ 2];
743 w0[3] = pws[gid].i[ 3];
747 w1[0] = pws[gid].i[ 4];
748 w1[1] = pws[gid].i[ 5];
749 w1[2] = pws[gid].i[ 6];
750 w1[3] = pws[gid].i[ 7];
754 w2[0] = pws[gid].i[ 8];
755 w2[1] = pws[gid].i[ 9];
756 w2[2] = pws[gid].i[10];
757 w2[3] = pws[gid].i[11];
761 w3[0] = pws[gid].i[12];
762 w3[1] = pws[gid].i[13];
763 w3[2] = pws[gid].i[14];
764 w3[3] = pws[gid].i[15];
766 const u32 pw_len = pws[gid].pw_len;
772 m04800s (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);