2 * Author......: Jens Steube <jens.steube@gmail.com>
10 #include "inc_vendor.cl"
11 #include "inc_hash_constants.h"
12 #include "inc_hash_functions.cl"
13 #include "inc_types.cl"
14 #include "inc_common.cl"
15 #include "inc_simd.cl"
17 __constant u64 k_sha384[80] =
19 SHA384C00, SHA384C01, SHA384C02, SHA384C03,
20 SHA384C04, SHA384C05, SHA384C06, SHA384C07,
21 SHA384C08, SHA384C09, SHA384C0a, SHA384C0b,
22 SHA384C0c, SHA384C0d, SHA384C0e, SHA384C0f,
23 SHA384C10, SHA384C11, SHA384C12, SHA384C13,
24 SHA384C14, SHA384C15, SHA384C16, SHA384C17,
25 SHA384C18, SHA384C19, SHA384C1a, SHA384C1b,
26 SHA384C1c, SHA384C1d, SHA384C1e, SHA384C1f,
27 SHA384C20, SHA384C21, SHA384C22, SHA384C23,
28 SHA384C24, SHA384C25, SHA384C26, SHA384C27,
29 SHA384C28, SHA384C29, SHA384C2a, SHA384C2b,
30 SHA384C2c, SHA384C2d, SHA384C2e, SHA384C2f,
31 SHA384C30, SHA384C31, SHA384C32, SHA384C33,
32 SHA384C34, SHA384C35, SHA384C36, SHA384C37,
33 SHA384C38, SHA384C39, SHA384C3a, SHA384C3b,
34 SHA384C3c, SHA384C3d, SHA384C3e, SHA384C3f,
35 SHA384C40, SHA384C41, SHA384C42, SHA384C43,
36 SHA384C44, SHA384C45, SHA384C46, SHA384C47,
37 SHA384C48, SHA384C49, SHA384C4a, SHA384C4b,
38 SHA384C4c, SHA384C4d, SHA384C4e, SHA384C4f,
41 void sha384_transform (const u32x w0[4], const u32x w1[4], const u32x w2[4], const u32x w3[4], u64x digest[8])
43 u64x w0_t = hl32_to_64 (w0[0], w0[1]);
44 u64x w1_t = hl32_to_64 (w0[2], w0[3]);
45 u64x w2_t = hl32_to_64 (w1[0], w1[1]);
46 u64x w3_t = hl32_to_64 (w1[2], w1[3]);
47 u64x w4_t = hl32_to_64 (w2[0], w2[1]);
48 u64x w5_t = hl32_to_64 (w2[2], w2[3]);
49 u64x w6_t = hl32_to_64 (w3[0], w3[1]);
58 u64x wf_t = hl32_to_64 (w3[2], w3[3]);
69 #define ROUND_EXPAND() \
71 w0_t = SHA384_EXPAND (we_t, w9_t, w1_t, w0_t); \
72 w1_t = SHA384_EXPAND (wf_t, wa_t, w2_t, w1_t); \
73 w2_t = SHA384_EXPAND (w0_t, wb_t, w3_t, w2_t); \
74 w3_t = SHA384_EXPAND (w1_t, wc_t, w4_t, w3_t); \
75 w4_t = SHA384_EXPAND (w2_t, wd_t, w5_t, w4_t); \
76 w5_t = SHA384_EXPAND (w3_t, we_t, w6_t, w5_t); \
77 w6_t = SHA384_EXPAND (w4_t, wf_t, w7_t, w6_t); \
78 w7_t = SHA384_EXPAND (w5_t, w0_t, w8_t, w7_t); \
79 w8_t = SHA384_EXPAND (w6_t, w1_t, w9_t, w8_t); \
80 w9_t = SHA384_EXPAND (w7_t, w2_t, wa_t, w9_t); \
81 wa_t = SHA384_EXPAND (w8_t, w3_t, wb_t, wa_t); \
82 wb_t = SHA384_EXPAND (w9_t, w4_t, wc_t, wb_t); \
83 wc_t = SHA384_EXPAND (wa_t, w5_t, wd_t, wc_t); \
84 wd_t = SHA384_EXPAND (wb_t, w6_t, we_t, wd_t); \
85 we_t = SHA384_EXPAND (wc_t, w7_t, wf_t, we_t); \
86 wf_t = SHA384_EXPAND (wd_t, w8_t, w0_t, wf_t); \
89 #define ROUND_STEP(i) \
91 SHA384_STEP (SHA384_F0o, SHA384_F1o, a, b, c, d, e, f, g, h, w0_t, k_sha384[i + 0]); \
92 SHA384_STEP (SHA384_F0o, SHA384_F1o, h, a, b, c, d, e, f, g, w1_t, k_sha384[i + 1]); \
93 SHA384_STEP (SHA384_F0o, SHA384_F1o, g, h, a, b, c, d, e, f, w2_t, k_sha384[i + 2]); \
94 SHA384_STEP (SHA384_F0o, SHA384_F1o, f, g, h, a, b, c, d, e, w3_t, k_sha384[i + 3]); \
95 SHA384_STEP (SHA384_F0o, SHA384_F1o, e, f, g, h, a, b, c, d, w4_t, k_sha384[i + 4]); \
96 SHA384_STEP (SHA384_F0o, SHA384_F1o, d, e, f, g, h, a, b, c, w5_t, k_sha384[i + 5]); \
97 SHA384_STEP (SHA384_F0o, SHA384_F1o, c, d, e, f, g, h, a, b, w6_t, k_sha384[i + 6]); \
98 SHA384_STEP (SHA384_F0o, SHA384_F1o, b, c, d, e, f, g, h, a, w7_t, k_sha384[i + 7]); \
99 SHA384_STEP (SHA384_F0o, SHA384_F1o, a, b, c, d, e, f, g, h, w8_t, k_sha384[i + 8]); \
100 SHA384_STEP (SHA384_F0o, SHA384_F1o, h, a, b, c, d, e, f, g, w9_t, k_sha384[i + 9]); \
101 SHA384_STEP (SHA384_F0o, SHA384_F1o, g, h, a, b, c, d, e, f, wa_t, k_sha384[i + 10]); \
102 SHA384_STEP (SHA384_F0o, SHA384_F1o, f, g, h, a, b, c, d, e, wb_t, k_sha384[i + 11]); \
103 SHA384_STEP (SHA384_F0o, SHA384_F1o, e, f, g, h, a, b, c, d, wc_t, k_sha384[i + 12]); \
104 SHA384_STEP (SHA384_F0o, SHA384_F1o, d, e, f, g, h, a, b, c, wd_t, k_sha384[i + 13]); \
105 SHA384_STEP (SHA384_F0o, SHA384_F1o, c, d, e, f, g, h, a, b, we_t, k_sha384[i + 14]); \
106 SHA384_STEP (SHA384_F0o, SHA384_F1o, b, c, d, e, f, g, h, a, wf_t, k_sha384[i + 15]); \
114 for (int i = 16; i < 80; i += 16)
116 ROUND_EXPAND (); ROUND_STEP (i);
140 void m10800m (u32 w[16], const u32 pw_len, __global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * words_buf_r, __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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)
146 const u32 gid = get_global_id (0);
147 const u32 lid = get_local_id (0);
155 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
157 const u32x w0r = words_buf_r[il_pos / VECT_SIZE];
159 const u32x w0 = w0l | w0r;
185 digest[0] = SHA384M_A;
186 digest[1] = SHA384M_B;
187 digest[2] = SHA384M_C;
188 digest[3] = SHA384M_D;
189 digest[4] = SHA384M_E;
190 digest[5] = SHA384M_F;
191 digest[6] = SHA384M_G;
192 digest[7] = SHA384M_H;
194 sha384_transform (w0_t, w1_t, w2_t, w3_t, digest);
196 const u32x r0 = l32_from_64 (digest[3]);
197 const u32x r1 = h32_from_64 (digest[3]);
198 const u32x r2 = l32_from_64 (digest[2]);
199 const u32x r3 = h32_from_64 (digest[2]);
201 COMPARE_M_SIMD (r0, r1, r2, r3);
205 void m10800s (u32 w[16], const u32 pw_len, __global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * words_buf_r, __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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)
211 const u32 gid = get_global_id (0);
212 const u32 lid = get_local_id (0);
218 const u32 search[4] =
220 digests_buf[digests_offset].digest_buf[DGST_R0],
221 digests_buf[digests_offset].digest_buf[DGST_R1],
222 digests_buf[digests_offset].digest_buf[DGST_R2],
223 digests_buf[digests_offset].digest_buf[DGST_R3]
232 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
234 const u32x w0r = words_buf_r[il_pos / VECT_SIZE];
236 const u32x w0 = w0l | w0r;
262 digest[0] = SHA384M_A;
263 digest[1] = SHA384M_B;
264 digest[2] = SHA384M_C;
265 digest[3] = SHA384M_D;
266 digest[4] = SHA384M_E;
267 digest[5] = SHA384M_F;
268 digest[6] = SHA384M_G;
269 digest[7] = SHA384M_H;
271 sha384_transform (w0_t, w1_t, w2_t, w3_t, digest);
273 const u32x r0 = l32_from_64 (digest[3]);
274 const u32x r1 = h32_from_64 (digest[3]);
275 const u32x r2 = l32_from_64 (digest[2]);
276 const u32x r3 = h32_from_64 (digest[2]);
278 COMPARE_S_SIMD (r0, r1, r2, r3);
282 __kernel void m10800_m04 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * words_buf_r, __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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)
288 const u32 gid = get_global_id (0);
290 if (gid >= gid_max) return;
294 w[ 0] = pws[gid].i[ 0];
295 w[ 1] = pws[gid].i[ 1];
296 w[ 2] = pws[gid].i[ 2];
297 w[ 3] = pws[gid].i[ 3];
309 w[15] = pws[gid].i[15];
311 const u32 pw_len = pws[gid].pw_len;
317 m10800m (w, 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, esalt_bufs, d_return_buf, d_scryptV0_buf, d_scryptV1_buf, d_scryptV2_buf, d_scryptV3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
320 __kernel void m10800_m08 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * words_buf_r, __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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)
326 const u32 gid = get_global_id (0);
328 if (gid >= gid_max) return;
332 w[ 0] = pws[gid].i[ 0];
333 w[ 1] = pws[gid].i[ 1];
334 w[ 2] = pws[gid].i[ 2];
335 w[ 3] = pws[gid].i[ 3];
336 w[ 4] = pws[gid].i[ 4];
337 w[ 5] = pws[gid].i[ 5];
338 w[ 6] = pws[gid].i[ 6];
339 w[ 7] = pws[gid].i[ 7];
347 w[15] = pws[gid].i[15];
349 const u32 pw_len = pws[gid].pw_len;
355 m10800m (w, 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, esalt_bufs, d_return_buf, d_scryptV0_buf, d_scryptV1_buf, d_scryptV2_buf, d_scryptV3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
358 __kernel void m10800_m16 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * words_buf_r, __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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)
364 const u32 gid = get_global_id (0);
366 if (gid >= gid_max) return;
370 w[ 0] = pws[gid].i[ 0];
371 w[ 1] = pws[gid].i[ 1];
372 w[ 2] = pws[gid].i[ 2];
373 w[ 3] = pws[gid].i[ 3];
374 w[ 4] = pws[gid].i[ 4];
375 w[ 5] = pws[gid].i[ 5];
376 w[ 6] = pws[gid].i[ 6];
377 w[ 7] = pws[gid].i[ 7];
378 w[ 8] = pws[gid].i[ 8];
379 w[ 9] = pws[gid].i[ 9];
380 w[10] = pws[gid].i[10];
381 w[11] = pws[gid].i[11];
382 w[12] = pws[gid].i[12];
383 w[13] = pws[gid].i[13];
384 w[14] = pws[gid].i[14];
385 w[15] = pws[gid].i[15];
387 const u32 pw_len = pws[gid].pw_len;
393 m10800m (w, 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, esalt_bufs, d_return_buf, d_scryptV0_buf, d_scryptV1_buf, d_scryptV2_buf, d_scryptV3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
396 __kernel void m10800_s04 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * words_buf_r, __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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)
402 const u32 gid = get_global_id (0);
404 if (gid >= gid_max) return;
408 w[ 0] = pws[gid].i[ 0];
409 w[ 1] = pws[gid].i[ 1];
410 w[ 2] = pws[gid].i[ 2];
411 w[ 3] = pws[gid].i[ 3];
423 w[15] = pws[gid].i[15];
425 const u32 pw_len = pws[gid].pw_len;
431 m10800s (w, 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, esalt_bufs, d_return_buf, d_scryptV0_buf, d_scryptV1_buf, d_scryptV2_buf, d_scryptV3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
434 __kernel void m10800_s08 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * words_buf_r, __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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)
440 const u32 gid = get_global_id (0);
442 if (gid >= gid_max) return;
446 w[ 0] = pws[gid].i[ 0];
447 w[ 1] = pws[gid].i[ 1];
448 w[ 2] = pws[gid].i[ 2];
449 w[ 3] = pws[gid].i[ 3];
450 w[ 4] = pws[gid].i[ 4];
451 w[ 5] = pws[gid].i[ 5];
452 w[ 6] = pws[gid].i[ 6];
453 w[ 7] = pws[gid].i[ 7];
461 w[15] = pws[gid].i[15];
463 const u32 pw_len = pws[gid].pw_len;
469 m10800s (w, 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, esalt_bufs, d_return_buf, d_scryptV0_buf, d_scryptV1_buf, d_scryptV2_buf, d_scryptV3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
472 __kernel void m10800_s16 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * words_buf_r, __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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)
478 const u32 gid = get_global_id (0);
480 if (gid >= gid_max) return;
484 w[ 0] = pws[gid].i[ 0];
485 w[ 1] = pws[gid].i[ 1];
486 w[ 2] = pws[gid].i[ 2];
487 w[ 3] = pws[gid].i[ 3];
488 w[ 4] = pws[gid].i[ 4];
489 w[ 5] = pws[gid].i[ 5];
490 w[ 6] = pws[gid].i[ 6];
491 w[ 7] = pws[gid].i[ 7];
492 w[ 8] = pws[gid].i[ 8];
493 w[ 9] = pws[gid].i[ 9];
494 w[10] = pws[gid].i[10];
495 w[11] = pws[gid].i[11];
496 w[12] = pws[gid].i[12];
497 w[13] = pws[gid].i[13];
498 w[14] = pws[gid].i[14];
499 w[15] = pws[gid].i[15];
501 const u32 pw_len = pws[gid].pw_len;
507 m10800s (w, 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, esalt_bufs, d_return_buf, d_scryptV0_buf, d_scryptV1_buf, d_scryptV2_buf, d_scryptV3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);