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 m04800m (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_buf[0] = salt_bufs[salt_pos].salt_buf[0];
63 salt_buf[1] = salt_bufs[salt_pos].salt_buf[1];
64 salt_buf[2] = salt_bufs[salt_pos].salt_buf[2];
65 salt_buf[3] = salt_bufs[salt_pos].salt_buf[3];
66 salt_buf[4] = salt_bufs[salt_pos].salt_buf[4];
68 const u32 salt_len = salt_bufs[salt_pos].salt_len;
70 const u32 pw_salt_len = pw_len + salt_len;
130 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, 1);
132 switch_buffer_by_offset (s0, s1, s2, s3, 1 + pw_len);
151 w3_t[2] = pw_salt_len * 8;
158 w0_t[0] |= salt_buf[4];
167 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
169 const u32 w0r = bfs_buf[il_pos].i;
171 w0_t[0] = w0l | (w0r << 8);
172 w0_t[1] = w1l | (w0r >> 24);
183 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
184 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
185 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
186 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
187 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
188 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
189 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
190 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
191 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
192 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
193 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
194 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
195 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
196 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
197 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
198 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
200 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
201 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
202 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
203 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
204 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
205 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
206 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
207 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
208 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
209 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
210 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
211 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
212 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
213 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
214 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
215 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
217 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
218 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
219 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
220 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
221 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
222 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
223 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
224 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
225 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
226 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
227 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
228 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
229 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
230 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
231 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
232 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
234 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
235 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
236 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
237 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
238 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
239 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
240 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
241 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
242 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
243 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
244 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
245 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
246 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
247 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
248 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
249 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
256 #include VECT_COMPARE_M
260 static void m04800s (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)
266 const u32 gid = get_global_id (0);
267 const u32 lid = get_local_id (0);
275 salt_buf[0] = salt_bufs[salt_pos].salt_buf[0];
276 salt_buf[1] = salt_bufs[salt_pos].salt_buf[1];
277 salt_buf[2] = salt_bufs[salt_pos].salt_buf[2];
278 salt_buf[3] = salt_bufs[salt_pos].salt_buf[3];
279 salt_buf[4] = salt_bufs[salt_pos].salt_buf[4];
281 const u32 salt_len = salt_bufs[salt_pos].salt_len;
283 const u32 pw_salt_len = pw_len + salt_len;
343 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, 1);
345 switch_buffer_by_offset (s0, s1, s2, s3, 1 + pw_len);
364 w3_t[2] = pw_salt_len * 8;
371 w0_t[0] |= salt_buf[4];
377 const u32 search[4] =
379 digests_buf[digests_offset].digest_buf[DGST_R0],
380 digests_buf[digests_offset].digest_buf[DGST_R1],
381 digests_buf[digests_offset].digest_buf[DGST_R2],
382 digests_buf[digests_offset].digest_buf[DGST_R3]
392 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
394 const u32 w0r = bfs_buf[il_pos].i;
396 w0_t[0] = w0l | (w0r << 8);
397 w0_t[1] = w1l | (w0r >> 24);
408 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
409 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
410 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
411 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
412 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
413 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
414 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
415 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
416 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
417 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
418 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
419 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
420 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
421 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
422 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
423 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
425 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
426 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
427 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
428 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
429 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
430 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
431 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
432 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
433 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
434 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
435 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
436 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
437 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
438 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
439 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
440 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
442 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
443 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
444 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
445 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
446 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
447 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
448 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
449 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
450 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
451 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
452 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
453 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
454 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
455 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
456 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
457 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
459 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
460 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
461 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
462 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
463 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
464 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
465 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
466 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
467 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
468 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
469 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
470 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
471 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
473 bool q_cond = allx (search[0] != a);
475 if (q_cond) continue;
477 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
478 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
479 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
486 #include VECT_COMPARE_S
490 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m04800_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)
496 const u32 gid = get_global_id (0);
498 if (gid >= gid_max) return;
504 const u32 lid = get_local_id (0);
509 w0[0] = pws[gid].i[ 0];
510 w0[1] = pws[gid].i[ 1];
511 w0[2] = pws[gid].i[ 2];
512 w0[3] = pws[gid].i[ 3];
535 const u32 pw_len = pws[gid].pw_len;
541 m04800m (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);
544 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m04800_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)
550 const u32 gid = get_global_id (0);
552 if (gid >= gid_max) return;
558 const u32 lid = get_local_id (0);
562 w0[0] = pws[gid].i[ 0];
563 w0[1] = pws[gid].i[ 1];
564 w0[2] = pws[gid].i[ 2];
565 w0[3] = pws[gid].i[ 3];
569 w1[0] = pws[gid].i[ 4];
570 w1[1] = pws[gid].i[ 5];
571 w1[2] = pws[gid].i[ 6];
572 w1[3] = pws[gid].i[ 7];
588 const u32 pw_len = pws[gid].pw_len;
594 m04800m (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);
597 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m04800_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)
603 const u32 gid = get_global_id (0);
605 if (gid >= gid_max) return;
611 const u32 lid = get_local_id (0);
615 w0[0] = pws[gid].i[ 0];
616 w0[1] = pws[gid].i[ 1];
617 w0[2] = pws[gid].i[ 2];
618 w0[3] = pws[gid].i[ 3];
622 w1[0] = pws[gid].i[ 4];
623 w1[1] = pws[gid].i[ 5];
624 w1[2] = pws[gid].i[ 6];
625 w1[3] = pws[gid].i[ 7];
629 w2[0] = pws[gid].i[ 8];
630 w2[1] = pws[gid].i[ 9];
631 w2[2] = pws[gid].i[10];
632 w2[3] = pws[gid].i[11];
636 w3[0] = pws[gid].i[12];
637 w3[1] = pws[gid].i[13];
638 w3[2] = pws[gid].i[14];
639 w3[3] = pws[gid].i[15];
641 const u32 pw_len = pws[gid].pw_len;
647 m04800m (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);
650 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m04800_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)
656 const u32 gid = get_global_id (0);
658 if (gid >= gid_max) return;
664 const u32 lid = get_local_id (0);
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 m04800s (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))) m04800_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;
717 const u32 lid = get_local_id (0);
721 w0[0] = pws[gid].i[ 0];
722 w0[1] = pws[gid].i[ 1];
723 w0[2] = pws[gid].i[ 2];
724 w0[3] = pws[gid].i[ 3];
728 w1[0] = pws[gid].i[ 4];
729 w1[1] = pws[gid].i[ 5];
730 w1[2] = pws[gid].i[ 6];
731 w1[3] = pws[gid].i[ 7];
747 const u32 pw_len = pws[gid].pw_len;
753 m04800s (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);
756 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m04800_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)
762 const u32 gid = get_global_id (0);
764 if (gid >= gid_max) return;
770 const u32 lid = get_local_id (0);
774 w0[0] = pws[gid].i[ 0];
775 w0[1] = pws[gid].i[ 1];
776 w0[2] = pws[gid].i[ 2];
777 w0[3] = pws[gid].i[ 3];
781 w1[0] = pws[gid].i[ 4];
782 w1[1] = pws[gid].i[ 5];
783 w1[2] = pws[gid].i[ 6];
784 w1[3] = pws[gid].i[ 7];
788 w2[0] = pws[gid].i[ 8];
789 w2[1] = pws[gid].i[ 9];
790 w2[2] = pws[gid].i[10];
791 w2[3] = pws[gid].i[11];
795 w3[0] = pws[gid].i[12];
796 w3[1] = pws[gid].i[13];
797 w3[2] = pws[gid].i[14];
798 w3[3] = pws[gid].i[15];
800 const u32 pw_len = pws[gid].pw_len;
806 m04800s (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);