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 m03800m (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);
66 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
67 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
68 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
69 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
73 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
74 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
75 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
76 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
92 const u32 salt_len = salt_bufs[salt_pos].salt_len;
94 const u32 pw_salt_len = salt_len + pw_len + salt_len;
102 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
104 const u32 w0r = bfs_buf[il_pos].i;
141 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, salt_len);
143 w0_t[0] |= salt_buf0[0];
144 w0_t[1] |= salt_buf0[1];
145 w0_t[2] |= salt_buf0[2];
146 w0_t[3] |= salt_buf0[3];
147 w1_t[0] |= salt_buf1[0];
148 w1_t[1] |= salt_buf1[1];
149 w1_t[2] |= salt_buf1[2];
150 w1_t[3] |= salt_buf1[3];
151 w2_t[0] |= salt_buf2[0];
152 w2_t[1] |= salt_buf2[1];
153 w2_t[2] |= salt_buf2[2];
154 w2_t[3] |= salt_buf2[3];
155 w3_t[0] |= salt_buf3[0];
156 w3_t[1] |= salt_buf3[1];
157 w3_t[2] |= salt_buf3[2];
158 w3_t[3] |= salt_buf3[3];
166 s0[0] = salt_buf0[0];
167 s0[1] = salt_buf0[1];
168 s0[2] = salt_buf0[2];
169 s0[3] = salt_buf0[3];
173 s1[0] = salt_buf1[0];
174 s1[1] = salt_buf1[1];
175 s1[2] = salt_buf1[2];
176 s1[3] = salt_buf1[3];
192 switch_buffer_by_offset (s0, s1, s2, s3, salt_len + pw_len);
211 append_0x80_4 (w0_t, w1_t, w2_t, w3_t, pw_salt_len);
213 w3_t[2] = pw_salt_len * 8;
224 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
225 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
226 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
227 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
228 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
229 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
230 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
231 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
232 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
233 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
234 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
235 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
236 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
237 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
238 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
239 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
241 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
242 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
243 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
244 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
245 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
246 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
247 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
248 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
249 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
250 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
251 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
252 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
253 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
254 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
255 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
256 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
258 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
259 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
260 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
261 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
262 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
263 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
264 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
265 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
266 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
267 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
268 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
269 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
270 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
271 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
272 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
273 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
275 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
276 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
277 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
278 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
279 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
280 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
281 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
282 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
283 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
284 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
285 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
286 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
287 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
289 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
290 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
291 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
298 #include VECT_COMPARE_M
302 static void m03800s (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)
308 const u32 gid = get_global_id (0);
309 const u32 lid = get_local_id (0);
315 const u32 search[4] =
317 digests_buf[digests_offset].digest_buf[DGST_R0],
318 digests_buf[digests_offset].digest_buf[DGST_R1],
319 digests_buf[digests_offset].digest_buf[DGST_R2],
320 digests_buf[digests_offset].digest_buf[DGST_R3]
329 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
330 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
331 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
332 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
336 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
337 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
338 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
339 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
355 const u32 salt_len = salt_bufs[salt_pos].salt_len;
357 const u32 pw_salt_len = salt_len + pw_len + salt_len;
365 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
367 const u32 w0r = bfs_buf[il_pos].i;
404 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, salt_len);
406 w0_t[0] |= salt_buf0[0];
407 w0_t[1] |= salt_buf0[1];
408 w0_t[2] |= salt_buf0[2];
409 w0_t[3] |= salt_buf0[3];
410 w1_t[0] |= salt_buf1[0];
411 w1_t[1] |= salt_buf1[1];
412 w1_t[2] |= salt_buf1[2];
413 w1_t[3] |= salt_buf1[3];
414 w2_t[0] |= salt_buf2[0];
415 w2_t[1] |= salt_buf2[1];
416 w2_t[2] |= salt_buf2[2];
417 w2_t[3] |= salt_buf2[3];
418 w3_t[0] |= salt_buf3[0];
419 w3_t[1] |= salt_buf3[1];
420 w3_t[2] |= salt_buf3[2];
421 w3_t[3] |= salt_buf3[3];
429 s0[0] = salt_buf0[0];
430 s0[1] = salt_buf0[1];
431 s0[2] = salt_buf0[2];
432 s0[3] = salt_buf0[3];
436 s1[0] = salt_buf1[0];
437 s1[1] = salt_buf1[1];
438 s1[2] = salt_buf1[2];
439 s1[3] = salt_buf1[3];
455 switch_buffer_by_offset (s0, s1, s2, s3, salt_len + pw_len);
474 append_0x80_4 (w0_t, w1_t, w2_t, w3_t, pw_salt_len);
476 w3_t[2] = pw_salt_len * 8;
487 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
488 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
489 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
490 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
491 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
492 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
493 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
494 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
495 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
496 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
497 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
498 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
499 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
500 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
501 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
502 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
504 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
505 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
506 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
507 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
508 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
509 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
510 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
511 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
512 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
513 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
514 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
515 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
516 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
517 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
518 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
519 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
521 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
522 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
523 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
524 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
525 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
526 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
527 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
528 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
529 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
530 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
531 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
532 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
533 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
534 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
535 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
536 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
538 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
539 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
540 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
541 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
542 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
543 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
544 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
545 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
546 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
547 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
548 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
549 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
550 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
551 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
552 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
553 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
560 #include VECT_COMPARE_S
564 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m03800_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)
570 const u32 gid = get_global_id (0);
572 if (gid >= gid_max) return;
578 const u32 lid = get_local_id (0);
582 w0[0] = pws[gid].i[ 0];
583 w0[1] = pws[gid].i[ 1];
584 w0[2] = pws[gid].i[ 2];
585 w0[3] = pws[gid].i[ 3];
605 w3[2] = pws[gid].i[14];
608 const u32 pw_len = pws[gid].pw_len;
614 m03800m (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);
617 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m03800_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)
623 const u32 gid = get_global_id (0);
625 if (gid >= gid_max) return;
631 const u32 lid = get_local_id (0);
635 w0[0] = pws[gid].i[ 0];
636 w0[1] = pws[gid].i[ 1];
637 w0[2] = pws[gid].i[ 2];
638 w0[3] = pws[gid].i[ 3];
642 w1[0] = pws[gid].i[ 4];
643 w1[1] = pws[gid].i[ 5];
644 w1[2] = pws[gid].i[ 6];
645 w1[3] = pws[gid].i[ 7];
658 w3[2] = pws[gid].i[14];
661 const u32 pw_len = pws[gid].pw_len;
667 m03800m (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);
670 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m03800_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)
676 const u32 gid = get_global_id (0);
678 if (gid >= gid_max) return;
684 const u32 lid = get_local_id (0);
688 w0[0] = pws[gid].i[ 0];
689 w0[1] = pws[gid].i[ 1];
690 w0[2] = pws[gid].i[ 2];
691 w0[3] = pws[gid].i[ 3];
695 w1[0] = pws[gid].i[ 4];
696 w1[1] = pws[gid].i[ 5];
697 w1[2] = pws[gid].i[ 6];
698 w1[3] = pws[gid].i[ 7];
702 w2[0] = pws[gid].i[ 8];
703 w2[1] = pws[gid].i[ 9];
704 w2[2] = pws[gid].i[10];
705 w2[3] = pws[gid].i[11];
709 w3[0] = pws[gid].i[12];
710 w3[1] = pws[gid].i[13];
711 w3[2] = pws[gid].i[14];
712 w3[3] = pws[gid].i[15];
714 const u32 pw_len = pws[gid].pw_len;
720 m03800m (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);
723 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m03800_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)
729 const u32 gid = get_global_id (0);
731 if (gid >= gid_max) return;
737 const u32 lid = get_local_id (0);
741 w0[0] = pws[gid].i[ 0];
742 w0[1] = pws[gid].i[ 1];
743 w0[2] = pws[gid].i[ 2];
744 w0[3] = pws[gid].i[ 3];
764 w3[2] = pws[gid].i[14];
767 const u32 pw_len = pws[gid].pw_len;
773 m03800s (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);
776 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m03800_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)
782 const u32 gid = get_global_id (0);
784 if (gid >= gid_max) return;
790 const u32 lid = get_local_id (0);
794 w0[0] = pws[gid].i[ 0];
795 w0[1] = pws[gid].i[ 1];
796 w0[2] = pws[gid].i[ 2];
797 w0[3] = pws[gid].i[ 3];
801 w1[0] = pws[gid].i[ 4];
802 w1[1] = pws[gid].i[ 5];
803 w1[2] = pws[gid].i[ 6];
804 w1[3] = pws[gid].i[ 7];
817 w3[2] = pws[gid].i[14];
820 const u32 pw_len = pws[gid].pw_len;
826 m03800s (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);
829 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m03800_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)
835 const u32 gid = get_global_id (0);
837 if (gid >= gid_max) return;
843 const u32 lid = get_local_id (0);
847 w0[0] = pws[gid].i[ 0];
848 w0[1] = pws[gid].i[ 1];
849 w0[2] = pws[gid].i[ 2];
850 w0[3] = pws[gid].i[ 3];
854 w1[0] = pws[gid].i[ 4];
855 w1[1] = pws[gid].i[ 5];
856 w1[2] = pws[gid].i[ 6];
857 w1[3] = pws[gid].i[ 7];
861 w2[0] = pws[gid].i[ 8];
862 w2[1] = pws[gid].i[ 9];
863 w2[2] = pws[gid].i[10];
864 w2[3] = pws[gid].i[11];
868 w3[0] = pws[gid].i[12];
869 w3[1] = pws[gid].i[13];
870 w3[2] = pws[gid].i[14];
871 w3[3] = pws[gid].i[15];
873 const u32 pw_len = pws[gid].pw_len;
879 m03800s (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);