2 * Author......: Jens Steube <jens.steube@gmail.com>
10 #include "include/constants.h"
11 #include "include/kernel_vendor.h"
18 #include "include/kernel_functions.c"
19 #include "OpenCL/types_ocl.c"
20 #include "OpenCL/common.c"
21 #include "OpenCL/simd.c"
23 static void m00040m (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);
38 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
39 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
40 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
41 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
45 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
46 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
47 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
48 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
64 const u32 salt_len = salt_bufs[salt_pos].salt_len;
66 const u32 pw_salt_len = pw_len + salt_len;
94 switch_buffer_by_offset_le_S (w0_t, w1_t, w2_t, w3_t, salt_len);
96 w0_t[0] |= salt_buf0[0];
97 w0_t[1] |= salt_buf0[1];
98 w0_t[2] |= salt_buf0[2];
99 w0_t[3] |= salt_buf0[3];
100 w1_t[0] |= salt_buf1[0];
101 w1_t[1] |= salt_buf1[1];
102 w1_t[2] |= salt_buf1[2];
103 w1_t[3] |= salt_buf1[3];
104 w2_t[0] |= salt_buf2[0];
105 w2_t[1] |= salt_buf2[1];
106 w2_t[2] |= salt_buf2[2];
107 w2_t[3] |= salt_buf2[3];
108 w3_t[0] |= salt_buf3[0];
109 w3_t[1] |= salt_buf3[1];
110 w3_t[2] |= salt_buf3[2];
111 w3_t[3] |= salt_buf3[3];
119 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos += VECT_SIZE)
121 const u32x w0r = w0r_create_bft (bfs_buf, il_pos);
123 const u32x w0lr = w0l | w0r;
144 overwrite_at_le (wx, w0lr, salt_len);
165 w3_t[2] = pw_salt_len * 8;
179 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
180 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
181 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
182 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
183 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
184 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
185 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
186 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
187 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
188 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
189 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
190 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
191 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
192 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
193 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
194 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
196 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
197 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
198 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
199 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
200 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
201 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
202 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
203 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
204 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
205 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
206 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
207 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
208 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
209 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
210 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
211 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
213 MD5_STEP (MD5_H1, a, b, c, d, w1_t[1], MD5C20, MD5S20);
214 MD5_STEP (MD5_H2, d, a, b, c, w2_t[0], MD5C21, MD5S21);
215 MD5_STEP (MD5_H1, c, d, a, b, w2_t[3], MD5C22, MD5S22);
216 MD5_STEP (MD5_H2, b, c, d, a, w3_t[2], MD5C23, MD5S23);
217 MD5_STEP (MD5_H1, a, b, c, d, w0_t[1], MD5C24, MD5S20);
218 MD5_STEP (MD5_H2, d, a, b, c, w1_t[0], MD5C25, MD5S21);
219 MD5_STEP (MD5_H1, c, d, a, b, w1_t[3], MD5C26, MD5S22);
220 MD5_STEP (MD5_H2, b, c, d, a, w2_t[2], MD5C27, MD5S23);
221 MD5_STEP (MD5_H1, a, b, c, d, w3_t[1], MD5C28, MD5S20);
222 MD5_STEP (MD5_H2, d, a, b, c, w0_t[0], MD5C29, MD5S21);
223 MD5_STEP (MD5_H1, c, d, a, b, w0_t[3], MD5C2a, MD5S22);
224 MD5_STEP (MD5_H2, b, c, d, a, w1_t[2], MD5C2b, MD5S23);
225 MD5_STEP (MD5_H1, a, b, c, d, w2_t[1], MD5C2c, MD5S20);
226 MD5_STEP (MD5_H2, d, a, b, c, w3_t[0], MD5C2d, MD5S21);
227 MD5_STEP (MD5_H1, c, d, a, b, w3_t[3], MD5C2e, MD5S22);
228 MD5_STEP (MD5_H2, b, c, d, a, w0_t[2], MD5C2f, MD5S23);
230 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
231 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
232 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
233 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
234 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
235 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
236 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
237 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
238 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
239 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
240 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
241 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
242 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
243 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
244 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
245 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
247 COMPARE_M_SIMD (a, d, c, b);
251 static void m00040s (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)
257 const u32 gid = get_global_id (0);
258 const u32 lid = get_local_id (0);
264 const u32 search[4] =
266 digests_buf[digests_offset].digest_buf[DGST_R0],
267 digests_buf[digests_offset].digest_buf[DGST_R1],
268 digests_buf[digests_offset].digest_buf[DGST_R2],
269 digests_buf[digests_offset].digest_buf[DGST_R3]
278 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
279 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
280 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
281 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
285 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
286 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
287 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
288 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
304 const u32 salt_len = salt_bufs[salt_pos].salt_len;
306 const u32 pw_salt_len = pw_len + salt_len;
334 switch_buffer_by_offset_le_S (w0_t, w1_t, w2_t, w3_t, salt_len);
336 w0_t[0] |= salt_buf0[0];
337 w0_t[1] |= salt_buf0[1];
338 w0_t[2] |= salt_buf0[2];
339 w0_t[3] |= salt_buf0[3];
340 w1_t[0] |= salt_buf1[0];
341 w1_t[1] |= salt_buf1[1];
342 w1_t[2] |= salt_buf1[2];
343 w1_t[3] |= salt_buf1[3];
344 w2_t[0] |= salt_buf2[0];
345 w2_t[1] |= salt_buf2[1];
346 w2_t[2] |= salt_buf2[2];
347 w2_t[3] |= salt_buf2[3];
348 w3_t[0] |= salt_buf3[0];
349 w3_t[1] |= salt_buf3[1];
350 w3_t[2] |= salt_buf3[2];
351 w3_t[3] |= salt_buf3[3];
359 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos += VECT_SIZE)
361 const u32x w0r = w0r_create_bft (bfs_buf, il_pos);
363 const u32x w0lr = w0l | w0r;
384 overwrite_at_le (wx, w0lr, salt_len);
405 w3_t[2] = pw_salt_len * 8;
419 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
420 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
421 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
422 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
423 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
424 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
425 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
426 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
427 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
428 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
429 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
430 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
431 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
432 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
433 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
434 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
436 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
437 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
438 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
439 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
440 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
441 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
442 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
443 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
444 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
445 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
446 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
447 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
448 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
449 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
450 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
451 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
453 MD5_STEP (MD5_H1, a, b, c, d, w1_t[1], MD5C20, MD5S20);
454 MD5_STEP (MD5_H2, d, a, b, c, w2_t[0], MD5C21, MD5S21);
455 MD5_STEP (MD5_H1, c, d, a, b, w2_t[3], MD5C22, MD5S22);
456 MD5_STEP (MD5_H2, b, c, d, a, w3_t[2], MD5C23, MD5S23);
457 MD5_STEP (MD5_H1, a, b, c, d, w0_t[1], MD5C24, MD5S20);
458 MD5_STEP (MD5_H2, d, a, b, c, w1_t[0], MD5C25, MD5S21);
459 MD5_STEP (MD5_H1, c, d, a, b, w1_t[3], MD5C26, MD5S22);
460 MD5_STEP (MD5_H2, b, c, d, a, w2_t[2], MD5C27, MD5S23);
461 MD5_STEP (MD5_H1, a, b, c, d, w3_t[1], MD5C28, MD5S20);
462 MD5_STEP (MD5_H2, d, a, b, c, w0_t[0], MD5C29, MD5S21);
463 MD5_STEP (MD5_H1, c, d, a, b, w0_t[3], MD5C2a, MD5S22);
464 MD5_STEP (MD5_H2, b, c, d, a, w1_t[2], MD5C2b, MD5S23);
465 MD5_STEP (MD5_H1, a, b, c, d, w2_t[1], MD5C2c, MD5S20);
466 MD5_STEP (MD5_H2, d, a, b, c, w3_t[0], MD5C2d, MD5S21);
467 MD5_STEP (MD5_H1, c, d, a, b, w3_t[3], MD5C2e, MD5S22);
468 MD5_STEP (MD5_H2, b, c, d, a, w0_t[2], MD5C2f, MD5S23);
470 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
471 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
472 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
473 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
474 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
475 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
476 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
477 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
478 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
479 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
480 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
481 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
482 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
484 if (MATCHES_NONE_VS (a, search[0])) continue;
486 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
487 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
488 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
490 COMPARE_S_SIMD (a, d, c, b);
494 __kernel void m00040_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)
500 const u32 gid = get_global_id (0);
502 if (gid >= gid_max) return;
506 w0[0] = pws[gid].i[ 0];
507 w0[1] = pws[gid].i[ 1];
508 w0[2] = pws[gid].i[ 2];
509 w0[3] = pws[gid].i[ 3];
532 const u32 pw_len = pws[gid].pw_len;
538 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);
541 __kernel void m00040_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)
547 const u32 gid = get_global_id (0);
549 if (gid >= gid_max) return;
553 w0[0] = pws[gid].i[ 0];
554 w0[1] = pws[gid].i[ 1];
555 w0[2] = pws[gid].i[ 2];
556 w0[3] = pws[gid].i[ 3];
560 w1[0] = pws[gid].i[ 4];
561 w1[1] = pws[gid].i[ 5];
562 w1[2] = pws[gid].i[ 6];
563 w1[3] = pws[gid].i[ 7];
579 const u32 pw_len = pws[gid].pw_len;
585 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);
588 __kernel void m00040_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)
594 const u32 gid = get_global_id (0);
596 if (gid >= gid_max) return;
600 w0[0] = pws[gid].i[ 0];
601 w0[1] = pws[gid].i[ 1];
602 w0[2] = pws[gid].i[ 2];
603 w0[3] = pws[gid].i[ 3];
607 w1[0] = pws[gid].i[ 4];
608 w1[1] = pws[gid].i[ 5];
609 w1[2] = pws[gid].i[ 6];
610 w1[3] = pws[gid].i[ 7];
614 w2[0] = pws[gid].i[ 8];
615 w2[1] = pws[gid].i[ 9];
616 w2[2] = pws[gid].i[10];
617 w2[3] = pws[gid].i[11];
621 w3[0] = pws[gid].i[12];
622 w3[1] = pws[gid].i[13];
626 const u32 pw_len = pws[gid].pw_len;
632 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);
635 __kernel void m00040_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)
641 const u32 gid = get_global_id (0);
643 if (gid >= gid_max) return;
647 w0[0] = pws[gid].i[ 0];
648 w0[1] = pws[gid].i[ 1];
649 w0[2] = pws[gid].i[ 2];
650 w0[3] = pws[gid].i[ 3];
673 const u32 pw_len = pws[gid].pw_len;
679 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);
682 __kernel void m00040_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)
688 const u32 gid = get_global_id (0);
690 if (gid >= gid_max) return;
694 w0[0] = pws[gid].i[ 0];
695 w0[1] = pws[gid].i[ 1];
696 w0[2] = pws[gid].i[ 2];
697 w0[3] = pws[gid].i[ 3];
701 w1[0] = pws[gid].i[ 4];
702 w1[1] = pws[gid].i[ 5];
703 w1[2] = pws[gid].i[ 6];
704 w1[3] = pws[gid].i[ 7];
720 const u32 pw_len = pws[gid].pw_len;
726 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);
729 __kernel void m00040_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)
735 const u32 gid = get_global_id (0);
737 if (gid >= gid_max) return;
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];
748 w1[0] = pws[gid].i[ 4];
749 w1[1] = pws[gid].i[ 5];
750 w1[2] = pws[gid].i[ 6];
751 w1[3] = pws[gid].i[ 7];
755 w2[0] = pws[gid].i[ 8];
756 w2[1] = pws[gid].i[ 9];
757 w2[2] = pws[gid].i[10];
758 w2[3] = pws[gid].i[11];
762 w3[0] = pws[gid].i[12];
763 w3[1] = pws[gid].i[13];
767 const u32 pw_len = pws[gid].pw_len;
773 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);