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 static void m00040m (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)
53 const u32 gid = get_global_id (0);
54 const u32 lid = get_local_id (0);
62 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
63 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
64 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
65 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
69 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
70 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
71 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
72 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
88 const u32 salt_len = salt_bufs[salt_pos].salt_len;
90 const u32 pw_salt_len = pw_len + salt_len;
98 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
100 const u32 w0r = bfs_buf[il_pos].i;
130 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, salt_len);
132 w3_t[2] = pw_salt_len * 8;
134 w0_t[0] |= salt_buf0[0];
135 w0_t[1] |= salt_buf0[1];
136 w0_t[2] |= salt_buf0[2];
137 w0_t[3] |= salt_buf0[3];
138 w1_t[0] |= salt_buf1[0];
139 w1_t[1] |= salt_buf1[1];
140 w1_t[2] |= salt_buf1[2];
141 w1_t[3] |= salt_buf1[3];
142 w2_t[0] |= salt_buf2[0];
143 w2_t[1] |= salt_buf2[1];
144 w2_t[2] |= salt_buf2[2];
145 w2_t[3] |= salt_buf2[3];
146 w3_t[0] |= salt_buf3[0];
147 w3_t[1] |= salt_buf3[1];
148 w3_t[2] |= salt_buf3[2];
149 w3_t[3] |= salt_buf3[3];
160 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
161 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
162 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
163 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
164 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
165 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
166 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
167 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
168 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
169 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
170 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
171 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
172 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
173 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
174 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
175 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
177 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
178 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
179 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
180 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
181 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
182 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
183 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
184 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
185 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
186 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
187 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
188 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
189 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
190 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
191 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
192 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
194 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
195 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
196 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
197 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
198 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
199 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
200 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
201 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
202 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
203 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
204 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
205 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
206 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
207 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
208 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
209 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
211 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
212 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
213 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
214 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
215 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
216 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
217 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
218 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
219 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
220 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
221 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
222 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
223 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
224 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
225 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
226 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
234 #include VECT_COMPARE_M
238 static void m00040s (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)
244 const u32 gid = get_global_id (0);
245 const u32 lid = get_local_id (0);
251 const u32 search[4] =
253 digests_buf[digests_offset].digest_buf[DGST_R0],
254 digests_buf[digests_offset].digest_buf[DGST_R1],
255 digests_buf[digests_offset].digest_buf[DGST_R2],
256 digests_buf[digests_offset].digest_buf[DGST_R3]
265 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
266 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
267 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
268 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
272 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
273 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
274 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
275 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
291 const u32 salt_len = salt_bufs[salt_pos].salt_len;
293 const u32 pw_salt_len = pw_len + salt_len;
301 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
303 const u32 w0r = bfs_buf[il_pos].i;
333 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, salt_len);
335 w3_t[2] = pw_salt_len * 8;
337 w0_t[0] |= salt_buf0[0];
338 w0_t[1] |= salt_buf0[1];
339 w0_t[2] |= salt_buf0[2];
340 w0_t[3] |= salt_buf0[3];
341 w1_t[0] |= salt_buf1[0];
342 w1_t[1] |= salt_buf1[1];
343 w1_t[2] |= salt_buf1[2];
344 w1_t[3] |= salt_buf1[3];
345 w2_t[0] |= salt_buf2[0];
346 w2_t[1] |= salt_buf2[1];
347 w2_t[2] |= salt_buf2[2];
348 w2_t[3] |= salt_buf2[3];
349 w3_t[0] |= salt_buf3[0];
350 w3_t[1] |= salt_buf3[1];
351 w3_t[2] |= salt_buf3[2];
352 w3_t[3] |= salt_buf3[3];
363 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
364 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
365 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
366 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
367 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
368 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
369 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
370 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
371 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
372 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
373 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
374 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
375 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
376 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
377 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
378 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
380 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
381 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
382 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
383 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
384 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
385 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
386 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
387 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
388 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
389 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
390 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
391 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
392 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
393 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
394 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
395 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
397 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
398 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
399 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
400 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
401 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
402 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
403 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
404 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
405 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
406 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
407 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
408 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
409 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
410 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
411 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
412 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
414 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
415 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
416 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
417 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
418 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
419 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
420 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
421 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
422 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
423 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
424 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
425 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
426 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
428 bool q_cond = allx (search[0] != a);
430 if (q_cond) continue;
432 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
433 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
434 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
442 #include VECT_COMPARE_S
446 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m00040_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)
452 const u32 gid = get_global_id (0);
454 if (gid >= gid_max) return;
458 w0[0] = pws[gid].i[ 0];
459 w0[1] = pws[gid].i[ 1];
460 w0[2] = pws[gid].i[ 2];
461 w0[3] = pws[gid].i[ 3];
484 const u32 pw_len = pws[gid].pw_len;
490 m00040m (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);
493 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m00040_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)
499 const u32 gid = get_global_id (0);
501 if (gid >= gid_max) return;
505 w0[0] = pws[gid].i[ 0];
506 w0[1] = pws[gid].i[ 1];
507 w0[2] = pws[gid].i[ 2];
508 w0[3] = pws[gid].i[ 3];
512 w1[0] = pws[gid].i[ 4];
513 w1[1] = pws[gid].i[ 5];
514 w1[2] = pws[gid].i[ 6];
515 w1[3] = pws[gid].i[ 7];
531 const u32 pw_len = pws[gid].pw_len;
537 m00040m (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);
540 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m00040_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)
546 const u32 gid = get_global_id (0);
548 if (gid >= gid_max) return;
552 w0[0] = pws[gid].i[ 0];
553 w0[1] = pws[gid].i[ 1];
554 w0[2] = pws[gid].i[ 2];
555 w0[3] = pws[gid].i[ 3];
559 w1[0] = pws[gid].i[ 4];
560 w1[1] = pws[gid].i[ 5];
561 w1[2] = pws[gid].i[ 6];
562 w1[3] = pws[gid].i[ 7];
566 w2[0] = pws[gid].i[ 8];
567 w2[1] = pws[gid].i[ 9];
568 w2[2] = pws[gid].i[10];
569 w2[3] = pws[gid].i[11];
573 w3[0] = pws[gid].i[12];
574 w3[1] = pws[gid].i[13];
578 const u32 pw_len = pws[gid].pw_len;
584 m00040m (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);
587 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m00040_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)
593 const u32 gid = get_global_id (0);
595 if (gid >= gid_max) return;
599 w0[0] = pws[gid].i[ 0];
600 w0[1] = pws[gid].i[ 1];
601 w0[2] = pws[gid].i[ 2];
602 w0[3] = pws[gid].i[ 3];
625 const u32 pw_len = pws[gid].pw_len;
631 m00040s (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);
634 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m00040_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)
640 const u32 gid = get_global_id (0);
642 if (gid >= gid_max) return;
646 w0[0] = pws[gid].i[ 0];
647 w0[1] = pws[gid].i[ 1];
648 w0[2] = pws[gid].i[ 2];
649 w0[3] = pws[gid].i[ 3];
653 w1[0] = pws[gid].i[ 4];
654 w1[1] = pws[gid].i[ 5];
655 w1[2] = pws[gid].i[ 6];
656 w1[3] = pws[gid].i[ 7];
672 const u32 pw_len = pws[gid].pw_len;
678 m00040s (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);
681 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m00040_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)
687 const u32 gid = get_global_id (0);
689 if (gid >= gid_max) return;
693 w0[0] = pws[gid].i[ 0];
694 w0[1] = pws[gid].i[ 1];
695 w0[2] = pws[gid].i[ 2];
696 w0[3] = pws[gid].i[ 3];
700 w1[0] = pws[gid].i[ 4];
701 w1[1] = pws[gid].i[ 5];
702 w1[2] = pws[gid].i[ 6];
703 w1[3] = pws[gid].i[ 7];
707 w2[0] = pws[gid].i[ 8];
708 w2[1] = pws[gid].i[ 9];
709 w2[2] = pws[gid].i[10];
710 w2[3] = pws[gid].i[11];
714 w3[0] = pws[gid].i[12];
715 w3[1] = pws[gid].i[13];
719 const u32 pw_len = pws[gid].pw_len;
725 m00040s (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);