2 * Author......: Jens Steube <jens.steube@gmail.com>
8 #include "include/constants.h"
9 #include "include/kernel_vendor.h"
28 #include "include/kernel_functions.c"
29 #include "types_amd.c"
30 #include "common_amd.c"
33 #define VECT_COMPARE_S "check_single_vect1_comp4.c"
34 #define VECT_COMPARE_M "check_multi_vect1_comp4.c"
38 #define VECT_COMPARE_S "check_single_vect2_comp4.c"
39 #define VECT_COMPARE_M "check_multi_vect2_comp4.c"
43 #define VECT_COMPARE_S "check_single_vect4_comp4.c"
44 #define VECT_COMPARE_M "check_multi_vect4_comp4.c"
48 #define uint_to_hex_lower8(i) l_bin2asc[(i)]
52 #define uint_to_hex_lower8(i) (u32x) (l_bin2asc[(i).s0], l_bin2asc[(i).s1])
56 #define uint_to_hex_lower8(i) (u32x) (l_bin2asc[(i).s0], l_bin2asc[(i).s1], l_bin2asc[(i).s2], l_bin2asc[(i).s3])
59 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m11100_m04 (__global pw_t *pws, __global gpu_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
65 const u32 lid = get_local_id (0);
71 const u32 gid = get_global_id (0);
75 wordl0[0] = pws[gid].i[ 0];
76 wordl0[1] = pws[gid].i[ 1];
77 wordl0[2] = pws[gid].i[ 2];
78 wordl0[3] = pws[gid].i[ 3];
82 wordl1[0] = pws[gid].i[ 4];
83 wordl1[1] = pws[gid].i[ 5];
84 wordl1[2] = pws[gid].i[ 6];
85 wordl1[3] = pws[gid].i[ 7];
101 const u32 pw_l_len = pws[gid].pw_len;
103 if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
105 switch_buffer_by_offset (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
114 challenge = salt_bufs[salt_pos].salt_buf[0];
122 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 1]; // not a bug
123 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 2];
124 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 3];
125 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 4];
129 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 5];
130 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 6];
131 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 7];
132 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 8];
134 const u32 salt_len = salt_bufs[salt_pos].salt_len - 4;
140 __local u32 l_bin2asc[256];
142 const u32 lid4 = lid * 4;
144 const u32 lid40 = lid4 + 0;
145 const u32 lid41 = lid4 + 1;
146 const u32 lid42 = lid4 + 2;
147 const u32 lid43 = lid4 + 3;
149 const u32 v400 = (lid40 >> 0) & 15;
150 const u32 v401 = (lid40 >> 4) & 15;
151 const u32 v410 = (lid41 >> 0) & 15;
152 const u32 v411 = (lid41 >> 4) & 15;
153 const u32 v420 = (lid42 >> 0) & 15;
154 const u32 v421 = (lid42 >> 4) & 15;
155 const u32 v430 = (lid43 >> 0) & 15;
156 const u32 v431 = (lid43 >> 4) & 15;
158 l_bin2asc[lid40] = ((v400 < 10) ? '0' + v400 : 'a' - 10 + v400) << 8
159 | ((v401 < 10) ? '0' + v401 : 'a' - 10 + v401) << 0;
160 l_bin2asc[lid41] = ((v410 < 10) ? '0' + v410 : 'a' - 10 + v410) << 8
161 | ((v411 < 10) ? '0' + v411 : 'a' - 10 + v411) << 0;
162 l_bin2asc[lid42] = ((v420 < 10) ? '0' + v420 : 'a' - 10 + v420) << 8
163 | ((v421 < 10) ? '0' + v421 : 'a' - 10 + v421) << 0;
164 l_bin2asc[lid43] = ((v430 < 10) ? '0' + v430 : 'a' - 10 + v430) << 8
165 | ((v431 < 10) ? '0' + v431 : 'a' - 10 + v431) << 0;
167 barrier (CLK_LOCAL_MEM_FENCE);
169 if (gid >= gid_max) return;
175 for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
177 const u32 pw_r_len = combs_buf[il_pos].pw_len;
179 const u32 pw_len = pw_l_len + pw_r_len;
183 wordr0[0] = combs_buf[il_pos].i[0];
184 wordr0[1] = combs_buf[il_pos].i[1];
185 wordr0[2] = combs_buf[il_pos].i[2];
186 wordr0[3] = combs_buf[il_pos].i[3];
190 wordr1[0] = combs_buf[il_pos].i[4];
191 wordr1[1] = combs_buf[il_pos].i[5];
192 wordr1[2] = combs_buf[il_pos].i[6];
193 wordr1[3] = combs_buf[il_pos].i[7];
209 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
211 switch_buffer_by_offset (wordr0, wordr1, wordr2, wordr3, pw_l_len);
216 w0_t[0] = salt_buf0[0];
217 w0_t[1] = salt_buf0[1];
218 w0_t[2] = salt_buf0[2];
219 w0_t[3] = salt_buf0[3];
223 w1_t[0] = salt_buf1[0];
224 w1_t[1] = salt_buf1[1];
225 w1_t[2] = salt_buf1[2];
226 w1_t[3] = salt_buf1[3];
246 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, pw_len);
248 const u32 pw_salt_len = pw_len + salt_len;
250 w0_t[0] |= wordl0[0] | wordr0[0];
251 w0_t[1] |= wordl0[1] | wordr0[1];
252 w0_t[2] |= wordl0[2] | wordr0[2];
253 w0_t[3] |= wordl0[3] | wordr0[3];
255 w1_t[0] |= wordl1[0] | wordr1[0];
256 w1_t[1] |= wordl1[1] | wordr1[1];
257 w1_t[2] |= wordl1[2] | wordr1[2];
258 w1_t[3] |= wordl1[3] | wordr1[3];
260 w2_t[0] |= wordl2[0] | wordr2[0];
261 w2_t[1] |= wordl2[1] | wordr2[1];
262 w2_t[2] |= wordl2[2] | wordr2[2];
263 w2_t[3] |= wordl2[3] | wordr2[3];
265 w3_t[0] |= wordl3[0] | wordr3[0];
266 w3_t[1] |= wordl3[0] | wordr3[0];
267 w3_t[2] = pw_salt_len * 8;
279 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
280 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
281 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
282 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
283 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
284 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
285 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
286 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
287 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
288 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
289 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
290 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
291 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
292 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
293 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
294 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
296 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
297 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
298 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
299 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
300 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
301 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
302 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
303 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
304 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
305 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
306 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
307 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
308 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
309 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
310 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
311 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
313 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
314 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
315 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
316 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
317 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
318 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
319 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
320 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
321 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
322 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
323 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
324 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
325 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
326 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
327 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
328 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
330 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
331 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
332 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
333 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
334 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
335 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
336 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
337 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
338 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
339 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
340 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
341 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
342 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
343 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
344 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
345 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
352 w0_t[0] = uint_to_hex_lower8 ((a >> 0) & 255) << 0
353 | uint_to_hex_lower8 ((a >> 8) & 255) << 16;
354 w0_t[1] = uint_to_hex_lower8 ((a >> 16) & 255) << 0
355 | uint_to_hex_lower8 ((a >> 24) & 255) << 16;
356 w0_t[2] = uint_to_hex_lower8 ((b >> 0) & 255) << 0
357 | uint_to_hex_lower8 ((b >> 8) & 255) << 16;
358 w0_t[3] = uint_to_hex_lower8 ((b >> 16) & 255) << 0
359 | uint_to_hex_lower8 ((b >> 24) & 255) << 16;
360 w1_t[0] = uint_to_hex_lower8 ((c >> 0) & 255) << 0
361 | uint_to_hex_lower8 ((c >> 8) & 255) << 16;
362 w1_t[1] = uint_to_hex_lower8 ((c >> 16) & 255) << 0
363 | uint_to_hex_lower8 ((c >> 24) & 255) << 16;
364 w1_t[2] = uint_to_hex_lower8 ((d >> 0) & 255) << 0
365 | uint_to_hex_lower8 ((d >> 8) & 255) << 16;
366 w1_t[3] = uint_to_hex_lower8 ((d >> 16) & 255) << 0
367 | uint_to_hex_lower8 ((d >> 24) & 255) << 16;
369 // add the 4 byte challenge here
372 w2_t[1] = 0x00000080;
378 w3_t[2] = (32 + 4) * 8;
382 * md5 ($hash.$challenge)
390 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
391 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
392 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
393 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
394 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
395 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
396 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
397 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
398 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
399 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
400 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
401 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
402 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
403 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
404 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
405 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
407 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
408 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
409 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
410 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
411 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
412 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
413 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
414 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
415 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
416 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
417 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
418 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
419 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
420 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
421 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
422 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
424 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
425 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
426 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
427 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
428 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
429 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
430 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
431 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
432 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
433 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
434 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
435 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
436 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
437 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
438 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
439 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
441 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
442 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
443 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
444 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
445 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
446 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
447 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
448 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
449 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
450 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
451 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
452 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
453 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
454 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
455 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
456 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
463 #include VECT_COMPARE_M
467 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m11100_m08 (__global pw_t *pws, __global gpu_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
471 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m11100_m16 (__global pw_t *pws, __global gpu_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
475 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m11100_s04 (__global pw_t *pws, __global gpu_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
481 const u32 lid = get_local_id (0);
487 const u32 gid = get_global_id (0);
491 wordl0[0] = pws[gid].i[ 0];
492 wordl0[1] = pws[gid].i[ 1];
493 wordl0[2] = pws[gid].i[ 2];
494 wordl0[3] = pws[gid].i[ 3];
498 wordl1[0] = pws[gid].i[ 4];
499 wordl1[1] = pws[gid].i[ 5];
500 wordl1[2] = pws[gid].i[ 6];
501 wordl1[3] = pws[gid].i[ 7];
517 const u32 pw_l_len = pws[gid].pw_len;
519 if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
521 switch_buffer_by_offset (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
530 challenge = salt_bufs[salt_pos].salt_buf[0];
538 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 1]; // not a bug
539 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 2];
540 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 3];
541 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 4];
545 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 5];
546 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 6];
547 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 7];
548 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 8];
550 const u32 salt_len = salt_bufs[salt_pos].salt_len - 4;
556 const u32 search[4] =
558 digests_buf[digests_offset].digest_buf[DGST_R0],
559 digests_buf[digests_offset].digest_buf[DGST_R1],
560 digests_buf[digests_offset].digest_buf[DGST_R2],
561 digests_buf[digests_offset].digest_buf[DGST_R3]
568 __local u32 l_bin2asc[256];
570 const u32 lid4 = lid * 4;
572 const u32 lid40 = lid4 + 0;
573 const u32 lid41 = lid4 + 1;
574 const u32 lid42 = lid4 + 2;
575 const u32 lid43 = lid4 + 3;
577 const u32 v400 = (lid40 >> 0) & 15;
578 const u32 v401 = (lid40 >> 4) & 15;
579 const u32 v410 = (lid41 >> 0) & 15;
580 const u32 v411 = (lid41 >> 4) & 15;
581 const u32 v420 = (lid42 >> 0) & 15;
582 const u32 v421 = (lid42 >> 4) & 15;
583 const u32 v430 = (lid43 >> 0) & 15;
584 const u32 v431 = (lid43 >> 4) & 15;
586 l_bin2asc[lid40] = ((v400 < 10) ? '0' + v400 : 'a' - 10 + v400) << 8
587 | ((v401 < 10) ? '0' + v401 : 'a' - 10 + v401) << 0;
588 l_bin2asc[lid41] = ((v410 < 10) ? '0' + v410 : 'a' - 10 + v410) << 8
589 | ((v411 < 10) ? '0' + v411 : 'a' - 10 + v411) << 0;
590 l_bin2asc[lid42] = ((v420 < 10) ? '0' + v420 : 'a' - 10 + v420) << 8
591 | ((v421 < 10) ? '0' + v421 : 'a' - 10 + v421) << 0;
592 l_bin2asc[lid43] = ((v430 < 10) ? '0' + v430 : 'a' - 10 + v430) << 8
593 | ((v431 < 10) ? '0' + v431 : 'a' - 10 + v431) << 0;
595 barrier (CLK_LOCAL_MEM_FENCE);
597 if (gid >= gid_max) return;
603 for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
605 const u32 pw_r_len = combs_buf[il_pos].pw_len;
607 const u32 pw_len = pw_l_len + pw_r_len;
611 wordr0[0] = combs_buf[il_pos].i[0];
612 wordr0[1] = combs_buf[il_pos].i[1];
613 wordr0[2] = combs_buf[il_pos].i[2];
614 wordr0[3] = combs_buf[il_pos].i[3];
618 wordr1[0] = combs_buf[il_pos].i[4];
619 wordr1[1] = combs_buf[il_pos].i[5];
620 wordr1[2] = combs_buf[il_pos].i[6];
621 wordr1[3] = combs_buf[il_pos].i[7];
637 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
639 switch_buffer_by_offset (wordr0, wordr1, wordr2, wordr3, pw_l_len);
644 w0_t[0] = salt_buf0[0];
645 w0_t[1] = salt_buf0[1];
646 w0_t[2] = salt_buf0[2];
647 w0_t[3] = salt_buf0[3];
651 w1_t[0] = salt_buf1[0];
652 w1_t[1] = salt_buf1[1];
653 w1_t[2] = salt_buf1[2];
654 w1_t[3] = salt_buf1[3];
674 switch_buffer_by_offset (w0_t, w1_t, w2_t, w3_t, pw_len);
676 const u32 pw_salt_len = pw_len + salt_len;
678 w0_t[0] |= wordl0[0] | wordr0[0];
679 w0_t[1] |= wordl0[1] | wordr0[1];
680 w0_t[2] |= wordl0[2] | wordr0[2];
681 w0_t[3] |= wordl0[3] | wordr0[3];
683 w1_t[0] |= wordl1[0] | wordr1[0];
684 w1_t[1] |= wordl1[1] | wordr1[1];
685 w1_t[2] |= wordl1[2] | wordr1[2];
686 w1_t[3] |= wordl1[3] | wordr1[3];
688 w2_t[0] |= wordl2[0] | wordr2[0];
689 w2_t[1] |= wordl2[1] | wordr2[1];
690 w2_t[2] |= wordl2[2] | wordr2[2];
691 w2_t[3] |= wordl2[3] | wordr2[3];
693 w3_t[0] |= wordl3[0] | wordr3[0];
694 w3_t[1] |= wordl3[0] | wordr3[0];
695 w3_t[2] = pw_salt_len * 8;
707 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
708 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
709 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
710 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
711 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
712 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
713 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
714 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
715 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
716 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
717 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
718 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
719 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
720 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
721 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
722 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
724 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
725 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
726 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
727 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
728 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
729 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
730 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
731 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
732 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
733 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
734 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
735 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
736 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
737 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
738 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
739 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
741 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
742 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
743 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
744 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
745 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
746 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
747 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
748 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
749 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
750 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
751 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
752 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
753 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
754 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
755 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
756 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
758 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
759 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
760 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
761 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
762 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
763 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
764 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
765 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
766 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
767 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
768 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
769 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
770 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
771 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
772 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
773 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
780 w0_t[0] = uint_to_hex_lower8 ((a >> 0) & 255) << 0
781 | uint_to_hex_lower8 ((a >> 8) & 255) << 16;
782 w0_t[1] = uint_to_hex_lower8 ((a >> 16) & 255) << 0
783 | uint_to_hex_lower8 ((a >> 24) & 255) << 16;
784 w0_t[2] = uint_to_hex_lower8 ((b >> 0) & 255) << 0
785 | uint_to_hex_lower8 ((b >> 8) & 255) << 16;
786 w0_t[3] = uint_to_hex_lower8 ((b >> 16) & 255) << 0
787 | uint_to_hex_lower8 ((b >> 24) & 255) << 16;
788 w1_t[0] = uint_to_hex_lower8 ((c >> 0) & 255) << 0
789 | uint_to_hex_lower8 ((c >> 8) & 255) << 16;
790 w1_t[1] = uint_to_hex_lower8 ((c >> 16) & 255) << 0
791 | uint_to_hex_lower8 ((c >> 24) & 255) << 16;
792 w1_t[2] = uint_to_hex_lower8 ((d >> 0) & 255) << 0
793 | uint_to_hex_lower8 ((d >> 8) & 255) << 16;
794 w1_t[3] = uint_to_hex_lower8 ((d >> 16) & 255) << 0
795 | uint_to_hex_lower8 ((d >> 24) & 255) << 16;
797 // add the 4 byte challenge here
800 w2_t[1] = 0x00000080;
806 w3_t[2] = (32 + 4) * 8;
810 * md5 ($hash.$challenge)
818 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
819 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
820 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
821 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
822 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
823 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
824 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
825 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
826 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
827 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
828 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
829 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
830 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
831 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
832 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
833 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
835 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
836 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
837 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
838 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
839 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
840 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
841 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
842 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
843 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
844 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
845 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
846 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
847 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
848 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
849 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
850 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
852 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
853 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
854 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
855 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
856 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
857 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
858 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
859 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
860 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
861 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
862 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
863 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
864 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
865 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
866 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
867 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
869 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
870 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
871 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
872 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
873 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
874 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
875 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
876 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
877 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
878 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
879 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
880 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
881 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
882 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
883 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
884 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
891 #include VECT_COMPARE_S
895 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m11100_s08 (__global pw_t *pws, __global gpu_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
899 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m11100_s16 (__global pw_t *pws, __global gpu_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)