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 __constant u64 k_sha512[80] =
49 SHA512C00, SHA512C01, SHA512C02, SHA512C03,
50 SHA512C04, SHA512C05, SHA512C06, SHA512C07,
51 SHA512C08, SHA512C09, SHA512C0a, SHA512C0b,
52 SHA512C0c, SHA512C0d, SHA512C0e, SHA512C0f,
53 SHA512C10, SHA512C11, SHA512C12, SHA512C13,
54 SHA512C14, SHA512C15, SHA512C16, SHA512C17,
55 SHA512C18, SHA512C19, SHA512C1a, SHA512C1b,
56 SHA512C1c, SHA512C1d, SHA512C1e, SHA512C1f,
57 SHA512C20, SHA512C21, SHA512C22, SHA512C23,
58 SHA512C24, SHA512C25, SHA512C26, SHA512C27,
59 SHA512C28, SHA512C29, SHA512C2a, SHA512C2b,
60 SHA512C2c, SHA512C2d, SHA512C2e, SHA512C2f,
61 SHA512C30, SHA512C31, SHA512C32, SHA512C33,
62 SHA512C34, SHA512C35, SHA512C36, SHA512C37,
63 SHA512C38, SHA512C39, SHA512C3a, SHA512C3b,
64 SHA512C3c, SHA512C3d, SHA512C3e, SHA512C3f,
65 SHA512C40, SHA512C41, SHA512C42, SHA512C43,
66 SHA512C44, SHA512C45, SHA512C46, SHA512C47,
67 SHA512C48, SHA512C49, SHA512C4a, SHA512C4b,
68 SHA512C4c, SHA512C4d, SHA512C4e, SHA512C4f,
71 static void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], const u64x w3[4], u64x digest[8])
99 #define ROUND_EXPAND() \
101 w0_t = SHA512_EXPAND (we_t, w9_t, w1_t, w0_t); \
102 w1_t = SHA512_EXPAND (wf_t, wa_t, w2_t, w1_t); \
103 w2_t = SHA512_EXPAND (w0_t, wb_t, w3_t, w2_t); \
104 w3_t = SHA512_EXPAND (w1_t, wc_t, w4_t, w3_t); \
105 w4_t = SHA512_EXPAND (w2_t, wd_t, w5_t, w4_t); \
106 w5_t = SHA512_EXPAND (w3_t, we_t, w6_t, w5_t); \
107 w6_t = SHA512_EXPAND (w4_t, wf_t, w7_t, w6_t); \
108 w7_t = SHA512_EXPAND (w5_t, w0_t, w8_t, w7_t); \
109 w8_t = SHA512_EXPAND (w6_t, w1_t, w9_t, w8_t); \
110 w9_t = SHA512_EXPAND (w7_t, w2_t, wa_t, w9_t); \
111 wa_t = SHA512_EXPAND (w8_t, w3_t, wb_t, wa_t); \
112 wb_t = SHA512_EXPAND (w9_t, w4_t, wc_t, wb_t); \
113 wc_t = SHA512_EXPAND (wa_t, w5_t, wd_t, wc_t); \
114 wd_t = SHA512_EXPAND (wb_t, w6_t, we_t, wd_t); \
115 we_t = SHA512_EXPAND (wc_t, w7_t, wf_t, we_t); \
116 wf_t = SHA512_EXPAND (wd_t, w8_t, w0_t, wf_t); \
119 #define ROUND_STEP(i) \
121 SHA512_STEP (SHA512_F0o, SHA512_F1o, a, b, c, d, e, f, g, h, w0_t, k_sha512[i + 0]); \
122 SHA512_STEP (SHA512_F0o, SHA512_F1o, h, a, b, c, d, e, f, g, w1_t, k_sha512[i + 1]); \
123 SHA512_STEP (SHA512_F0o, SHA512_F1o, g, h, a, b, c, d, e, f, w2_t, k_sha512[i + 2]); \
124 SHA512_STEP (SHA512_F0o, SHA512_F1o, f, g, h, a, b, c, d, e, w3_t, k_sha512[i + 3]); \
125 SHA512_STEP (SHA512_F0o, SHA512_F1o, e, f, g, h, a, b, c, d, w4_t, k_sha512[i + 4]); \
126 SHA512_STEP (SHA512_F0o, SHA512_F1o, d, e, f, g, h, a, b, c, w5_t, k_sha512[i + 5]); \
127 SHA512_STEP (SHA512_F0o, SHA512_F1o, c, d, e, f, g, h, a, b, w6_t, k_sha512[i + 6]); \
128 SHA512_STEP (SHA512_F0o, SHA512_F1o, b, c, d, e, f, g, h, a, w7_t, k_sha512[i + 7]); \
129 SHA512_STEP (SHA512_F0o, SHA512_F1o, a, b, c, d, e, f, g, h, w8_t, k_sha512[i + 8]); \
130 SHA512_STEP (SHA512_F0o, SHA512_F1o, h, a, b, c, d, e, f, g, w9_t, k_sha512[i + 9]); \
131 SHA512_STEP (SHA512_F0o, SHA512_F1o, g, h, a, b, c, d, e, f, wa_t, k_sha512[i + 10]); \
132 SHA512_STEP (SHA512_F0o, SHA512_F1o, f, g, h, a, b, c, d, e, wb_t, k_sha512[i + 11]); \
133 SHA512_STEP (SHA512_F0o, SHA512_F1o, e, f, g, h, a, b, c, d, wc_t, k_sha512[i + 12]); \
134 SHA512_STEP (SHA512_F0o, SHA512_F1o, d, e, f, g, h, a, b, c, wd_t, k_sha512[i + 13]); \
135 SHA512_STEP (SHA512_F0o, SHA512_F1o, c, d, e, f, g, h, a, b, we_t, k_sha512[i + 14]); \
136 SHA512_STEP (SHA512_F0o, SHA512_F1o, b, c, d, e, f, g, h, a, wf_t, k_sha512[i + 15]); \
141 //#pragma unroll // kernel fails if used
142 for (int i = 16; i < 80; i += 16)
144 ROUND_EXPAND (); ROUND_STEP (i);
157 static void hmac_sha512_pad (u32x w0[4], u32x w1[4], u32x w2[4], u32x w3[4], u64x ipad[8], u64x opad[8])
164 w0_t[0] = hl32_to_64 (w0[0], w0[1]) ^ 0x3636363636363636;
165 w0_t[1] = hl32_to_64 (w0[2], w0[3]) ^ 0x3636363636363636;
166 w0_t[2] = hl32_to_64 (w1[0], w1[1]) ^ 0x3636363636363636;
167 w0_t[3] = hl32_to_64 (w1[2], w1[3]) ^ 0x3636363636363636;
168 w1_t[0] = hl32_to_64 (w2[0], w2[1]) ^ 0x3636363636363636;
169 w1_t[1] = hl32_to_64 (w2[2], w2[3]) ^ 0x3636363636363636;
170 w1_t[2] = hl32_to_64 (w3[0], w3[1]) ^ 0x3636363636363636;
171 w1_t[3] = hl32_to_64 (w3[2], w3[3]) ^ 0x3636363636363636;
172 w2_t[0] = 0x3636363636363636;
173 w2_t[1] = 0x3636363636363636;
174 w2_t[2] = 0x3636363636363636;
175 w2_t[3] = 0x3636363636363636;
176 w3_t[0] = 0x3636363636363636;
177 w3_t[1] = 0x3636363636363636;
178 w3_t[2] = 0x3636363636363636;
179 w3_t[3] = 0x3636363636363636;
190 sha512_transform (w0_t, w1_t, w2_t, w3_t, ipad);
192 w0_t[0] = hl32_to_64 (w0[0], w0[1]) ^ 0x5c5c5c5c5c5c5c5c;
193 w0_t[1] = hl32_to_64 (w0[2], w0[3]) ^ 0x5c5c5c5c5c5c5c5c;
194 w0_t[2] = hl32_to_64 (w1[0], w1[1]) ^ 0x5c5c5c5c5c5c5c5c;
195 w0_t[3] = hl32_to_64 (w1[2], w1[3]) ^ 0x5c5c5c5c5c5c5c5c;
196 w1_t[0] = hl32_to_64 (w2[0], w2[1]) ^ 0x5c5c5c5c5c5c5c5c;
197 w1_t[1] = hl32_to_64 (w2[2], w2[3]) ^ 0x5c5c5c5c5c5c5c5c;
198 w1_t[2] = hl32_to_64 (w3[0], w3[1]) ^ 0x5c5c5c5c5c5c5c5c;
199 w1_t[3] = hl32_to_64 (w3[2], w3[3]) ^ 0x5c5c5c5c5c5c5c5c;
200 w2_t[0] = 0x5c5c5c5c5c5c5c5c;
201 w2_t[1] = 0x5c5c5c5c5c5c5c5c;
202 w2_t[2] = 0x5c5c5c5c5c5c5c5c;
203 w2_t[3] = 0x5c5c5c5c5c5c5c5c;
204 w3_t[0] = 0x5c5c5c5c5c5c5c5c;
205 w3_t[1] = 0x5c5c5c5c5c5c5c5c;
206 w3_t[2] = 0x5c5c5c5c5c5c5c5c;
207 w3_t[3] = 0x5c5c5c5c5c5c5c5c;
218 sha512_transform (w0_t, w1_t, w2_t, w3_t, opad);
221 static void hmac_sha512_run (u32x w0[4], u32x w1[4], u32x w2[4], u32x w3[4], u64x ipad[8], u64x opad[8], u64x digest[8])
228 w0_t[0] = hl32_to_64 (w0[0], w0[1]);
229 w0_t[1] = hl32_to_64 (w0[2], w0[3]);
230 w0_t[2] = hl32_to_64 (w1[0], w1[1]);
231 w0_t[3] = hl32_to_64 (w1[2], w1[3]);
232 w1_t[0] = hl32_to_64 (w2[0], w2[1]);
233 w1_t[1] = hl32_to_64 (w2[2], w2[3]);
234 w1_t[2] = hl32_to_64 (w3[0], w3[1]);
243 w3_t[3] = hl32_to_64 (w3[2], w3[3]);
254 sha512_transform (w0_t, w1_t, w2_t, w3_t, digest);
264 w2_t[0] = 0x8000000000000000;
271 w3_t[3] = (128 + 64) * 8;
282 sha512_transform (w0_t, w1_t, w2_t, w3_t, digest);
285 static void m01750m (u32x w0[4], u32x w1[4], u32x w2[4], u32x w3[4], const u32 pw_len, __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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset)
291 const u32 gid = get_global_id (0);
292 const u32 lid = get_local_id (0);
300 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
301 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
302 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
303 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
307 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
308 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
309 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
310 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
312 const u32 salt_len = salt_bufs[salt_pos].salt_len;
320 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
322 const u32 w0r = bfs_buf[il_pos].i;
361 hmac_sha512_pad (w0_t, w1_t, w2_t, w3_t, ipad, opad);
363 w0_t[0] = swap_workaround (salt_buf0[0]);
364 w0_t[1] = swap_workaround (salt_buf0[1]);
365 w0_t[2] = swap_workaround (salt_buf0[2]);
366 w0_t[3] = swap_workaround (salt_buf0[3]);
367 w1_t[0] = swap_workaround (salt_buf1[0]);
368 w1_t[1] = swap_workaround (salt_buf1[1]);
369 w1_t[2] = swap_workaround (salt_buf1[2]);
370 w1_t[3] = swap_workaround (salt_buf1[3]);
378 w3_t[3] = (128 + salt_len) * 8;
382 hmac_sha512_run (w0_t, w1_t, w2_t, w3_t, ipad, opad, digest);
385 const u32x r0 = l32_from_64 (digest[7]);
386 const u32x r1 = h32_from_64 (digest[7]);
387 const u32x r2 = l32_from_64 (digest[3]);
388 const u32x r3 = h32_from_64 (digest[3]);
390 #include VECT_COMPARE_M
394 static void m01750s (u32x w0[4], u32x w1[4], u32x w2[4], u32x w3[4], const u32 pw_len, __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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset)
400 const u32 gid = get_global_id (0);
401 const u32 lid = get_local_id (0);
409 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
410 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
411 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
412 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
416 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
417 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
418 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
419 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
421 const u32 salt_len = salt_bufs[salt_pos].salt_len;
427 const u32 search[4] =
429 digests_buf[digests_offset].digest_buf[DGST_R0],
430 digests_buf[digests_offset].digest_buf[DGST_R1],
431 digests_buf[digests_offset].digest_buf[DGST_R2],
432 digests_buf[digests_offset].digest_buf[DGST_R3]
441 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
443 const u32 w0r = bfs_buf[il_pos].i;
482 hmac_sha512_pad (w0_t, w1_t, w2_t, w3_t, ipad, opad);
484 w0_t[0] = swap_workaround (salt_buf0[0]);
485 w0_t[1] = swap_workaround (salt_buf0[1]);
486 w0_t[2] = swap_workaround (salt_buf0[2]);
487 w0_t[3] = swap_workaround (salt_buf0[3]);
488 w1_t[0] = swap_workaround (salt_buf1[0]);
489 w1_t[1] = swap_workaround (salt_buf1[1]);
490 w1_t[2] = swap_workaround (salt_buf1[2]);
491 w1_t[3] = swap_workaround (salt_buf1[3]);
499 w3_t[3] = (128 + salt_len) * 8;
503 hmac_sha512_run (w0_t, w1_t, w2_t, w3_t, ipad, opad, digest);
506 const u32x r0 = l32_from_64 (digest[7]);
507 const u32x r1 = h32_from_64 (digest[7]);
508 const u32x r2 = l32_from_64 (digest[3]);
509 const u32x r3 = h32_from_64 (digest[3]);
511 #include VECT_COMPARE_S
515 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m01750_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
521 const u32 gid = get_global_id (0);
523 if (gid >= gid_max) return;
527 w0[0] = pws[gid].i[ 0];
528 w0[1] = pws[gid].i[ 1];
529 w0[2] = pws[gid].i[ 2];
530 w0[3] = pws[gid].i[ 3];
553 const u32 pw_len = pws[gid].pw_len;
559 m01750m (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);
562 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m01750_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
568 const u32 gid = get_global_id (0);
570 if (gid >= gid_max) return;
574 w0[0] = pws[gid].i[ 0];
575 w0[1] = pws[gid].i[ 1];
576 w0[2] = pws[gid].i[ 2];
577 w0[3] = pws[gid].i[ 3];
581 w1[0] = pws[gid].i[ 4];
582 w1[1] = pws[gid].i[ 5];
583 w1[2] = pws[gid].i[ 6];
584 w1[3] = pws[gid].i[ 7];
600 const u32 pw_len = pws[gid].pw_len;
606 m01750m (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);
609 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m01750_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
615 const u32 gid = get_global_id (0);
617 if (gid >= gid_max) return;
621 w0[0] = pws[gid].i[ 0];
622 w0[1] = pws[gid].i[ 1];
623 w0[2] = pws[gid].i[ 2];
624 w0[3] = pws[gid].i[ 3];
628 w1[0] = pws[gid].i[ 4];
629 w1[1] = pws[gid].i[ 5];
630 w1[2] = pws[gid].i[ 6];
631 w1[3] = pws[gid].i[ 7];
635 w2[0] = pws[gid].i[ 8];
636 w2[1] = pws[gid].i[ 9];
637 w2[2] = pws[gid].i[10];
638 w2[3] = pws[gid].i[11];
642 w3[0] = pws[gid].i[12];
643 w3[1] = pws[gid].i[13];
647 const u32 pw_len = pws[gid].pw_len;
653 m01750m (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);
656 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m01750_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
662 const u32 gid = get_global_id (0);
664 if (gid >= gid_max) return;
668 w0[0] = pws[gid].i[ 0];
669 w0[1] = pws[gid].i[ 1];
670 w0[2] = pws[gid].i[ 2];
671 w0[3] = pws[gid].i[ 3];
694 const u32 pw_len = pws[gid].pw_len;
700 m01750s (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);
703 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m01750_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
709 const u32 gid = get_global_id (0);
711 if (gid >= gid_max) return;
715 w0[0] = pws[gid].i[ 0];
716 w0[1] = pws[gid].i[ 1];
717 w0[2] = pws[gid].i[ 2];
718 w0[3] = pws[gid].i[ 3];
722 w1[0] = pws[gid].i[ 4];
723 w1[1] = pws[gid].i[ 5];
724 w1[2] = pws[gid].i[ 6];
725 w1[3] = pws[gid].i[ 7];
741 const u32 pw_len = pws[gid].pw_len;
747 m01750s (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);
750 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m01750_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
756 const u32 gid = get_global_id (0);
758 if (gid >= gid_max) return;
762 w0[0] = pws[gid].i[ 0];
763 w0[1] = pws[gid].i[ 1];
764 w0[2] = pws[gid].i[ 2];
765 w0[3] = pws[gid].i[ 3];
769 w1[0] = pws[gid].i[ 4];
770 w1[1] = pws[gid].i[ 5];
771 w1[2] = pws[gid].i[ 6];
772 w1[3] = pws[gid].i[ 7];
776 w2[0] = pws[gid].i[ 8];
777 w2[1] = pws[gid].i[ 9];
778 w2[2] = pws[gid].i[10];
779 w2[3] = pws[gid].i[11];
783 w3[0] = pws[gid].i[12];
784 w3[1] = pws[gid].i[13];
788 const u32 pw_len = pws[gid].pw_len;
794 m01750s (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);