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);
41 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
42 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
43 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
44 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];
49 salt_buf2[0] = salt_bufs[salt_pos].salt_buf[ 8];
50 salt_buf2[1] = salt_bufs[salt_pos].salt_buf[ 9];
51 salt_buf2[2] = salt_bufs[salt_pos].salt_buf[10];
52 salt_buf2[3] = salt_bufs[salt_pos].salt_buf[11];
53 salt_buf3[0] = salt_bufs[salt_pos].salt_buf[12];
54 salt_buf3[1] = salt_bufs[salt_pos].salt_buf[13];
55 salt_buf3[2] = salt_bufs[salt_pos].salt_buf[14];
56 salt_buf3[3] = salt_bufs[salt_pos].salt_buf[15];
58 const u32 salt_len = salt_bufs[salt_pos].salt_len;
60 const u32 pw_salt_len = pw_len + salt_len;
88 switch_buffer_by_offset_le_S (w0_t, w1_t, w2_t, w3_t, salt_len);
90 w0_t[0] |= salt_buf0[0];
91 w0_t[1] |= salt_buf0[1];
92 w0_t[2] |= salt_buf0[2];
93 w0_t[3] |= salt_buf0[3];
94 w1_t[0] |= salt_buf1[0];
95 w1_t[1] |= salt_buf1[1];
96 w1_t[2] |= salt_buf1[2];
97 w1_t[3] |= salt_buf1[3];
98 w2_t[0] |= salt_buf2[0];
99 w2_t[1] |= salt_buf2[1];
100 w2_t[2] |= salt_buf2[2];
101 w2_t[3] |= salt_buf2[3];
102 w3_t[0] |= salt_buf3[0];
103 w3_t[1] |= salt_buf3[1];
104 w3_t[2] |= salt_buf3[2];
105 w3_t[3] |= salt_buf3[3];
113 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos += VECT_SIZE)
115 const u32x w0r = ix_create_bft (bfs_buf, il_pos);
117 const u32x w0lr = w0l | w0r;
138 overwrite_at_le (wx, w0lr, salt_len);
159 w3_t[2] = pw_salt_len * 8;
171 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
172 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
173 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
174 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
175 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
176 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
177 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
178 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
179 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
180 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
181 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
182 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
183 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
184 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
185 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
186 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
188 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
189 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
190 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
191 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
192 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
193 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
194 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
195 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
196 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
197 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
198 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
199 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
200 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
201 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
202 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
203 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
205 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
206 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
207 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
208 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
209 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
210 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
211 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
212 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
213 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
214 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
215 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
216 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
217 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
218 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
219 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
220 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
222 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
223 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
224 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
225 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
226 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
227 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
228 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
229 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
230 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
231 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
232 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
233 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
234 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
235 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
236 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
237 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
239 COMPARE_M_SIMD (a, d, c, b);
243 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)
249 const u32 gid = get_global_id (0);
250 const u32 lid = get_local_id (0);
256 const u32 search[4] =
258 digests_buf[digests_offset].digest_buf[DGST_R0],
259 digests_buf[digests_offset].digest_buf[DGST_R1],
260 digests_buf[digests_offset].digest_buf[DGST_R2],
261 digests_buf[digests_offset].digest_buf[DGST_R3]
273 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
274 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
275 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
276 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
277 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
278 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
279 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
280 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
281 salt_buf2[0] = salt_bufs[salt_pos].salt_buf[ 8];
282 salt_buf2[1] = salt_bufs[salt_pos].salt_buf[ 9];
283 salt_buf2[2] = salt_bufs[salt_pos].salt_buf[10];
284 salt_buf2[3] = salt_bufs[salt_pos].salt_buf[11];
285 salt_buf3[0] = salt_bufs[salt_pos].salt_buf[12];
286 salt_buf3[1] = salt_bufs[salt_pos].salt_buf[13];
287 salt_buf3[2] = salt_bufs[salt_pos].salt_buf[14];
288 salt_buf3[3] = salt_bufs[salt_pos].salt_buf[15];
290 const u32 salt_len = salt_bufs[salt_pos].salt_len;
292 const u32 pw_salt_len = pw_len + salt_len;
320 switch_buffer_by_offset_le_S (w0_t, w1_t, w2_t, w3_t, salt_len);
322 w0_t[0] |= salt_buf0[0];
323 w0_t[1] |= salt_buf0[1];
324 w0_t[2] |= salt_buf0[2];
325 w0_t[3] |= salt_buf0[3];
326 w1_t[0] |= salt_buf1[0];
327 w1_t[1] |= salt_buf1[1];
328 w1_t[2] |= salt_buf1[2];
329 w1_t[3] |= salt_buf1[3];
330 w2_t[0] |= salt_buf2[0];
331 w2_t[1] |= salt_buf2[1];
332 w2_t[2] |= salt_buf2[2];
333 w2_t[3] |= salt_buf2[3];
334 w3_t[0] |= salt_buf3[0];
335 w3_t[1] |= salt_buf3[1];
336 w3_t[2] |= salt_buf3[2];
337 w3_t[3] |= salt_buf3[3];
345 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos += VECT_SIZE)
347 const u32x w0r = ix_create_bft (bfs_buf, il_pos);
349 const u32x w0lr = w0l | w0r;
370 overwrite_at_le (wx, w0lr, salt_len);
391 w3_t[2] = pw_salt_len * 8;
403 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
404 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
405 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
406 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
407 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
408 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
409 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
410 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
411 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
412 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
413 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
414 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
415 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
416 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
417 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
418 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
420 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
421 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
422 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
423 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
424 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
425 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
426 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
427 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
428 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
429 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
430 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
431 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
432 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
433 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
434 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
435 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
437 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
438 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
439 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
440 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
441 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
442 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
443 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
444 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
445 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
446 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
447 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
448 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
449 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
450 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
451 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
452 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
454 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
455 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
456 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
457 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
458 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
459 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
460 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
461 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
462 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
463 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
464 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
465 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
466 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
468 if (MATCHES_NONE_VS (a, search[0])) continue;
470 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
471 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
472 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
474 COMPARE_S_SIMD (a, d, c, b);
478 __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)
484 const u32 gid = get_global_id (0);
486 if (gid >= gid_max) return;
490 w0[0] = pws[gid].i[ 0];
491 w0[1] = pws[gid].i[ 1];
492 w0[2] = pws[gid].i[ 2];
493 w0[3] = pws[gid].i[ 3];
516 const u32 pw_len = pws[gid].pw_len;
522 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);
525 __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)
531 const u32 gid = get_global_id (0);
533 if (gid >= gid_max) return;
537 w0[0] = pws[gid].i[ 0];
538 w0[1] = pws[gid].i[ 1];
539 w0[2] = pws[gid].i[ 2];
540 w0[3] = pws[gid].i[ 3];
544 w1[0] = pws[gid].i[ 4];
545 w1[1] = pws[gid].i[ 5];
546 w1[2] = pws[gid].i[ 6];
547 w1[3] = pws[gid].i[ 7];
563 const u32 pw_len = pws[gid].pw_len;
569 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);
572 __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)
578 const u32 gid = get_global_id (0);
580 if (gid >= gid_max) return;
584 w0[0] = pws[gid].i[ 0];
585 w0[1] = pws[gid].i[ 1];
586 w0[2] = pws[gid].i[ 2];
587 w0[3] = pws[gid].i[ 3];
591 w1[0] = pws[gid].i[ 4];
592 w1[1] = pws[gid].i[ 5];
593 w1[2] = pws[gid].i[ 6];
594 w1[3] = pws[gid].i[ 7];
598 w2[0] = pws[gid].i[ 8];
599 w2[1] = pws[gid].i[ 9];
600 w2[2] = pws[gid].i[10];
601 w2[3] = pws[gid].i[11];
605 w3[0] = pws[gid].i[12];
606 w3[1] = pws[gid].i[13];
610 const u32 pw_len = pws[gid].pw_len;
616 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);
619 __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)
625 const u32 gid = get_global_id (0);
627 if (gid >= gid_max) return;
631 w0[0] = pws[gid].i[ 0];
632 w0[1] = pws[gid].i[ 1];
633 w0[2] = pws[gid].i[ 2];
634 w0[3] = pws[gid].i[ 3];
657 const u32 pw_len = pws[gid].pw_len;
663 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);
666 __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)
672 const u32 gid = get_global_id (0);
674 if (gid >= gid_max) return;
678 w0[0] = pws[gid].i[ 0];
679 w0[1] = pws[gid].i[ 1];
680 w0[2] = pws[gid].i[ 2];
681 w0[3] = pws[gid].i[ 3];
685 w1[0] = pws[gid].i[ 4];
686 w1[1] = pws[gid].i[ 5];
687 w1[2] = pws[gid].i[ 6];
688 w1[3] = pws[gid].i[ 7];
704 const u32 pw_len = pws[gid].pw_len;
710 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);
713 __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)
719 const u32 gid = get_global_id (0);
721 if (gid >= gid_max) return;
725 w0[0] = pws[gid].i[ 0];
726 w0[1] = pws[gid].i[ 1];
727 w0[2] = pws[gid].i[ 2];
728 w0[3] = pws[gid].i[ 3];
732 w1[0] = pws[gid].i[ 4];
733 w1[1] = pws[gid].i[ 5];
734 w1[2] = pws[gid].i[ 6];
735 w1[3] = pws[gid].i[ 7];
739 w2[0] = pws[gid].i[ 8];
740 w2[1] = pws[gid].i[ 9];
741 w2[2] = pws[gid].i[10];
742 w2[3] = pws[gid].i[11];
746 w3[0] = pws[gid].i[12];
747 w3[1] = pws[gid].i[13];
751 const u32 pw_len = pws[gid].pw_len;
757 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);