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_vect4_comp4.c"
39 #define VECT_COMPARE_M "check_multi_vect4_comp4.c"
42 static void m05100m (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)
48 const u32 gid = get_global_id (0);
49 const u32 lid = get_local_id (0);
63 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
65 const u32 w0r = bfs_buf[il_pos].i;
74 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
75 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
76 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
77 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
78 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
79 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
80 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
81 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
82 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
83 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
84 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
85 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
86 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
87 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
88 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
89 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
91 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
92 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
93 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
94 MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
95 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
96 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
97 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
98 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
99 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
100 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
101 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
102 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
103 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
104 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
105 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
106 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
108 MD5_STEP (MD5_H , a, b, c, d, w1[1], MD5C20, MD5S20);
109 MD5_STEP (MD5_H , d, a, b, c, w2[0], MD5C21, MD5S21);
110 MD5_STEP (MD5_H , c, d, a, b, w2[3], MD5C22, MD5S22);
111 MD5_STEP (MD5_H , b, c, d, a, w3[2], MD5C23, MD5S23);
112 MD5_STEP (MD5_H , a, b, c, d, w0[1], MD5C24, MD5S20);
113 MD5_STEP (MD5_H , d, a, b, c, w1[0], MD5C25, MD5S21);
114 MD5_STEP (MD5_H , c, d, a, b, w1[3], MD5C26, MD5S22);
115 MD5_STEP (MD5_H , b, c, d, a, w2[2], MD5C27, MD5S23);
116 MD5_STEP (MD5_H , a, b, c, d, w3[1], MD5C28, MD5S20);
117 MD5_STEP (MD5_H , d, a, b, c, w0[0], MD5C29, MD5S21);
118 MD5_STEP (MD5_H , c, d, a, b, w0[3], MD5C2a, MD5S22);
119 MD5_STEP (MD5_H , b, c, d, a, w1[2], MD5C2b, MD5S23);
120 MD5_STEP (MD5_H , a, b, c, d, w2[1], MD5C2c, MD5S20);
121 MD5_STEP (MD5_H , d, a, b, c, w3[0], MD5C2d, MD5S21);
122 MD5_STEP (MD5_H , c, d, a, b, w3[3], MD5C2e, MD5S22);
123 MD5_STEP (MD5_H , b, c, d, a, w0[2], MD5C2f, MD5S23);
125 MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
126 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
127 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
128 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
129 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
130 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
131 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
132 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
133 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
134 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
135 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
136 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
137 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
138 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
139 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
140 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
153 #include VECT_COMPARE_M
162 #include VECT_COMPARE_M
171 #include VECT_COMPARE_M
176 static void m05100s (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)
182 const u32 gid = get_global_id (0);
183 const u32 lid = get_local_id (0);
195 const u32 search[4] =
197 digests_buf[digests_offset].digest_buf[DGST_R0],
198 digests_buf[digests_offset].digest_buf[DGST_R1],
199 digests_buf[digests_offset].digest_buf[DGST_R2],
200 digests_buf[digests_offset].digest_buf[DGST_R3]
209 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
211 const u32 w0r = bfs_buf[il_pos].i;
220 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
221 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
222 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
223 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
224 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
225 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
226 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
227 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
228 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
229 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
230 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
231 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
232 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
233 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
234 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
235 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
237 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
238 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
239 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
240 MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
241 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
242 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
243 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
244 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
245 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
246 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
247 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
248 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
249 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
250 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
251 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
252 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
254 MD5_STEP (MD5_H , a, b, c, d, w1[1], MD5C20, MD5S20);
255 MD5_STEP (MD5_H , d, a, b, c, w2[0], MD5C21, MD5S21);
256 MD5_STEP (MD5_H , c, d, a, b, w2[3], MD5C22, MD5S22);
257 MD5_STEP (MD5_H , b, c, d, a, w3[2], MD5C23, MD5S23);
258 MD5_STEP (MD5_H , a, b, c, d, w0[1], MD5C24, MD5S20);
259 MD5_STEP (MD5_H , d, a, b, c, w1[0], MD5C25, MD5S21);
260 MD5_STEP (MD5_H , c, d, a, b, w1[3], MD5C26, MD5S22);
261 MD5_STEP (MD5_H , b, c, d, a, w2[2], MD5C27, MD5S23);
262 MD5_STEP (MD5_H , a, b, c, d, w3[1], MD5C28, MD5S20);
263 MD5_STEP (MD5_H , d, a, b, c, w0[0], MD5C29, MD5S21);
264 MD5_STEP (MD5_H , c, d, a, b, w0[3], MD5C2a, MD5S22);
265 MD5_STEP (MD5_H , b, c, d, a, w1[2], MD5C2b, MD5S23);
266 MD5_STEP (MD5_H , a, b, c, d, w2[1], MD5C2c, MD5S20);
267 MD5_STEP (MD5_H , d, a, b, c, w3[0], MD5C2d, MD5S21);
268 MD5_STEP (MD5_H , c, d, a, b, w3[3], MD5C2e, MD5S22);
269 MD5_STEP (MD5_H , b, c, d, a, w0[2], MD5C2f, MD5S23);
271 MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
272 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
273 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
274 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
275 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
276 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
277 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
278 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
279 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
280 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
281 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
282 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
283 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
284 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
285 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
286 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
299 #include VECT_COMPARE_S
308 #include VECT_COMPARE_S
317 #include VECT_COMPARE_S
322 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05100_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)
328 const u32 gid = get_global_id (0);
330 if (gid >= gid_max) return;
334 w0[0] = pws[gid].i[ 0];
335 w0[1] = pws[gid].i[ 1];
336 w0[2] = pws[gid].i[ 2];
337 w0[3] = pws[gid].i[ 3];
360 const u32 pw_len = pws[gid].pw_len;
366 m05100m (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);
369 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05100_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)
375 const u32 gid = get_global_id (0);
377 if (gid >= gid_max) return;
381 w0[0] = pws[gid].i[ 0];
382 w0[1] = pws[gid].i[ 1];
383 w0[2] = pws[gid].i[ 2];
384 w0[3] = pws[gid].i[ 3];
388 w1[0] = pws[gid].i[ 4];
389 w1[1] = pws[gid].i[ 5];
390 w1[2] = pws[gid].i[ 6];
391 w1[3] = pws[gid].i[ 7];
407 const u32 pw_len = pws[gid].pw_len;
413 m05100m (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);
416 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05100_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)
422 const u32 gid = get_global_id (0);
424 if (gid >= gid_max) return;
428 w0[0] = pws[gid].i[ 0];
429 w0[1] = pws[gid].i[ 1];
430 w0[2] = pws[gid].i[ 2];
431 w0[3] = pws[gid].i[ 3];
435 w1[0] = pws[gid].i[ 4];
436 w1[1] = pws[gid].i[ 5];
437 w1[2] = pws[gid].i[ 6];
438 w1[3] = pws[gid].i[ 7];
442 w2[0] = pws[gid].i[ 8];
443 w2[1] = pws[gid].i[ 9];
444 w2[2] = pws[gid].i[10];
445 w2[3] = pws[gid].i[11];
449 w3[0] = pws[gid].i[12];
450 w3[1] = pws[gid].i[13];
454 const u32 pw_len = pws[gid].pw_len;
460 m05100m (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);
463 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05100_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)
469 const u32 gid = get_global_id (0);
471 if (gid >= gid_max) return;
475 w0[0] = pws[gid].i[ 0];
476 w0[1] = pws[gid].i[ 1];
477 w0[2] = pws[gid].i[ 2];
478 w0[3] = pws[gid].i[ 3];
501 const u32 pw_len = pws[gid].pw_len;
507 m05100s (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);
510 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05100_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)
516 const u32 gid = get_global_id (0);
518 if (gid >= gid_max) return;
522 w0[0] = pws[gid].i[ 0];
523 w0[1] = pws[gid].i[ 1];
524 w0[2] = pws[gid].i[ 2];
525 w0[3] = pws[gid].i[ 3];
529 w1[0] = pws[gid].i[ 4];
530 w1[1] = pws[gid].i[ 5];
531 w1[2] = pws[gid].i[ 6];
532 w1[3] = pws[gid].i[ 7];
548 const u32 pw_len = pws[gid].pw_len;
554 m05100s (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);
557 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05100_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)
563 const u32 gid = get_global_id (0);
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];
576 w1[0] = pws[gid].i[ 4];
577 w1[1] = pws[gid].i[ 5];
578 w1[2] = pws[gid].i[ 6];
579 w1[3] = pws[gid].i[ 7];
583 w2[0] = pws[gid].i[ 8];
584 w2[1] = pws[gid].i[ 9];
585 w2[2] = pws[gid].i[10];
586 w2[3] = pws[gid].i[11];
590 w3[0] = pws[gid].i[12];
591 w3[1] = pws[gid].i[13];
595 const u32 pw_len = pws[gid].pw_len;
601 m05100s (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);