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 il_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;
66 const u32 w0l = w0[0];
68 switch_buffer_by_offset_le_S (w0, w1, w2, w3, salt_len);
70 w0[0] |= salt_buf0[0];
71 w0[1] |= salt_buf0[1];
72 w0[2] |= salt_buf0[2];
73 w0[3] |= salt_buf0[3];
74 w1[0] |= salt_buf1[0];
75 w1[1] |= salt_buf1[1];
76 w1[2] |= salt_buf1[2];
77 w1[3] |= salt_buf1[3];
78 w2[0] |= salt_buf2[0];
79 w2[1] |= salt_buf2[1];
80 w2[2] |= salt_buf2[2];
81 w2[3] |= salt_buf2[3];
82 w3[0] |= salt_buf3[0];
83 w3[1] |= salt_buf3[1];
84 w3[2] |= salt_buf3[2];
85 w3[3] |= salt_buf3[3];
106 t3[2] = pw_salt_len * 8;
113 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
115 const u32x w0r = ix_create_bft (bfs_buf, il_pos);
117 const u32x w0lr = w0l | w0r;
119 overwrite_at_le_4x4 (t0, t1, t2, t3, w0lr, salt_len);
130 MD5_STEP (MD5_Fo, a, b, c, d, t0[0], MD5C00, MD5S00);
131 MD5_STEP (MD5_Fo, d, a, b, c, t0[1], MD5C01, MD5S01);
132 MD5_STEP (MD5_Fo, c, d, a, b, t0[2], MD5C02, MD5S02);
133 MD5_STEP (MD5_Fo, b, c, d, a, t0[3], MD5C03, MD5S03);
134 MD5_STEP (MD5_Fo, a, b, c, d, t1[0], MD5C04, MD5S00);
135 MD5_STEP (MD5_Fo, d, a, b, c, t1[1], MD5C05, MD5S01);
136 MD5_STEP (MD5_Fo, c, d, a, b, t1[2], MD5C06, MD5S02);
137 MD5_STEP (MD5_Fo, b, c, d, a, t1[3], MD5C07, MD5S03);
138 MD5_STEP (MD5_Fo, a, b, c, d, t2[0], MD5C08, MD5S00);
139 MD5_STEP (MD5_Fo, d, a, b, c, t2[1], MD5C09, MD5S01);
140 MD5_STEP (MD5_Fo, c, d, a, b, t2[2], MD5C0a, MD5S02);
141 MD5_STEP (MD5_Fo, b, c, d, a, t2[3], MD5C0b, MD5S03);
142 MD5_STEP (MD5_Fo, a, b, c, d, t3[0], MD5C0c, MD5S00);
143 MD5_STEP (MD5_Fo, d, a, b, c, t3[1], MD5C0d, MD5S01);
144 MD5_STEP (MD5_Fo, c, d, a, b, t3[2], MD5C0e, MD5S02);
145 MD5_STEP (MD5_Fo, b, c, d, a, t3[3], MD5C0f, MD5S03);
147 MD5_STEP (MD5_Go, a, b, c, d, t0[1], MD5C10, MD5S10);
148 MD5_STEP (MD5_Go, d, a, b, c, t1[2], MD5C11, MD5S11);
149 MD5_STEP (MD5_Go, c, d, a, b, t2[3], MD5C12, MD5S12);
150 MD5_STEP (MD5_Go, b, c, d, a, t0[0], MD5C13, MD5S13);
151 MD5_STEP (MD5_Go, a, b, c, d, t1[1], MD5C14, MD5S10);
152 MD5_STEP (MD5_Go, d, a, b, c, t2[2], MD5C15, MD5S11);
153 MD5_STEP (MD5_Go, c, d, a, b, t3[3], MD5C16, MD5S12);
154 MD5_STEP (MD5_Go, b, c, d, a, t1[0], MD5C17, MD5S13);
155 MD5_STEP (MD5_Go, a, b, c, d, t2[1], MD5C18, MD5S10);
156 MD5_STEP (MD5_Go, d, a, b, c, t3[2], MD5C19, MD5S11);
157 MD5_STEP (MD5_Go, c, d, a, b, t0[3], MD5C1a, MD5S12);
158 MD5_STEP (MD5_Go, b, c, d, a, t2[0], MD5C1b, MD5S13);
159 MD5_STEP (MD5_Go, a, b, c, d, t3[1], MD5C1c, MD5S10);
160 MD5_STEP (MD5_Go, d, a, b, c, t0[2], MD5C1d, MD5S11);
161 MD5_STEP (MD5_Go, c, d, a, b, t1[3], MD5C1e, MD5S12);
162 MD5_STEP (MD5_Go, b, c, d, a, t3[0], MD5C1f, MD5S13);
164 MD5_STEP (MD5_H , a, b, c, d, t1[1], MD5C20, MD5S20);
165 MD5_STEP (MD5_H , d, a, b, c, t2[0], MD5C21, MD5S21);
166 MD5_STEP (MD5_H , c, d, a, b, t2[3], MD5C22, MD5S22);
167 MD5_STEP (MD5_H , b, c, d, a, t3[2], MD5C23, MD5S23);
168 MD5_STEP (MD5_H , a, b, c, d, t0[1], MD5C24, MD5S20);
169 MD5_STEP (MD5_H , d, a, b, c, t1[0], MD5C25, MD5S21);
170 MD5_STEP (MD5_H , c, d, a, b, t1[3], MD5C26, MD5S22);
171 MD5_STEP (MD5_H , b, c, d, a, t2[2], MD5C27, MD5S23);
172 MD5_STEP (MD5_H , a, b, c, d, t3[1], MD5C28, MD5S20);
173 MD5_STEP (MD5_H , d, a, b, c, t0[0], MD5C29, MD5S21);
174 MD5_STEP (MD5_H , c, d, a, b, t0[3], MD5C2a, MD5S22);
175 MD5_STEP (MD5_H , b, c, d, a, t1[2], MD5C2b, MD5S23);
176 MD5_STEP (MD5_H , a, b, c, d, t2[1], MD5C2c, MD5S20);
177 MD5_STEP (MD5_H , d, a, b, c, t3[0], MD5C2d, MD5S21);
178 MD5_STEP (MD5_H , c, d, a, b, t3[3], MD5C2e, MD5S22);
179 MD5_STEP (MD5_H , b, c, d, a, t0[2], MD5C2f, MD5S23);
181 MD5_STEP (MD5_I , a, b, c, d, t0[0], MD5C30, MD5S30);
182 MD5_STEP (MD5_I , d, a, b, c, t1[3], MD5C31, MD5S31);
183 MD5_STEP (MD5_I , c, d, a, b, t3[2], MD5C32, MD5S32);
184 MD5_STEP (MD5_I , b, c, d, a, t1[1], MD5C33, MD5S33);
185 MD5_STEP (MD5_I , a, b, c, d, t3[0], MD5C34, MD5S30);
186 MD5_STEP (MD5_I , d, a, b, c, t0[3], MD5C35, MD5S31);
187 MD5_STEP (MD5_I , c, d, a, b, t2[2], MD5C36, MD5S32);
188 MD5_STEP (MD5_I , b, c, d, a, t0[1], MD5C37, MD5S33);
189 MD5_STEP (MD5_I , a, b, c, d, t2[0], MD5C38, MD5S30);
190 MD5_STEP (MD5_I , d, a, b, c, t3[3], MD5C39, MD5S31);
191 MD5_STEP (MD5_I , c, d, a, b, t1[2], MD5C3a, MD5S32);
192 MD5_STEP (MD5_I , b, c, d, a, t3[1], MD5C3b, MD5S33);
193 MD5_STEP (MD5_I , a, b, c, d, t1[0], MD5C3c, MD5S30);
194 MD5_STEP (MD5_I , d, a, b, c, t2[3], MD5C3d, MD5S31);
195 MD5_STEP (MD5_I , c, d, a, b, t0[2], MD5C3e, MD5S32);
196 MD5_STEP (MD5_I , b, c, d, a, t2[1], MD5C3f, MD5S33);
198 COMPARE_M_SIMD (a, d, c, b);
202 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 il_cnt, const u32 digests_cnt, const u32 digests_offset)
208 const u32 gid = get_global_id (0);
209 const u32 lid = get_local_id (0);
215 const u32 search[4] =
217 digests_buf[digests_offset].digest_buf[DGST_R0],
218 digests_buf[digests_offset].digest_buf[DGST_R1],
219 digests_buf[digests_offset].digest_buf[DGST_R2],
220 digests_buf[digests_offset].digest_buf[DGST_R3]
232 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
233 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
234 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
235 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
236 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
237 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
238 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
239 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
240 salt_buf2[0] = salt_bufs[salt_pos].salt_buf[ 8];
241 salt_buf2[1] = salt_bufs[salt_pos].salt_buf[ 9];
242 salt_buf2[2] = salt_bufs[salt_pos].salt_buf[10];
243 salt_buf2[3] = salt_bufs[salt_pos].salt_buf[11];
244 salt_buf3[0] = salt_bufs[salt_pos].salt_buf[12];
245 salt_buf3[1] = salt_bufs[salt_pos].salt_buf[13];
246 salt_buf3[2] = salt_bufs[salt_pos].salt_buf[14];
247 salt_buf3[3] = salt_bufs[salt_pos].salt_buf[15];
249 const u32 salt_len = salt_bufs[salt_pos].salt_len;
251 const u32 pw_salt_len = pw_len + salt_len;
257 const u32 w0l = w0[0];
259 switch_buffer_by_offset_le_S (w0, w1, w2, w3, salt_len);
261 w0[0] |= salt_buf0[0];
262 w0[1] |= salt_buf0[1];
263 w0[2] |= salt_buf0[2];
264 w0[3] |= salt_buf0[3];
265 w1[0] |= salt_buf1[0];
266 w1[1] |= salt_buf1[1];
267 w1[2] |= salt_buf1[2];
268 w1[3] |= salt_buf1[3];
269 w2[0] |= salt_buf2[0];
270 w2[1] |= salt_buf2[1];
271 w2[2] |= salt_buf2[2];
272 w2[3] |= salt_buf2[3];
273 w3[0] |= salt_buf3[0];
274 w3[1] |= salt_buf3[1];
275 w3[2] |= salt_buf3[2];
276 w3[3] |= salt_buf3[3];
297 t3[2] = pw_salt_len * 8;
304 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
306 const u32x w0r = ix_create_bft (bfs_buf, il_pos);
308 const u32x w0lr = w0l | w0r;
310 overwrite_at_le_4x4 (t0, t1, t2, t3, w0lr, salt_len);
321 MD5_STEP (MD5_Fo, a, b, c, d, t0[0], MD5C00, MD5S00);
322 MD5_STEP (MD5_Fo, d, a, b, c, t0[1], MD5C01, MD5S01);
323 MD5_STEP (MD5_Fo, c, d, a, b, t0[2], MD5C02, MD5S02);
324 MD5_STEP (MD5_Fo, b, c, d, a, t0[3], MD5C03, MD5S03);
325 MD5_STEP (MD5_Fo, a, b, c, d, t1[0], MD5C04, MD5S00);
326 MD5_STEP (MD5_Fo, d, a, b, c, t1[1], MD5C05, MD5S01);
327 MD5_STEP (MD5_Fo, c, d, a, b, t1[2], MD5C06, MD5S02);
328 MD5_STEP (MD5_Fo, b, c, d, a, t1[3], MD5C07, MD5S03);
329 MD5_STEP (MD5_Fo, a, b, c, d, t2[0], MD5C08, MD5S00);
330 MD5_STEP (MD5_Fo, d, a, b, c, t2[1], MD5C09, MD5S01);
331 MD5_STEP (MD5_Fo, c, d, a, b, t2[2], MD5C0a, MD5S02);
332 MD5_STEP (MD5_Fo, b, c, d, a, t2[3], MD5C0b, MD5S03);
333 MD5_STEP (MD5_Fo, a, b, c, d, t3[0], MD5C0c, MD5S00);
334 MD5_STEP (MD5_Fo, d, a, b, c, t3[1], MD5C0d, MD5S01);
335 MD5_STEP (MD5_Fo, c, d, a, b, t3[2], MD5C0e, MD5S02);
336 MD5_STEP (MD5_Fo, b, c, d, a, t3[3], MD5C0f, MD5S03);
338 MD5_STEP (MD5_Go, a, b, c, d, t0[1], MD5C10, MD5S10);
339 MD5_STEP (MD5_Go, d, a, b, c, t1[2], MD5C11, MD5S11);
340 MD5_STEP (MD5_Go, c, d, a, b, t2[3], MD5C12, MD5S12);
341 MD5_STEP (MD5_Go, b, c, d, a, t0[0], MD5C13, MD5S13);
342 MD5_STEP (MD5_Go, a, b, c, d, t1[1], MD5C14, MD5S10);
343 MD5_STEP (MD5_Go, d, a, b, c, t2[2], MD5C15, MD5S11);
344 MD5_STEP (MD5_Go, c, d, a, b, t3[3], MD5C16, MD5S12);
345 MD5_STEP (MD5_Go, b, c, d, a, t1[0], MD5C17, MD5S13);
346 MD5_STEP (MD5_Go, a, b, c, d, t2[1], MD5C18, MD5S10);
347 MD5_STEP (MD5_Go, d, a, b, c, t3[2], MD5C19, MD5S11);
348 MD5_STEP (MD5_Go, c, d, a, b, t0[3], MD5C1a, MD5S12);
349 MD5_STEP (MD5_Go, b, c, d, a, t2[0], MD5C1b, MD5S13);
350 MD5_STEP (MD5_Go, a, b, c, d, t3[1], MD5C1c, MD5S10);
351 MD5_STEP (MD5_Go, d, a, b, c, t0[2], MD5C1d, MD5S11);
352 MD5_STEP (MD5_Go, c, d, a, b, t1[3], MD5C1e, MD5S12);
353 MD5_STEP (MD5_Go, b, c, d, a, t3[0], MD5C1f, MD5S13);
355 MD5_STEP (MD5_H , a, b, c, d, t1[1], MD5C20, MD5S20);
356 MD5_STEP (MD5_H , d, a, b, c, t2[0], MD5C21, MD5S21);
357 MD5_STEP (MD5_H , c, d, a, b, t2[3], MD5C22, MD5S22);
358 MD5_STEP (MD5_H , b, c, d, a, t3[2], MD5C23, MD5S23);
359 MD5_STEP (MD5_H , a, b, c, d, t0[1], MD5C24, MD5S20);
360 MD5_STEP (MD5_H , d, a, b, c, t1[0], MD5C25, MD5S21);
361 MD5_STEP (MD5_H , c, d, a, b, t1[3], MD5C26, MD5S22);
362 MD5_STEP (MD5_H , b, c, d, a, t2[2], MD5C27, MD5S23);
363 MD5_STEP (MD5_H , a, b, c, d, t3[1], MD5C28, MD5S20);
364 MD5_STEP (MD5_H , d, a, b, c, t0[0], MD5C29, MD5S21);
365 MD5_STEP (MD5_H , c, d, a, b, t0[3], MD5C2a, MD5S22);
366 MD5_STEP (MD5_H , b, c, d, a, t1[2], MD5C2b, MD5S23);
367 MD5_STEP (MD5_H , a, b, c, d, t2[1], MD5C2c, MD5S20);
368 MD5_STEP (MD5_H , d, a, b, c, t3[0], MD5C2d, MD5S21);
369 MD5_STEP (MD5_H , c, d, a, b, t3[3], MD5C2e, MD5S22);
370 MD5_STEP (MD5_H , b, c, d, a, t0[2], MD5C2f, MD5S23);
372 MD5_STEP (MD5_I , a, b, c, d, t0[0], MD5C30, MD5S30);
373 MD5_STEP (MD5_I , d, a, b, c, t1[3], MD5C31, MD5S31);
374 MD5_STEP (MD5_I , c, d, a, b, t3[2], MD5C32, MD5S32);
375 MD5_STEP (MD5_I , b, c, d, a, t1[1], MD5C33, MD5S33);
376 MD5_STEP (MD5_I , a, b, c, d, t3[0], MD5C34, MD5S30);
377 MD5_STEP (MD5_I , d, a, b, c, t0[3], MD5C35, MD5S31);
378 MD5_STEP (MD5_I , c, d, a, b, t2[2], MD5C36, MD5S32);
379 MD5_STEP (MD5_I , b, c, d, a, t0[1], MD5C37, MD5S33);
380 MD5_STEP (MD5_I , a, b, c, d, t2[0], MD5C38, MD5S30);
381 MD5_STEP (MD5_I , d, a, b, c, t3[3], MD5C39, MD5S31);
382 MD5_STEP (MD5_I , c, d, a, b, t1[2], MD5C3a, MD5S32);
383 MD5_STEP (MD5_I , b, c, d, a, t3[1], MD5C3b, MD5S33);
384 MD5_STEP (MD5_I , a, b, c, d, t1[0], MD5C3c, MD5S30);
386 if (MATCHES_NONE_VS (a, search[0])) continue;
388 MD5_STEP (MD5_I , d, a, b, c, t2[3], MD5C3d, MD5S31);
389 MD5_STEP (MD5_I , c, d, a, b, t0[2], MD5C3e, MD5S32);
390 MD5_STEP (MD5_I , b, c, d, a, t2[1], MD5C3f, MD5S33);
392 COMPARE_S_SIMD (a, d, c, b);
396 __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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
402 const u32 gid = get_global_id (0);
404 if (gid >= gid_max) return;
408 w0[0] = pws[gid].i[ 0];
409 w0[1] = pws[gid].i[ 1];
410 w0[2] = pws[gid].i[ 2];
411 w0[3] = pws[gid].i[ 3];
434 const u32 pw_len = pws[gid].pw_len;
440 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, il_cnt, digests_cnt, digests_offset);
443 __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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
449 const u32 gid = get_global_id (0);
451 if (gid >= gid_max) return;
455 w0[0] = pws[gid].i[ 0];
456 w0[1] = pws[gid].i[ 1];
457 w0[2] = pws[gid].i[ 2];
458 w0[3] = pws[gid].i[ 3];
462 w1[0] = pws[gid].i[ 4];
463 w1[1] = pws[gid].i[ 5];
464 w1[2] = pws[gid].i[ 6];
465 w1[3] = pws[gid].i[ 7];
481 const u32 pw_len = pws[gid].pw_len;
487 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, il_cnt, digests_cnt, digests_offset);
490 __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 il_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];
509 w1[0] = pws[gid].i[ 4];
510 w1[1] = pws[gid].i[ 5];
511 w1[2] = pws[gid].i[ 6];
512 w1[3] = pws[gid].i[ 7];
516 w2[0] = pws[gid].i[ 8];
517 w2[1] = pws[gid].i[ 9];
518 w2[2] = pws[gid].i[10];
519 w2[3] = pws[gid].i[11];
523 w3[0] = pws[gid].i[12];
524 w3[1] = pws[gid].i[13];
528 const u32 pw_len = pws[gid].pw_len;
534 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, il_cnt, digests_cnt, digests_offset);
537 __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 il_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];
575 const u32 pw_len = pws[gid].pw_len;
581 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, il_cnt, digests_cnt, digests_offset);
584 __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 il_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];
622 const u32 pw_len = pws[gid].pw_len;
628 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, il_cnt, digests_cnt, digests_offset);
631 __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 il_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];
650 w1[0] = pws[gid].i[ 4];
651 w1[1] = pws[gid].i[ 5];
652 w1[2] = pws[gid].i[ 6];
653 w1[3] = pws[gid].i[ 7];
657 w2[0] = pws[gid].i[ 8];
658 w2[1] = pws[gid].i[ 9];
659 w2[2] = pws[gid].i[10];
660 w2[3] = pws[gid].i[11];
664 w3[0] = pws[gid].i[12];
665 w3[1] = pws[gid].i[13];
669 const u32 pw_len = pws[gid].pw_len;
675 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, il_cnt, digests_cnt, digests_offset);