2 * Author......: Jens Steube <jens.steube@gmail.com>
8 #include "include/constants.h"
9 #include "include/kernel_vendor.h"
16 #include "include/kernel_functions.c"
17 #include "OpenCL/types_ocl.c"
18 #include "OpenCL/common.c"
20 #define COMPARE_S "OpenCL/check_single_comp4.c"
21 #define COMPARE_M "OpenCL/check_multi_comp4.c"
23 static void m03800m (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_len, __global pw_t *pws, __global kernel_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)
29 const u32 gid = get_global_id (0);
30 const u32 lid = get_local_id (0);
42 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
43 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
44 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
45 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
49 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
50 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
51 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
52 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
68 const u32 salt_len = salt_bufs[salt_pos].salt_len;
70 const u32 pw_salt_len = salt_len + pw_len + salt_len;
78 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
80 const u32 w0r = bfs_buf[il_pos].i;
117 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, salt_len);
119 w0_t[0] |= salt_buf0[0];
120 w0_t[1] |= salt_buf0[1];
121 w0_t[2] |= salt_buf0[2];
122 w0_t[3] |= salt_buf0[3];
123 w1_t[0] |= salt_buf1[0];
124 w1_t[1] |= salt_buf1[1];
125 w1_t[2] |= salt_buf1[2];
126 w1_t[3] |= salt_buf1[3];
127 w2_t[0] |= salt_buf2[0];
128 w2_t[1] |= salt_buf2[1];
129 w2_t[2] |= salt_buf2[2];
130 w2_t[3] |= salt_buf2[3];
131 w3_t[0] |= salt_buf3[0];
132 w3_t[1] |= salt_buf3[1];
133 w3_t[2] |= salt_buf3[2];
134 w3_t[3] |= salt_buf3[3];
142 s0[0] = salt_buf0[0];
143 s0[1] = salt_buf0[1];
144 s0[2] = salt_buf0[2];
145 s0[3] = salt_buf0[3];
149 s1[0] = salt_buf1[0];
150 s1[1] = salt_buf1[1];
151 s1[2] = salt_buf1[2];
152 s1[3] = salt_buf1[3];
168 switch_buffer_by_offset (s0, s1, s2, s3, salt_len + pw_len);
187 append_0x80_4x4 (w0_t, w1_t, w2_t, w3_t, pw_salt_len);
189 w3_t[2] = pw_salt_len * 8;
200 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
201 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
202 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
203 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
204 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
205 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
206 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
207 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
208 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
209 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
210 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
211 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
212 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
213 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
214 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
215 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
217 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
218 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
219 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
220 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
221 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
222 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
223 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
224 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
225 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
226 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
227 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
228 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
229 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
230 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
231 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
232 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
234 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
235 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
236 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
237 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
238 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
239 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
240 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
241 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
242 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
243 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
244 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
245 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
246 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
247 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
248 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
249 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
251 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
252 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
253 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
254 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
255 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
256 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
257 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
258 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
259 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
260 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
261 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
262 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
263 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
265 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
266 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
267 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
278 static void m03800s (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_len, __global pw_t *pws, __global kernel_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)
284 const u32 gid = get_global_id (0);
285 const u32 lid = get_local_id (0);
291 const u32 search[4] =
293 digests_buf[digests_offset].digest_buf[DGST_R0],
294 digests_buf[digests_offset].digest_buf[DGST_R1],
295 digests_buf[digests_offset].digest_buf[DGST_R2],
296 digests_buf[digests_offset].digest_buf[DGST_R3]
305 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
306 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
307 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
308 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
312 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
313 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
314 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
315 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
331 const u32 salt_len = salt_bufs[salt_pos].salt_len;
333 const u32 pw_salt_len = salt_len + pw_len + salt_len;
341 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
343 const u32 w0r = bfs_buf[il_pos].i;
380 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, salt_len);
382 w0_t[0] |= salt_buf0[0];
383 w0_t[1] |= salt_buf0[1];
384 w0_t[2] |= salt_buf0[2];
385 w0_t[3] |= salt_buf0[3];
386 w1_t[0] |= salt_buf1[0];
387 w1_t[1] |= salt_buf1[1];
388 w1_t[2] |= salt_buf1[2];
389 w1_t[3] |= salt_buf1[3];
390 w2_t[0] |= salt_buf2[0];
391 w2_t[1] |= salt_buf2[1];
392 w2_t[2] |= salt_buf2[2];
393 w2_t[3] |= salt_buf2[3];
394 w3_t[0] |= salt_buf3[0];
395 w3_t[1] |= salt_buf3[1];
396 w3_t[2] |= salt_buf3[2];
397 w3_t[3] |= salt_buf3[3];
405 s0[0] = salt_buf0[0];
406 s0[1] = salt_buf0[1];
407 s0[2] = salt_buf0[2];
408 s0[3] = salt_buf0[3];
412 s1[0] = salt_buf1[0];
413 s1[1] = salt_buf1[1];
414 s1[2] = salt_buf1[2];
415 s1[3] = salt_buf1[3];
431 switch_buffer_by_offset (s0, s1, s2, s3, salt_len + pw_len);
450 append_0x80_4x4 (w0_t, w1_t, w2_t, w3_t, pw_salt_len);
452 w3_t[2] = pw_salt_len * 8;
463 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
464 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
465 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
466 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
467 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
468 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
469 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
470 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
471 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
472 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
473 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
474 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
475 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
476 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
477 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
478 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
480 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
481 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
482 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
483 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
484 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
485 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
486 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
487 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
488 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
489 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
490 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
491 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
492 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
493 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
494 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
495 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
497 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
498 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
499 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
500 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
501 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
502 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
503 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
504 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
505 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
506 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
507 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
508 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
509 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
510 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
511 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
512 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
514 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
515 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
516 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
517 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
518 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
519 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
520 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
521 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
522 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
523 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
524 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
525 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
526 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
527 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
528 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
529 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
540 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m03800_m04 (__global pw_t *pws, __global kernel_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;
554 const u32 lid = get_local_id (0);
558 w0[0] = pws[gid].i[ 0];
559 w0[1] = pws[gid].i[ 1];
560 w0[2] = pws[gid].i[ 2];
561 w0[3] = pws[gid].i[ 3];
581 w3[2] = pws[gid].i[14];
584 const u32 pw_len = pws[gid].pw_len;
590 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);
593 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m03800_m08 (__global pw_t *pws, __global kernel_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)
599 const u32 gid = get_global_id (0);
601 if (gid >= gid_max) return;
607 const u32 lid = get_local_id (0);
611 w0[0] = pws[gid].i[ 0];
612 w0[1] = pws[gid].i[ 1];
613 w0[2] = pws[gid].i[ 2];
614 w0[3] = pws[gid].i[ 3];
618 w1[0] = pws[gid].i[ 4];
619 w1[1] = pws[gid].i[ 5];
620 w1[2] = pws[gid].i[ 6];
621 w1[3] = pws[gid].i[ 7];
634 w3[2] = pws[gid].i[14];
637 const u32 pw_len = pws[gid].pw_len;
643 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);
646 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m03800_m16 (__global pw_t *pws, __global kernel_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)
652 const u32 gid = get_global_id (0);
654 if (gid >= gid_max) return;
660 const u32 lid = get_local_id (0);
664 w0[0] = pws[gid].i[ 0];
665 w0[1] = pws[gid].i[ 1];
666 w0[2] = pws[gid].i[ 2];
667 w0[3] = pws[gid].i[ 3];
671 w1[0] = pws[gid].i[ 4];
672 w1[1] = pws[gid].i[ 5];
673 w1[2] = pws[gid].i[ 6];
674 w1[3] = pws[gid].i[ 7];
678 w2[0] = pws[gid].i[ 8];
679 w2[1] = pws[gid].i[ 9];
680 w2[2] = pws[gid].i[10];
681 w2[3] = pws[gid].i[11];
685 w3[0] = pws[gid].i[12];
686 w3[1] = pws[gid].i[13];
687 w3[2] = pws[gid].i[14];
688 w3[3] = pws[gid].i[15];
690 const u32 pw_len = pws[gid].pw_len;
696 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);
699 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m03800_s04 (__global pw_t *pws, __global kernel_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)
705 const u32 gid = get_global_id (0);
707 if (gid >= gid_max) return;
713 const u32 lid = get_local_id (0);
717 w0[0] = pws[gid].i[ 0];
718 w0[1] = pws[gid].i[ 1];
719 w0[2] = pws[gid].i[ 2];
720 w0[3] = pws[gid].i[ 3];
740 w3[2] = pws[gid].i[14];
743 const u32 pw_len = pws[gid].pw_len;
749 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);
752 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m03800_s08 (__global pw_t *pws, __global kernel_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)
758 const u32 gid = get_global_id (0);
760 if (gid >= gid_max) return;
766 const u32 lid = get_local_id (0);
770 w0[0] = pws[gid].i[ 0];
771 w0[1] = pws[gid].i[ 1];
772 w0[2] = pws[gid].i[ 2];
773 w0[3] = pws[gid].i[ 3];
777 w1[0] = pws[gid].i[ 4];
778 w1[1] = pws[gid].i[ 5];
779 w1[2] = pws[gid].i[ 6];
780 w1[3] = pws[gid].i[ 7];
793 w3[2] = pws[gid].i[14];
796 const u32 pw_len = pws[gid].pw_len;
802 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);
805 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m03800_s16 (__global pw_t *pws, __global kernel_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)
811 const u32 gid = get_global_id (0);
813 if (gid >= gid_max) return;
819 const u32 lid = get_local_id (0);
823 w0[0] = pws[gid].i[ 0];
824 w0[1] = pws[gid].i[ 1];
825 w0[2] = pws[gid].i[ 2];
826 w0[3] = pws[gid].i[ 3];
830 w1[0] = pws[gid].i[ 4];
831 w1[1] = pws[gid].i[ 5];
832 w1[2] = pws[gid].i[ 6];
833 w1[3] = pws[gid].i[ 7];
837 w2[0] = pws[gid].i[ 8];
838 w2[1] = pws[gid].i[ 9];
839 w2[2] = pws[gid].i[10];
840 w2[3] = pws[gid].i[11];
844 w3[0] = pws[gid].i[12];
845 w3[1] = pws[gid].i[13];
846 w3[2] = pws[gid].i[14];
847 w3[3] = pws[gid].i[15];
849 const u32 pw_len = pws[gid].pw_len;
855 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);