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"
38 __device__ __constant__ u32 padding[8] =
58 __device__ static void swap (RC4_KEY *rc4_key, const u8 i, const u8 j)
63 rc4_key->S[i] = rc4_key->S[j];
67 __device__ static void rc4_init_16 (RC4_KEY *rc4_key, const u32 data[4])
72 u32 *ptr = (u32 *) rc4_key->S;
75 for (u32 i = 0; i < 64; i++)
80 const u32 d0 = data[0] >> 0;
81 const u32 d1 = data[0] >> 8;
82 const u32 d2 = data[0] >> 16;
83 const u32 d3 = data[0] >> 24;
84 const u32 d4 = data[1] >> 0;
90 for (i = 0; i < 255; i += 5)
92 j += rc4_key->S[i + 0]; j += d0; swap (rc4_key, i + 0, j);
93 j += rc4_key->S[i + 1]; j += d1; swap (rc4_key, i + 1, j);
94 j += rc4_key->S[i + 2]; j += d2; swap (rc4_key, i + 2, j);
95 j += rc4_key->S[i + 3]; j += d3; swap (rc4_key, i + 3, j);
96 j += rc4_key->S[i + 4]; j += d4; swap (rc4_key, i + 4, j);
99 j += rc4_key->S[i + 0]; j += d0; swap (rc4_key, i + 0, j);
102 __device__ static u8 rc4_next_16 (RC4_KEY *rc4_key, u8 i, u8 j, const u32 in[4], u32 out[4])
105 for (u32 k = 0; k < 4; k++)
114 swap (rc4_key, i, j);
116 idx = rc4_key->S[i] + rc4_key->S[j];
118 xor4 |= rc4_key->S[idx] << 0;
123 swap (rc4_key, i, j);
125 idx = rc4_key->S[i] + rc4_key->S[j];
127 xor4 |= rc4_key->S[idx] << 8;
132 swap (rc4_key, i, j);
134 idx = rc4_key->S[i] + rc4_key->S[j];
136 xor4 |= rc4_key->S[idx] << 16;
141 swap (rc4_key, i, j);
143 idx = rc4_key->S[i] + rc4_key->S[j];
145 xor4 |= rc4_key->S[idx] << 24;
147 out[k] = in[k] ^ xor4;
153 __device__ static void md5_transform (const u32x w0[4], const u32x w1[4], const u32x w2[4], const u32x w3[4], u32x digest[4])
177 MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00);
178 MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01);
179 MD5_STEP (MD5_Fo, c, d, a, b, w2_t, MD5C02, MD5S02);
180 MD5_STEP (MD5_Fo, b, c, d, a, w3_t, MD5C03, MD5S03);
181 MD5_STEP (MD5_Fo, a, b, c, d, w4_t, MD5C04, MD5S00);
182 MD5_STEP (MD5_Fo, d, a, b, c, w5_t, MD5C05, MD5S01);
183 MD5_STEP (MD5_Fo, c, d, a, b, w6_t, MD5C06, MD5S02);
184 MD5_STEP (MD5_Fo, b, c, d, a, w7_t, MD5C07, MD5S03);
185 MD5_STEP (MD5_Fo, a, b, c, d, w8_t, MD5C08, MD5S00);
186 MD5_STEP (MD5_Fo, d, a, b, c, w9_t, MD5C09, MD5S01);
187 MD5_STEP (MD5_Fo, c, d, a, b, wa_t, MD5C0a, MD5S02);
188 MD5_STEP (MD5_Fo, b, c, d, a, wb_t, MD5C0b, MD5S03);
189 MD5_STEP (MD5_Fo, a, b, c, d, wc_t, MD5C0c, MD5S00);
190 MD5_STEP (MD5_Fo, d, a, b, c, wd_t, MD5C0d, MD5S01);
191 MD5_STEP (MD5_Fo, c, d, a, b, we_t, MD5C0e, MD5S02);
192 MD5_STEP (MD5_Fo, b, c, d, a, wf_t, MD5C0f, MD5S03);
194 MD5_STEP (MD5_Go, a, b, c, d, w1_t, MD5C10, MD5S10);
195 MD5_STEP (MD5_Go, d, a, b, c, w6_t, MD5C11, MD5S11);
196 MD5_STEP (MD5_Go, c, d, a, b, wb_t, MD5C12, MD5S12);
197 MD5_STEP (MD5_Go, b, c, d, a, w0_t, MD5C13, MD5S13);
198 MD5_STEP (MD5_Go, a, b, c, d, w5_t, MD5C14, MD5S10);
199 MD5_STEP (MD5_Go, d, a, b, c, wa_t, MD5C15, MD5S11);
200 MD5_STEP (MD5_Go, c, d, a, b, wf_t, MD5C16, MD5S12);
201 MD5_STEP (MD5_Go, b, c, d, a, w4_t, MD5C17, MD5S13);
202 MD5_STEP (MD5_Go, a, b, c, d, w9_t, MD5C18, MD5S10);
203 MD5_STEP (MD5_Go, d, a, b, c, we_t, MD5C19, MD5S11);
204 MD5_STEP (MD5_Go, c, d, a, b, w3_t, MD5C1a, MD5S12);
205 MD5_STEP (MD5_Go, b, c, d, a, w8_t, MD5C1b, MD5S13);
206 MD5_STEP (MD5_Go, a, b, c, d, wd_t, MD5C1c, MD5S10);
207 MD5_STEP (MD5_Go, d, a, b, c, w2_t, MD5C1d, MD5S11);
208 MD5_STEP (MD5_Go, c, d, a, b, w7_t, MD5C1e, MD5S12);
209 MD5_STEP (MD5_Go, b, c, d, a, wc_t, MD5C1f, MD5S13);
211 MD5_STEP (MD5_H , a, b, c, d, w5_t, MD5C20, MD5S20);
212 MD5_STEP (MD5_H , d, a, b, c, w8_t, MD5C21, MD5S21);
213 MD5_STEP (MD5_H , c, d, a, b, wb_t, MD5C22, MD5S22);
214 MD5_STEP (MD5_H , b, c, d, a, we_t, MD5C23, MD5S23);
215 MD5_STEP (MD5_H , a, b, c, d, w1_t, MD5C24, MD5S20);
216 MD5_STEP (MD5_H , d, a, b, c, w4_t, MD5C25, MD5S21);
217 MD5_STEP (MD5_H , c, d, a, b, w7_t, MD5C26, MD5S22);
218 MD5_STEP (MD5_H , b, c, d, a, wa_t, MD5C27, MD5S23);
219 MD5_STEP (MD5_H , a, b, c, d, wd_t, MD5C28, MD5S20);
220 MD5_STEP (MD5_H , d, a, b, c, w0_t, MD5C29, MD5S21);
221 MD5_STEP (MD5_H , c, d, a, b, w3_t, MD5C2a, MD5S22);
222 MD5_STEP (MD5_H , b, c, d, a, w6_t, MD5C2b, MD5S23);
223 MD5_STEP (MD5_H , a, b, c, d, w9_t, MD5C2c, MD5S20);
224 MD5_STEP (MD5_H , d, a, b, c, wc_t, MD5C2d, MD5S21);
225 MD5_STEP (MD5_H , c, d, a, b, wf_t, MD5C2e, MD5S22);
226 MD5_STEP (MD5_H , b, c, d, a, w2_t, MD5C2f, MD5S23);
228 MD5_STEP (MD5_I , a, b, c, d, w0_t, MD5C30, MD5S30);
229 MD5_STEP (MD5_I , d, a, b, c, w7_t, MD5C31, MD5S31);
230 MD5_STEP (MD5_I , c, d, a, b, we_t, MD5C32, MD5S32);
231 MD5_STEP (MD5_I , b, c, d, a, w5_t, MD5C33, MD5S33);
232 MD5_STEP (MD5_I , a, b, c, d, wc_t, MD5C34, MD5S30);
233 MD5_STEP (MD5_I , d, a, b, c, w3_t, MD5C35, MD5S31);
234 MD5_STEP (MD5_I , c, d, a, b, wa_t, MD5C36, MD5S32);
235 MD5_STEP (MD5_I , b, c, d, a, w1_t, MD5C37, MD5S33);
236 MD5_STEP (MD5_I , a, b, c, d, w8_t, MD5C38, MD5S30);
237 MD5_STEP (MD5_I , d, a, b, c, wf_t, MD5C39, MD5S31);
238 MD5_STEP (MD5_I , c, d, a, b, w6_t, MD5C3a, MD5S32);
239 MD5_STEP (MD5_I , b, c, d, a, wd_t, MD5C3b, MD5S33);
240 MD5_STEP (MD5_I , a, b, c, d, w4_t, MD5C3c, MD5S30);
241 MD5_STEP (MD5_I , d, a, b, c, wb_t, MD5C3d, MD5S31);
242 MD5_STEP (MD5_I , c, d, a, b, w2_t, MD5C3e, MD5S32);
243 MD5_STEP (MD5_I , b, c, d, a, w9_t, MD5C3f, MD5S33);
251 __device__ __constant__ bf_t c_bfs[1024];
253 __device__ static void m10400m (RC4_KEY rc4_keys[64], 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 u32x * words_buf_r, 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 pdf_t *pdf_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)
259 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
260 const u32 lid = threadIdx.x;
262 RC4_KEY *rc4_key = &rc4_keys[lid];
270 o_buf[0] = pdf_bufs[salt_pos].o_buf[0];
271 o_buf[1] = pdf_bufs[salt_pos].o_buf[1];
272 o_buf[2] = pdf_bufs[salt_pos].o_buf[2];
273 o_buf[3] = pdf_bufs[salt_pos].o_buf[3];
274 o_buf[4] = pdf_bufs[salt_pos].o_buf[4];
275 o_buf[5] = pdf_bufs[salt_pos].o_buf[5];
276 o_buf[6] = pdf_bufs[salt_pos].o_buf[6];
277 o_buf[7] = pdf_bufs[salt_pos].o_buf[7];
279 u32 P = pdf_bufs[salt_pos].P;
283 id_buf[0] = pdf_bufs[salt_pos].id_buf[0];
284 id_buf[1] = pdf_bufs[salt_pos].id_buf[1];
285 id_buf[2] = pdf_bufs[salt_pos].id_buf[2];
286 id_buf[3] = pdf_bufs[salt_pos].id_buf[3];
294 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
296 const u32 w0r = c_bfs[il_pos].i;
305 // max length supported by pdf11 is 32
307 w0_t[0] = padding[0];
308 w0_t[1] = padding[1];
309 w0_t[2] = padding[2];
310 w0_t[3] = padding[3];
311 w1_t[0] = padding[4];
312 w1_t[1] = padding[5];
313 w1_t[2] = padding[6];
314 w1_t[3] = padding[7];
324 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, pw_len);
327 // truncate at 32 is wanted, not a bug!
354 md5_transform (w0_t, w1_t, w2_t, w3_t, digest);
373 md5_transform (w0_t, w1_t, w2_t, w3_t, digest);
380 key[1] = digest[1] & 0xff;
384 rc4_init_16 (rc4_key, key);
388 rc4_next_16 (rc4_key, 0, 0, padding, out);
390 const u32x r0 = out[0];
391 const u32x r1 = out[1];
392 const u32x r2 = out[2];
393 const u32x r3 = out[3];
395 #include VECT_COMPARE_M
399 __device__ static void m10400s (RC4_KEY rc4_keys[64], 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 u32x * words_buf_r, 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 pdf_t *pdf_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)
405 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
406 const u32 lid = threadIdx.x;
408 RC4_KEY *rc4_key = &rc4_keys[lid];
414 const u32 search[4] =
416 digests_buf[digests_offset].digest_buf[DGST_R0],
417 digests_buf[digests_offset].digest_buf[DGST_R1],
418 digests_buf[digests_offset].digest_buf[DGST_R2],
419 digests_buf[digests_offset].digest_buf[DGST_R3]
428 o_buf[0] = pdf_bufs[salt_pos].o_buf[0];
429 o_buf[1] = pdf_bufs[salt_pos].o_buf[1];
430 o_buf[2] = pdf_bufs[salt_pos].o_buf[2];
431 o_buf[3] = pdf_bufs[salt_pos].o_buf[3];
432 o_buf[4] = pdf_bufs[salt_pos].o_buf[4];
433 o_buf[5] = pdf_bufs[salt_pos].o_buf[5];
434 o_buf[6] = pdf_bufs[salt_pos].o_buf[6];
435 o_buf[7] = pdf_bufs[salt_pos].o_buf[7];
437 u32 P = pdf_bufs[salt_pos].P;
441 id_buf[0] = pdf_bufs[salt_pos].id_buf[0];
442 id_buf[1] = pdf_bufs[salt_pos].id_buf[1];
443 id_buf[2] = pdf_bufs[salt_pos].id_buf[2];
444 id_buf[3] = pdf_bufs[salt_pos].id_buf[3];
452 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
454 const u32 w0r = c_bfs[il_pos].i;
463 // max length supported by pdf11 is 32
465 w0_t[0] = padding[0];
466 w0_t[1] = padding[1];
467 w0_t[2] = padding[2];
468 w0_t[3] = padding[3];
469 w1_t[0] = padding[4];
470 w1_t[1] = padding[5];
471 w1_t[2] = padding[6];
472 w1_t[3] = padding[7];
482 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, pw_len);
485 // truncate at 32 is wanted, not a bug!
512 md5_transform (w0_t, w1_t, w2_t, w3_t, digest);
531 md5_transform (w0_t, w1_t, w2_t, w3_t, digest);
538 key[1] = digest[1] & 0xff;
542 rc4_init_16 (rc4_key, key);
546 rc4_next_16 (rc4_key, 0, 0, padding, out);
548 const u32x r0 = out[0];
549 const u32x r1 = out[1];
550 const u32x r2 = out[2];
551 const u32x r3 = out[3];
553 #include VECT_COMPARE_S
557 extern "C" __global__ void __launch_bounds__ (64, 1) m10400_m04 (const pw_t *pws, const gpu_rule_t *rules_buf, const comb_t *combs_buf, const u32x * words_buf_r, 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 pdf_t *pdf_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)
563 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
565 if (gid >= gid_max) return;
569 w0[0] = pws[gid].i[ 0];
570 w0[1] = pws[gid].i[ 1];
571 w0[2] = pws[gid].i[ 2];
572 w0[3] = pws[gid].i[ 3];
595 const u32 pw_len = pws[gid].pw_len;
601 __shared__ RC4_KEY rc4_keys[64];
603 m10400m (rc4_keys, w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, words_buf_r, 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, pdf_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);
606 extern "C" __global__ void __launch_bounds__ (64, 1) m10400_m08 (const pw_t *pws, const gpu_rule_t *rules_buf, const comb_t *combs_buf, const u32x * words_buf_r, 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 pdf_t *pdf_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)
612 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
614 if (gid >= gid_max) return;
618 w0[0] = pws[gid].i[ 0];
619 w0[1] = pws[gid].i[ 1];
620 w0[2] = pws[gid].i[ 2];
621 w0[3] = pws[gid].i[ 3];
625 w1[0] = pws[gid].i[ 4];
626 w1[1] = pws[gid].i[ 5];
627 w1[2] = pws[gid].i[ 6];
628 w1[3] = pws[gid].i[ 7];
644 const u32 pw_len = pws[gid].pw_len;
650 __shared__ RC4_KEY rc4_keys[64];
652 m10400m (rc4_keys, w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, words_buf_r, 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, pdf_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);
655 extern "C" __global__ void __launch_bounds__ (64, 1) m10400_m16 (const pw_t *pws, const gpu_rule_t *rules_buf, const comb_t *combs_buf, const u32x * words_buf_r, 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 pdf_t *pdf_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)
661 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
663 if (gid >= gid_max) return;
667 w0[0] = pws[gid].i[ 0];
668 w0[1] = pws[gid].i[ 1];
669 w0[2] = pws[gid].i[ 2];
670 w0[3] = pws[gid].i[ 3];
674 w1[0] = pws[gid].i[ 4];
675 w1[1] = pws[gid].i[ 5];
676 w1[2] = pws[gid].i[ 6];
677 w1[3] = pws[gid].i[ 7];
681 w2[0] = pws[gid].i[ 8];
682 w2[1] = pws[gid].i[ 9];
683 w2[2] = pws[gid].i[10];
684 w2[3] = pws[gid].i[11];
688 w3[0] = pws[gid].i[12];
689 w3[1] = pws[gid].i[13];
693 const u32 pw_len = pws[gid].pw_len;
699 __shared__ RC4_KEY rc4_keys[64];
701 m10400m (rc4_keys, w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, words_buf_r, 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, pdf_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);
704 extern "C" __global__ void __launch_bounds__ (64, 1) m10400_s04 (const pw_t *pws, const gpu_rule_t *rules_buf, const comb_t *combs_buf, const u32x * words_buf_r, 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 pdf_t *pdf_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)
710 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
712 if (gid >= gid_max) return;
716 w0[0] = pws[gid].i[ 0];
717 w0[1] = pws[gid].i[ 1];
718 w0[2] = pws[gid].i[ 2];
719 w0[3] = pws[gid].i[ 3];
742 const u32 pw_len = pws[gid].pw_len;
748 __shared__ RC4_KEY rc4_keys[64];
750 m10400s (rc4_keys, w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, words_buf_r, 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, pdf_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);
753 extern "C" __global__ void __launch_bounds__ (64, 1) m10400_s08 (const pw_t *pws, const gpu_rule_t *rules_buf, const comb_t *combs_buf, const u32x * words_buf_r, 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 pdf_t *pdf_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)
759 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
761 if (gid >= gid_max) return;
765 w0[0] = pws[gid].i[ 0];
766 w0[1] = pws[gid].i[ 1];
767 w0[2] = pws[gid].i[ 2];
768 w0[3] = pws[gid].i[ 3];
772 w1[0] = pws[gid].i[ 4];
773 w1[1] = pws[gid].i[ 5];
774 w1[2] = pws[gid].i[ 6];
775 w1[3] = pws[gid].i[ 7];
791 const u32 pw_len = pws[gid].pw_len;
797 __shared__ RC4_KEY rc4_keys[64];
799 m10400s (rc4_keys, w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, words_buf_r, 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, pdf_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);
802 extern "C" __global__ void __launch_bounds__ (64, 1) m10400_s16 (const pw_t *pws, const gpu_rule_t *rules_buf, const comb_t *combs_buf, const u32x * words_buf_r, 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 pdf_t *pdf_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)
808 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
810 if (gid >= gid_max) return;
814 w0[0] = pws[gid].i[ 0];
815 w0[1] = pws[gid].i[ 1];
816 w0[2] = pws[gid].i[ 2];
817 w0[3] = pws[gid].i[ 3];
821 w1[0] = pws[gid].i[ 4];
822 w1[1] = pws[gid].i[ 5];
823 w1[2] = pws[gid].i[ 6];
824 w1[3] = pws[gid].i[ 7];
828 w2[0] = pws[gid].i[ 8];
829 w2[1] = pws[gid].i[ 9];
830 w2[2] = pws[gid].i[10];
831 w2[3] = pws[gid].i[11];
835 w3[0] = pws[gid].i[12];
836 w3[1] = pws[gid].i[13];
840 const u32 pw_len = pws[gid].pw_len;
846 __shared__ RC4_KEY rc4_keys[64];
848 m10400s (rc4_keys, w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, words_buf_r, 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, pdf_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);