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 m00020m (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 = ix_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;
177 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
178 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
179 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
180 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
181 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
182 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
183 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
184 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
185 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
186 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
187 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
188 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
189 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
190 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
191 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
192 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
194 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
195 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
196 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
197 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
198 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
199 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
200 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
201 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
202 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
203 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
204 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
205 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
206 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
207 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
208 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
209 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
211 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
212 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
213 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
214 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
215 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
216 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
217 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
218 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
219 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
220 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
221 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
222 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
223 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
224 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
225 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
226 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
228 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
229 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
230 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
231 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
232 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
233 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
234 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
235 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
236 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
237 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
238 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
239 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
240 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
241 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
242 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
243 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
245 COMPARE_M_SIMD (a, d, c, b);
249 static void m00020s (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)
255 const u32 gid = get_global_id (0);
256 const u32 lid = get_local_id (0);
262 const u32 search[4] =
264 digests_buf[digests_offset].digest_buf[DGST_R0],
265 digests_buf[digests_offset].digest_buf[DGST_R1],
266 digests_buf[digests_offset].digest_buf[DGST_R2],
267 digests_buf[digests_offset].digest_buf[DGST_R3]
276 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
277 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
278 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
279 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
283 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
284 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
285 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
286 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
302 const u32 salt_len = salt_bufs[salt_pos].salt_len;
304 const u32 pw_salt_len = pw_len + salt_len;
332 switch_buffer_by_offset_le_S (w0_t, w1_t, w2_t, w3_t, salt_len);
334 w0_t[0] |= salt_buf0[0];
335 w0_t[1] |= salt_buf0[1];
336 w0_t[2] |= salt_buf0[2];
337 w0_t[3] |= salt_buf0[3];
338 w1_t[0] |= salt_buf1[0];
339 w1_t[1] |= salt_buf1[1];
340 w1_t[2] |= salt_buf1[2];
341 w1_t[3] |= salt_buf1[3];
342 w2_t[0] |= salt_buf2[0];
343 w2_t[1] |= salt_buf2[1];
344 w2_t[2] |= salt_buf2[2];
345 w2_t[3] |= salt_buf2[3];
346 w3_t[0] |= salt_buf3[0];
347 w3_t[1] |= salt_buf3[1];
348 w3_t[2] |= salt_buf3[2];
349 w3_t[3] |= salt_buf3[3];
357 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos += VECT_SIZE)
359 const u32x w0r = ix_create_bft (bfs_buf, il_pos);
361 const u32x w0lr = w0l | w0r;
382 overwrite_at_le (wx, w0lr, salt_len);
403 w3_t[2] = pw_salt_len * 8;
415 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
416 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
417 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
418 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
419 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
420 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
421 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
422 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
423 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
424 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
425 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
426 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
427 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
428 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
429 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
430 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
432 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
433 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
434 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
435 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
436 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
437 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
438 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
439 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
440 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
441 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
442 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
443 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
444 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
445 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
446 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
447 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
449 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
450 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
451 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
452 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
453 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
454 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
455 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
456 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
457 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
458 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
459 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
460 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
461 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
462 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
463 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
464 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
466 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
467 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
468 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
469 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
470 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
471 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
472 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
473 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
474 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
475 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
476 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
477 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
478 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
480 if (MATCHES_NONE_VS (a, search[0])) continue;
482 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
483 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
484 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
486 COMPARE_S_SIMD (a, d, c, b);
490 __kernel void m00020_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)
496 const u32 gid = get_global_id (0);
498 if (gid >= gid_max) return;
502 w0[0] = pws[gid].i[ 0];
503 w0[1] = pws[gid].i[ 1];
504 w0[2] = pws[gid].i[ 2];
505 w0[3] = pws[gid].i[ 3];
528 const u32 pw_len = pws[gid].pw_len;
534 m00020m (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);
537 __kernel void m00020_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)
543 const u32 gid = get_global_id (0);
545 if (gid >= gid_max) return;
549 w0[0] = pws[gid].i[ 0];
550 w0[1] = pws[gid].i[ 1];
551 w0[2] = pws[gid].i[ 2];
552 w0[3] = pws[gid].i[ 3];
556 w1[0] = pws[gid].i[ 4];
557 w1[1] = pws[gid].i[ 5];
558 w1[2] = pws[gid].i[ 6];
559 w1[3] = pws[gid].i[ 7];
575 const u32 pw_len = pws[gid].pw_len;
581 m00020m (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);
584 __kernel void m00020_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)
590 const u32 gid = get_global_id (0);
592 if (gid >= gid_max) return;
596 w0[0] = pws[gid].i[ 0];
597 w0[1] = pws[gid].i[ 1];
598 w0[2] = pws[gid].i[ 2];
599 w0[3] = pws[gid].i[ 3];
603 w1[0] = pws[gid].i[ 4];
604 w1[1] = pws[gid].i[ 5];
605 w1[2] = pws[gid].i[ 6];
606 w1[3] = pws[gid].i[ 7];
610 w2[0] = pws[gid].i[ 8];
611 w2[1] = pws[gid].i[ 9];
612 w2[2] = pws[gid].i[10];
613 w2[3] = pws[gid].i[11];
617 w3[0] = pws[gid].i[12];
618 w3[1] = pws[gid].i[13];
622 const u32 pw_len = pws[gid].pw_len;
628 m00020m (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);
631 __kernel void m00020_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)
637 const u32 gid = get_global_id (0);
639 if (gid >= gid_max) return;
643 w0[0] = pws[gid].i[ 0];
644 w0[1] = pws[gid].i[ 1];
645 w0[2] = pws[gid].i[ 2];
646 w0[3] = pws[gid].i[ 3];
669 const u32 pw_len = pws[gid].pw_len;
675 m00020s (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);
678 __kernel void m00020_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)
684 const u32 gid = get_global_id (0);
686 if (gid >= gid_max) return;
690 w0[0] = pws[gid].i[ 0];
691 w0[1] = pws[gid].i[ 1];
692 w0[2] = pws[gid].i[ 2];
693 w0[3] = pws[gid].i[ 3];
697 w1[0] = pws[gid].i[ 4];
698 w1[1] = pws[gid].i[ 5];
699 w1[2] = pws[gid].i[ 6];
700 w1[3] = pws[gid].i[ 7];
716 const u32 pw_len = pws[gid].pw_len;
722 m00020s (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);
725 __kernel void m00020_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)
731 const u32 gid = get_global_id (0);
733 if (gid >= gid_max) return;
737 w0[0] = pws[gid].i[ 0];
738 w0[1] = pws[gid].i[ 1];
739 w0[2] = pws[gid].i[ 2];
740 w0[3] = pws[gid].i[ 3];
744 w1[0] = pws[gid].i[ 4];
745 w1[1] = pws[gid].i[ 5];
746 w1[2] = pws[gid].i[ 6];
747 w1[3] = pws[gid].i[ 7];
751 w2[0] = pws[gid].i[ 8];
752 w2[1] = pws[gid].i[ 9];
753 w2[2] = pws[gid].i[10];
754 w2[3] = pws[gid].i[11];
758 w3[0] = pws[gid].i[12];
759 w3[1] = pws[gid].i[13];
763 const u32 pw_len = pws[gid].pw_len;
769 m00020s (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);