2 * Author......: Jens Steube <jens.steube@gmail.com>
10 #include "inc_vendor.cl"
11 #include "inc_hash_constants.h"
12 #include "inc_hash_functions.cl"
13 #include "inc_types.cl"
14 #include "inc_common.cl"
15 #include "inc_simd.cl"
18 #define uint_to_hex_lower8(i) (u32x) (l_bin2asc[(i)])
20 #define uint_to_hex_lower8(i) (u32x) (l_bin2asc[(i).s0], l_bin2asc[(i).s1])
22 #define uint_to_hex_lower8(i) (u32x) (l_bin2asc[(i).s0], l_bin2asc[(i).s1], l_bin2asc[(i).s2], l_bin2asc[(i).s3])
24 #define uint_to_hex_lower8(i) (u32x) (l_bin2asc[(i).s0], l_bin2asc[(i).s1], l_bin2asc[(i).s2], l_bin2asc[(i).s3], l_bin2asc[(i).s4], l_bin2asc[(i).s5], l_bin2asc[(i).s6], l_bin2asc[(i).s7])
26 #define uint_to_hex_lower8(i) (u32x) (l_bin2asc[(i).s0], l_bin2asc[(i).s1], l_bin2asc[(i).s2], l_bin2asc[(i).s3], l_bin2asc[(i).s4], l_bin2asc[(i).s5], l_bin2asc[(i).s6], l_bin2asc[(i).s7], l_bin2asc[(i).s8], l_bin2asc[(i).s9], l_bin2asc[(i).sa], l_bin2asc[(i).sb], l_bin2asc[(i).sc], l_bin2asc[(i).sd], l_bin2asc[(i).se], l_bin2asc[(i).sf])
29 __kernel void m03710_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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)
35 const u32 gid = get_global_id (0);
36 const u32 lid = get_local_id (0);
37 const u32 lsz = get_local_size (0);
43 __local u32 l_bin2asc[256];
45 for (u32 i = lid; i < 256; i += lsz)
47 const u32 i0 = (i >> 0) & 15;
48 const u32 i1 = (i >> 4) & 15;
50 l_bin2asc[i] = ((i0 < 10) ? '0' + i0 : 'a' - 10 + i0) << 8
51 | ((i1 < 10) ? '0' + i1 : 'a' - 10 + i1) << 0;
54 barrier (CLK_LOCAL_MEM_FENCE);
56 if (gid >= gid_max) return;
65 pw_buf0[0] = pws[gid].i[0];
66 pw_buf0[1] = pws[gid].i[1];
67 pw_buf0[2] = pws[gid].i[2];
68 pw_buf0[3] = pws[gid].i[3];
69 pw_buf1[0] = pws[gid].i[4];
70 pw_buf1[1] = pws[gid].i[5];
71 pw_buf1[2] = pws[gid].i[6];
72 pw_buf1[3] = pws[gid].i[7];
74 const u32 pw_l_len = pws[gid].pw_len;
85 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
86 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
87 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
88 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
89 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
90 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
91 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
92 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
93 salt_buf2[0] = salt_bufs[salt_pos].salt_buf[ 8];
94 salt_buf2[1] = salt_bufs[salt_pos].salt_buf[ 9];
95 salt_buf2[2] = salt_bufs[salt_pos].salt_buf[10];
96 salt_buf2[3] = salt_bufs[salt_pos].salt_buf[11];
97 salt_buf3[0] = salt_bufs[salt_pos].salt_buf[12];
98 salt_buf3[1] = salt_bufs[salt_pos].salt_buf[13];
99 salt_buf3[2] = salt_bufs[salt_pos].salt_buf[14];
100 salt_buf3[3] = salt_bufs[salt_pos].salt_buf[15];
102 const u32 salt_len = salt_bufs[salt_pos].salt_len;
104 const u32 pw_salt_len = 32 + salt_len;
110 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
112 const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos);
114 const u32x pw_len = pw_l_len + pw_r_len;
117 * concat password candidate
120 u32x wordl0[4] = { 0 };
121 u32x wordl1[4] = { 0 };
122 u32x wordl2[4] = { 0 };
123 u32x wordl3[4] = { 0 };
125 wordl0[0] = pw_buf0[0];
126 wordl0[1] = pw_buf0[1];
127 wordl0[2] = pw_buf0[2];
128 wordl0[3] = pw_buf0[3];
129 wordl1[0] = pw_buf1[0];
130 wordl1[1] = pw_buf1[1];
131 wordl1[2] = pw_buf1[2];
132 wordl1[3] = pw_buf1[3];
134 u32x wordr0[4] = { 0 };
135 u32x wordr1[4] = { 0 };
136 u32x wordr2[4] = { 0 };
137 u32x wordr3[4] = { 0 };
139 wordr0[0] = ix_create_combt (combs_buf, il_pos, 0);
140 wordr0[1] = ix_create_combt (combs_buf, il_pos, 1);
141 wordr0[2] = ix_create_combt (combs_buf, il_pos, 2);
142 wordr0[3] = ix_create_combt (combs_buf, il_pos, 3);
143 wordr1[0] = ix_create_combt (combs_buf, il_pos, 4);
144 wordr1[1] = ix_create_combt (combs_buf, il_pos, 5);
145 wordr1[2] = ix_create_combt (combs_buf, il_pos, 6);
146 wordr1[3] = ix_create_combt (combs_buf, il_pos, 7);
148 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
150 switch_buffer_by_offset_le_VV (wordr0, wordr1, wordr2, wordr3, pw_l_len);
154 switch_buffer_by_offset_le_VV (wordl0, wordl1, wordl2, wordl3, pw_r_len);
162 w0[0] = wordl0[0] | wordr0[0];
163 w0[1] = wordl0[1] | wordr0[1];
164 w0[2] = wordl0[2] | wordr0[2];
165 w0[3] = wordl0[3] | wordr0[3];
166 w1[0] = wordl1[0] | wordr1[0];
167 w1[1] = wordl1[1] | wordr1[1];
168 w1[2] = wordl1[2] | wordr1[2];
169 w1[3] = wordl1[3] | wordr1[3];
170 w2[0] = wordl2[0] | wordr2[0];
171 w2[1] = wordl2[1] | wordr2[1];
172 w2[2] = wordl2[2] | wordr2[2];
173 w2[3] = wordl2[3] | wordr2[3];
174 w3[0] = wordl3[0] | wordr3[0];
175 w3[1] = wordl3[1] | wordr3[1];
188 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
189 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
190 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
191 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
192 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
193 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
194 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
195 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
196 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
197 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
198 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
199 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
200 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
201 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
202 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
203 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
205 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
206 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
207 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
208 MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
209 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
210 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
211 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
212 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
213 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
214 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
215 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
216 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
217 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
218 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
219 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
220 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
222 MD5_STEP (MD5_H , a, b, c, d, w1[1], MD5C20, MD5S20);
223 MD5_STEP (MD5_H , d, a, b, c, w2[0], MD5C21, MD5S21);
224 MD5_STEP (MD5_H , c, d, a, b, w2[3], MD5C22, MD5S22);
225 MD5_STEP (MD5_H , b, c, d, a, w3[2], MD5C23, MD5S23);
226 MD5_STEP (MD5_H , a, b, c, d, w0[1], MD5C24, MD5S20);
227 MD5_STEP (MD5_H , d, a, b, c, w1[0], MD5C25, MD5S21);
228 MD5_STEP (MD5_H , c, d, a, b, w1[3], MD5C26, MD5S22);
229 MD5_STEP (MD5_H , b, c, d, a, w2[2], MD5C27, MD5S23);
230 MD5_STEP (MD5_H , a, b, c, d, w3[1], MD5C28, MD5S20);
231 MD5_STEP (MD5_H , d, a, b, c, w0[0], MD5C29, MD5S21);
232 MD5_STEP (MD5_H , c, d, a, b, w0[3], MD5C2a, MD5S22);
233 MD5_STEP (MD5_H , b, c, d, a, w1[2], MD5C2b, MD5S23);
234 MD5_STEP (MD5_H , a, b, c, d, w2[1], MD5C2c, MD5S20);
235 MD5_STEP (MD5_H , d, a, b, c, w3[0], MD5C2d, MD5S21);
236 MD5_STEP (MD5_H , c, d, a, b, w3[3], MD5C2e, MD5S22);
237 MD5_STEP (MD5_H , b, c, d, a, w0[2], MD5C2f, MD5S23);
239 MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
240 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
241 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
242 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
243 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
244 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
245 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
246 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
247 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
248 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
249 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
250 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
251 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
252 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
253 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
254 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
261 w0[0] = uint_to_hex_lower8 ((a >> 0) & 255) << 0
262 | uint_to_hex_lower8 ((a >> 8) & 255) << 16;
263 w0[1] = uint_to_hex_lower8 ((a >> 16) & 255) << 0
264 | uint_to_hex_lower8 ((a >> 24) & 255) << 16;
265 w0[2] = uint_to_hex_lower8 ((b >> 0) & 255) << 0
266 | uint_to_hex_lower8 ((b >> 8) & 255) << 16;
267 w0[3] = uint_to_hex_lower8 ((b >> 16) & 255) << 0
268 | uint_to_hex_lower8 ((b >> 24) & 255) << 16;
269 w1[0] = uint_to_hex_lower8 ((c >> 0) & 255) << 0
270 | uint_to_hex_lower8 ((c >> 8) & 255) << 16;
271 w1[1] = uint_to_hex_lower8 ((c >> 16) & 255) << 0
272 | uint_to_hex_lower8 ((c >> 24) & 255) << 16;
273 w1[2] = uint_to_hex_lower8 ((d >> 0) & 255) << 0
274 | uint_to_hex_lower8 ((d >> 8) & 255) << 16;
275 w1[3] = uint_to_hex_lower8 ((d >> 16) & 255) << 0
276 | uint_to_hex_lower8 ((d >> 24) & 255) << 16;
290 switch_buffer_by_offset_le (w0, w1, w2, w3, salt_len);
292 w3[2] = pw_salt_len * 8;
295 w0[0] |= salt_buf0[0];
296 w0[1] |= salt_buf0[1];
297 w0[2] |= salt_buf0[2];
298 w0[3] |= salt_buf0[3];
299 w1[0] |= salt_buf1[0];
300 w1[1] |= salt_buf1[1];
301 w1[2] |= salt_buf1[2];
302 w1[3] |= salt_buf1[3];
303 w2[0] |= salt_buf2[0];
304 w2[1] |= salt_buf2[1];
305 w2[2] |= salt_buf2[2];
306 w2[3] |= salt_buf2[3];
307 w3[0] |= salt_buf3[0];
308 w3[1] |= salt_buf3[1];
309 w3[2] |= salt_buf3[2];
310 w3[3] |= salt_buf3[3];
321 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
322 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
323 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
324 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
325 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
326 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
327 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
328 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
329 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
330 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
331 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
332 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
333 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
334 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
335 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
336 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
338 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
339 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
340 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
341 MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
342 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
343 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
344 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
345 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
346 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
347 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
348 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
349 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
350 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
351 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
352 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
353 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
355 MD5_STEP (MD5_H , a, b, c, d, w1[1], MD5C20, MD5S20);
356 MD5_STEP (MD5_H , d, a, b, c, w2[0], MD5C21, MD5S21);
357 MD5_STEP (MD5_H , c, d, a, b, w2[3], MD5C22, MD5S22);
358 MD5_STEP (MD5_H , b, c, d, a, w3[2], MD5C23, MD5S23);
359 MD5_STEP (MD5_H , a, b, c, d, w0[1], MD5C24, MD5S20);
360 MD5_STEP (MD5_H , d, a, b, c, w1[0], MD5C25, MD5S21);
361 MD5_STEP (MD5_H , c, d, a, b, w1[3], MD5C26, MD5S22);
362 MD5_STEP (MD5_H , b, c, d, a, w2[2], MD5C27, MD5S23);
363 MD5_STEP (MD5_H , a, b, c, d, w3[1], MD5C28, MD5S20);
364 MD5_STEP (MD5_H , d, a, b, c, w0[0], MD5C29, MD5S21);
365 MD5_STEP (MD5_H , c, d, a, b, w0[3], MD5C2a, MD5S22);
366 MD5_STEP (MD5_H , b, c, d, a, w1[2], MD5C2b, MD5S23);
367 MD5_STEP (MD5_H , a, b, c, d, w2[1], MD5C2c, MD5S20);
368 MD5_STEP (MD5_H , d, a, b, c, w3[0], MD5C2d, MD5S21);
369 MD5_STEP (MD5_H , c, d, a, b, w3[3], MD5C2e, MD5S22);
370 MD5_STEP (MD5_H , b, c, d, a, w0[2], MD5C2f, MD5S23);
372 MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
373 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
374 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
375 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
376 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
377 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
378 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
379 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
380 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
381 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
382 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
383 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
384 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
385 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
386 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
387 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
389 COMPARE_M_SIMD (a, d, c, b);
393 __kernel void m03710_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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)
397 __kernel void m03710_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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)
401 __kernel void m03710_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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)
407 const u32 gid = get_global_id (0);
408 const u32 lid = get_local_id (0);
409 const u32 lsz = get_local_size (0);
415 __local u32 l_bin2asc[256];
417 for (u32 i = lid; i < 256; i += lsz)
419 const u32 i0 = (i >> 0) & 15;
420 const u32 i1 = (i >> 4) & 15;
422 l_bin2asc[i] = ((i0 < 10) ? '0' + i0 : 'a' - 10 + i0) << 8
423 | ((i1 < 10) ? '0' + i1 : 'a' - 10 + i1) << 0;
426 barrier (CLK_LOCAL_MEM_FENCE);
428 if (gid >= gid_max) return;
437 pw_buf0[0] = pws[gid].i[0];
438 pw_buf0[1] = pws[gid].i[1];
439 pw_buf0[2] = pws[gid].i[2];
440 pw_buf0[3] = pws[gid].i[3];
441 pw_buf1[0] = pws[gid].i[4];
442 pw_buf1[1] = pws[gid].i[5];
443 pw_buf1[2] = pws[gid].i[6];
444 pw_buf1[3] = pws[gid].i[7];
446 const u32 pw_l_len = pws[gid].pw_len;
457 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 0];
458 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 1];
459 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 2];
460 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 3];
461 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 4];
462 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 5];
463 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 6];
464 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 7];
465 salt_buf2[0] = salt_bufs[salt_pos].salt_buf[ 8];
466 salt_buf2[1] = salt_bufs[salt_pos].salt_buf[ 9];
467 salt_buf2[2] = salt_bufs[salt_pos].salt_buf[10];
468 salt_buf2[3] = salt_bufs[salt_pos].salt_buf[11];
469 salt_buf3[0] = salt_bufs[salt_pos].salt_buf[12];
470 salt_buf3[1] = salt_bufs[salt_pos].salt_buf[13];
471 salt_buf3[2] = salt_bufs[salt_pos].salt_buf[14];
472 salt_buf3[3] = salt_bufs[salt_pos].salt_buf[15];
474 const u32 salt_len = salt_bufs[salt_pos].salt_len;
476 const u32 pw_salt_len = 32 + salt_len;
482 const u32 search[4] =
484 digests_buf[digests_offset].digest_buf[DGST_R0],
485 digests_buf[digests_offset].digest_buf[DGST_R1],
486 digests_buf[digests_offset].digest_buf[DGST_R2],
487 digests_buf[digests_offset].digest_buf[DGST_R3]
494 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
496 const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos);
498 const u32x pw_len = pw_l_len + pw_r_len;
501 * concat password candidate
504 u32x wordl0[4] = { 0 };
505 u32x wordl1[4] = { 0 };
506 u32x wordl2[4] = { 0 };
507 u32x wordl3[4] = { 0 };
509 wordl0[0] = pw_buf0[0];
510 wordl0[1] = pw_buf0[1];
511 wordl0[2] = pw_buf0[2];
512 wordl0[3] = pw_buf0[3];
513 wordl1[0] = pw_buf1[0];
514 wordl1[1] = pw_buf1[1];
515 wordl1[2] = pw_buf1[2];
516 wordl1[3] = pw_buf1[3];
518 u32x wordr0[4] = { 0 };
519 u32x wordr1[4] = { 0 };
520 u32x wordr2[4] = { 0 };
521 u32x wordr3[4] = { 0 };
523 wordr0[0] = ix_create_combt (combs_buf, il_pos, 0);
524 wordr0[1] = ix_create_combt (combs_buf, il_pos, 1);
525 wordr0[2] = ix_create_combt (combs_buf, il_pos, 2);
526 wordr0[3] = ix_create_combt (combs_buf, il_pos, 3);
527 wordr1[0] = ix_create_combt (combs_buf, il_pos, 4);
528 wordr1[1] = ix_create_combt (combs_buf, il_pos, 5);
529 wordr1[2] = ix_create_combt (combs_buf, il_pos, 6);
530 wordr1[3] = ix_create_combt (combs_buf, il_pos, 7);
532 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
534 switch_buffer_by_offset_le_VV (wordr0, wordr1, wordr2, wordr3, pw_l_len);
538 switch_buffer_by_offset_le_VV (wordl0, wordl1, wordl2, wordl3, pw_r_len);
546 w0[0] = wordl0[0] | wordr0[0];
547 w0[1] = wordl0[1] | wordr0[1];
548 w0[2] = wordl0[2] | wordr0[2];
549 w0[3] = wordl0[3] | wordr0[3];
550 w1[0] = wordl1[0] | wordr1[0];
551 w1[1] = wordl1[1] | wordr1[1];
552 w1[2] = wordl1[2] | wordr1[2];
553 w1[3] = wordl1[3] | wordr1[3];
554 w2[0] = wordl2[0] | wordr2[0];
555 w2[1] = wordl2[1] | wordr2[1];
556 w2[2] = wordl2[2] | wordr2[2];
557 w2[3] = wordl2[3] | wordr2[3];
558 w3[0] = wordl3[0] | wordr3[0];
559 w3[1] = wordl3[1] | wordr3[1];
572 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
573 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
574 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
575 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
576 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
577 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
578 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
579 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
580 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
581 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
582 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
583 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
584 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
585 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
586 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
587 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
589 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
590 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
591 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
592 MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
593 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
594 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
595 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
596 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
597 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
598 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
599 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
600 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
601 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
602 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
603 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
604 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
606 MD5_STEP (MD5_H , a, b, c, d, w1[1], MD5C20, MD5S20);
607 MD5_STEP (MD5_H , d, a, b, c, w2[0], MD5C21, MD5S21);
608 MD5_STEP (MD5_H , c, d, a, b, w2[3], MD5C22, MD5S22);
609 MD5_STEP (MD5_H , b, c, d, a, w3[2], MD5C23, MD5S23);
610 MD5_STEP (MD5_H , a, b, c, d, w0[1], MD5C24, MD5S20);
611 MD5_STEP (MD5_H , d, a, b, c, w1[0], MD5C25, MD5S21);
612 MD5_STEP (MD5_H , c, d, a, b, w1[3], MD5C26, MD5S22);
613 MD5_STEP (MD5_H , b, c, d, a, w2[2], MD5C27, MD5S23);
614 MD5_STEP (MD5_H , a, b, c, d, w3[1], MD5C28, MD5S20);
615 MD5_STEP (MD5_H , d, a, b, c, w0[0], MD5C29, MD5S21);
616 MD5_STEP (MD5_H , c, d, a, b, w0[3], MD5C2a, MD5S22);
617 MD5_STEP (MD5_H , b, c, d, a, w1[2], MD5C2b, MD5S23);
618 MD5_STEP (MD5_H , a, b, c, d, w2[1], MD5C2c, MD5S20);
619 MD5_STEP (MD5_H , d, a, b, c, w3[0], MD5C2d, MD5S21);
620 MD5_STEP (MD5_H , c, d, a, b, w3[3], MD5C2e, MD5S22);
621 MD5_STEP (MD5_H , b, c, d, a, w0[2], MD5C2f, MD5S23);
623 MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
624 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
625 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
626 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
627 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
628 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
629 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
630 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
631 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
632 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
633 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
634 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
635 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
636 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
637 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
638 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
645 w0[0] = uint_to_hex_lower8 ((a >> 0) & 255) << 0
646 | uint_to_hex_lower8 ((a >> 8) & 255) << 16;
647 w0[1] = uint_to_hex_lower8 ((a >> 16) & 255) << 0
648 | uint_to_hex_lower8 ((a >> 24) & 255) << 16;
649 w0[2] = uint_to_hex_lower8 ((b >> 0) & 255) << 0
650 | uint_to_hex_lower8 ((b >> 8) & 255) << 16;
651 w0[3] = uint_to_hex_lower8 ((b >> 16) & 255) << 0
652 | uint_to_hex_lower8 ((b >> 24) & 255) << 16;
653 w1[0] = uint_to_hex_lower8 ((c >> 0) & 255) << 0
654 | uint_to_hex_lower8 ((c >> 8) & 255) << 16;
655 w1[1] = uint_to_hex_lower8 ((c >> 16) & 255) << 0
656 | uint_to_hex_lower8 ((c >> 24) & 255) << 16;
657 w1[2] = uint_to_hex_lower8 ((d >> 0) & 255) << 0
658 | uint_to_hex_lower8 ((d >> 8) & 255) << 16;
659 w1[3] = uint_to_hex_lower8 ((d >> 16) & 255) << 0
660 | uint_to_hex_lower8 ((d >> 24) & 255) << 16;
674 switch_buffer_by_offset_le (w0, w1, w2, w3, salt_len);
676 w3[2] = pw_salt_len * 8;
679 w0[0] |= salt_buf0[0];
680 w0[1] |= salt_buf0[1];
681 w0[2] |= salt_buf0[2];
682 w0[3] |= salt_buf0[3];
683 w1[0] |= salt_buf1[0];
684 w1[1] |= salt_buf1[1];
685 w1[2] |= salt_buf1[2];
686 w1[3] |= salt_buf1[3];
687 w2[0] |= salt_buf2[0];
688 w2[1] |= salt_buf2[1];
689 w2[2] |= salt_buf2[2];
690 w2[3] |= salt_buf2[3];
691 w3[0] |= salt_buf3[0];
692 w3[1] |= salt_buf3[1];
693 w3[2] |= salt_buf3[2];
694 w3[3] |= salt_buf3[3];
705 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
706 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
707 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
708 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
709 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
710 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
711 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
712 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
713 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
714 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
715 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
716 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
717 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
718 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
719 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
720 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
722 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
723 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
724 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
725 MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
726 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
727 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
728 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
729 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
730 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
731 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
732 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
733 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
734 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
735 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
736 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
737 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
739 MD5_STEP (MD5_H , a, b, c, d, w1[1], MD5C20, MD5S20);
740 MD5_STEP (MD5_H , d, a, b, c, w2[0], MD5C21, MD5S21);
741 MD5_STEP (MD5_H , c, d, a, b, w2[3], MD5C22, MD5S22);
742 MD5_STEP (MD5_H , b, c, d, a, w3[2], MD5C23, MD5S23);
743 MD5_STEP (MD5_H , a, b, c, d, w0[1], MD5C24, MD5S20);
744 MD5_STEP (MD5_H , d, a, b, c, w1[0], MD5C25, MD5S21);
745 MD5_STEP (MD5_H , c, d, a, b, w1[3], MD5C26, MD5S22);
746 MD5_STEP (MD5_H , b, c, d, a, w2[2], MD5C27, MD5S23);
747 MD5_STEP (MD5_H , a, b, c, d, w3[1], MD5C28, MD5S20);
748 MD5_STEP (MD5_H , d, a, b, c, w0[0], MD5C29, MD5S21);
749 MD5_STEP (MD5_H , c, d, a, b, w0[3], MD5C2a, MD5S22);
750 MD5_STEP (MD5_H , b, c, d, a, w1[2], MD5C2b, MD5S23);
751 MD5_STEP (MD5_H , a, b, c, d, w2[1], MD5C2c, MD5S20);
752 MD5_STEP (MD5_H , d, a, b, c, w3[0], MD5C2d, MD5S21);
753 MD5_STEP (MD5_H , c, d, a, b, w3[3], MD5C2e, MD5S22);
754 MD5_STEP (MD5_H , b, c, d, a, w0[2], MD5C2f, MD5S23);
756 MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
757 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
758 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
759 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
760 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
761 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
762 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
763 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
764 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
765 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
766 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
767 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
768 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
770 if (MATCHES_NONE_VS (a, search[0])) continue;
772 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
773 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
774 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
776 COMPARE_S_SIMD (a, d, c, b);
780 __kernel void m03710_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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)
784 __kernel void m03710_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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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)