Merge pull request #146 from gm4tr1x/master
[hashcat.git] / OpenCL / m05000_a1.cl
1 /**
2  * Author......: Jens Steube <jens.steube@gmail.com>
3  * License.....: MIT
4  */
5
6 #define _KECCAK_
7
8 #include "include/constants.h"
9 #include "include/kernel_vendor.h"
10
11 #define DGST_R0 2
12 #define DGST_R1 3
13 #define DGST_R2 4
14 #define DGST_R3 5
15
16 #include "include/kernel_functions.c"
17 #include "OpenCL/types_ocl.c"
18 #include "OpenCL/common.c"
19
20 #define COMPARE_S "OpenCL/check_single_comp4.c"
21 #define COMPARE_M "OpenCL/check_multi_comp4.c"
22
23 __constant u64 keccakf_rndc[24] =
24 {
25   0x0000000000000001, 0x0000000000008082, 0x800000000000808a,
26   0x8000000080008000, 0x000000000000808b, 0x0000000080000001,
27   0x8000000080008081, 0x8000000000008009, 0x000000000000008a,
28   0x0000000000000088, 0x0000000080008009, 0x000000008000000a,
29   0x000000008000808b, 0x800000000000008b, 0x8000000000008089,
30   0x8000000000008003, 0x8000000000008002, 0x8000000000000080,
31   0x000000000000800a, 0x800000008000000a, 0x8000000080008081,
32   0x8000000000008080, 0x0000000080000001, 0x8000000080008008
33 };
34
35 #ifndef KECCAK_ROUNDS
36 #define KECCAK_ROUNDS 24
37 #endif
38
39 #define Theta1(s) (st[0 + s] ^ st[5 + s] ^ st[10 + s] ^ st[15 + s] ^ st[20 + s])
40
41 #define Theta2(s)               \
42 {                               \
43   st[ 0 + s] ^= t;              \
44   st[ 5 + s] ^= t;              \
45   st[10 + s] ^= t;              \
46   st[15 + s] ^= t;              \
47   st[20 + s] ^= t;              \
48 }
49
50 #define Rho_Pi(s)               \
51 {                               \
52   u32 j = keccakf_piln[s];     \
53   u32 k = keccakf_rotc[s];     \
54   bc0 = st[j];                  \
55   st[j] = rotl64 (t, k);        \
56   t = bc0;                      \
57 }
58
59 #define Chi(s)                  \
60 {                               \
61   bc0 = st[0 + s];              \
62   bc1 = st[1 + s];              \
63   bc2 = st[2 + s];              \
64   bc3 = st[3 + s];              \
65   bc4 = st[4 + s];              \
66   st[0 + s] ^= ~bc1 & bc2;      \
67   st[1 + s] ^= ~bc2 & bc3;      \
68   st[2 + s] ^= ~bc3 & bc4;      \
69   st[3 + s] ^= ~bc4 & bc0;      \
70   st[4 + s] ^= ~bc0 & bc1;      \
71 }
72
73 __kernel void m05000_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
74 {
75   /**
76    * modifier
77    */
78
79   const u32 lid = get_local_id (0);
80
81   /**
82    * const
83    */
84
85   const u8 keccakf_rotc[24] =
86   {
87      1,  3,  6, 10, 15, 21, 28, 36, 45, 55,  2, 14,
88     27, 41, 56,  8, 25, 43, 62, 18, 39, 61, 20, 44
89   };
90
91   const u8 keccakf_piln[24] =
92   {
93     10,  7, 11, 17, 18,  3,  5, 16,  8, 21, 24,  4,
94     15, 23, 19, 13, 12,  2, 20, 14, 22,  9,  6,  1
95   };
96
97   /**
98    * base
99    */
100
101   const u32 gid = get_global_id (0);
102
103   if (gid >= gid_max) return;
104
105   u32 wordl0[4];
106
107   wordl0[0] = pws[gid].i[ 0];
108   wordl0[1] = pws[gid].i[ 1];
109   wordl0[2] = pws[gid].i[ 2];
110   wordl0[3] = pws[gid].i[ 3];
111
112   u32 wordl1[4];
113
114   wordl1[0] = pws[gid].i[ 4];
115   wordl1[1] = pws[gid].i[ 5];
116   wordl1[2] = pws[gid].i[ 6];
117   wordl1[3] = pws[gid].i[ 7];
118
119   u32 wordl2[4];
120
121   wordl2[0] = 0;
122   wordl2[1] = 0;
123   wordl2[2] = 0;
124   wordl2[3] = 0;
125
126   u32 wordl3[4];
127
128   wordl3[0] = 0;
129   wordl3[1] = 0;
130   wordl3[2] = 0;
131   wordl3[3] = 0;
132
133   const u32 pw_l_len = pws[gid].pw_len;
134
135   if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
136   {
137     append_0x01_2x4 (wordl0, wordl1, pw_l_len);
138
139     switch_buffer_by_offset_le (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
140   }
141
142   /**
143    * 0x80 keccak, very special
144    */
145
146   const u32 mdlen = salt_bufs[salt_pos].keccak_mdlen;
147
148   const u32 rsiz = 200 - (2 * mdlen);
149
150   const u32 add80w = (rsiz - 1) / 8;
151
152   /**
153    * loop
154    */
155
156   for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
157   {
158     const u32 pw_r_len = combs_buf[il_pos].pw_len;
159
160     const u32 pw_len = pw_l_len + pw_r_len;
161
162     u32 wordr0[4];
163
164     wordr0[0] = combs_buf[il_pos].i[0];
165     wordr0[1] = combs_buf[il_pos].i[1];
166     wordr0[2] = combs_buf[il_pos].i[2];
167     wordr0[3] = combs_buf[il_pos].i[3];
168
169     u32 wordr1[4];
170
171     wordr1[0] = combs_buf[il_pos].i[4];
172     wordr1[1] = combs_buf[il_pos].i[5];
173     wordr1[2] = combs_buf[il_pos].i[6];
174     wordr1[3] = combs_buf[il_pos].i[7];
175
176     u32 wordr2[4];
177
178     wordr2[0] = 0;
179     wordr2[1] = 0;
180     wordr2[2] = 0;
181     wordr2[3] = 0;
182
183     u32 wordr3[4];
184
185     wordr3[0] = 0;
186     wordr3[1] = 0;
187     wordr3[2] = 0;
188     wordr3[3] = 0;
189
190     if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
191     {
192       append_0x01_2x4 (wordr0, wordr1, pw_r_len);
193
194       switch_buffer_by_offset_le (wordr0, wordr1, wordr2, wordr3, pw_l_len);
195     }
196
197     u32 w0[4];
198
199     w0[0] = wordl0[0] | wordr0[0];
200     w0[1] = wordl0[1] | wordr0[1];
201     w0[2] = wordl0[2] | wordr0[2];
202     w0[3] = wordl0[3] | wordr0[3];
203
204     u32 w1[4];
205
206     w1[0] = wordl1[0] | wordr1[0];
207     w1[1] = wordl1[1] | wordr1[1];
208     w1[2] = wordl1[2] | wordr1[2];
209     w1[3] = wordl1[3] | wordr1[3];
210
211     u32 w2[4];
212
213     w2[0] = wordl2[0] | wordr2[0];
214     w2[1] = wordl2[1] | wordr2[1];
215     w2[2] = wordl2[2] | wordr2[2];
216     w2[3] = wordl2[3] | wordr2[3];
217
218     u32 w3[4];
219
220     w3[0] = wordl3[0] | wordr3[0];
221     w3[1] = wordl3[1] | wordr3[1];
222     w3[2] = pw_len * 8;
223     w3[3] = 0;
224
225     u64 st[25];
226
227     st[ 0] = (u64) (w0[0]) | (u64) (w0[1]) << 32;
228     st[ 1] = (u64) (w0[2]) | (u64) (w0[3]) << 32;
229     st[ 2] = (u64) (w1[0]) | (u64) (w1[1]) << 32;
230     st[ 3] = (u64) (w1[2]) | (u64) (w1[3]) << 32;
231     st[ 4] = 0;
232     st[ 5] = 0;
233     st[ 6] = 0;
234     st[ 7] = 0;
235     st[ 8] = 0;
236     st[ 9] = 0;
237     st[10] = 0;
238     st[11] = 0;
239     st[12] = 0;
240     st[13] = 0;
241     st[14] = 0;
242     st[15] = 0;
243     st[16] = 0;
244     st[17] = 0;
245     st[18] = 0;
246     st[19] = 0;
247     st[20] = 0;
248     st[21] = 0;
249     st[22] = 0;
250     st[23] = 0;
251     st[24] = 0;
252
253     st[add80w] |= 0x8000000000000000;
254
255     int round;
256
257     for (round = 0; round < KECCAK_ROUNDS; round++)
258     {
259       // Theta
260
261       u64 bc0 = Theta1 (0);
262       u64 bc1 = Theta1 (1);
263       u64 bc2 = Theta1 (2);
264       u64 bc3 = Theta1 (3);
265       u64 bc4 = Theta1 (4);
266
267       u64 t;
268
269       t = bc4 ^ rotl64 (bc1, 1); Theta2 (0);
270       t = bc0 ^ rotl64 (bc2, 1); Theta2 (1);
271       t = bc1 ^ rotl64 (bc3, 1); Theta2 (2);
272       t = bc2 ^ rotl64 (bc4, 1); Theta2 (3);
273       t = bc3 ^ rotl64 (bc0, 1); Theta2 (4);
274
275       // Rho Pi
276
277       t = st[1];
278
279       Rho_Pi (0);
280       Rho_Pi (1);
281       Rho_Pi (2);
282       Rho_Pi (3);
283       Rho_Pi (4);
284       Rho_Pi (5);
285       Rho_Pi (6);
286       Rho_Pi (7);
287       Rho_Pi (8);
288       Rho_Pi (9);
289       Rho_Pi (10);
290       Rho_Pi (11);
291       Rho_Pi (12);
292       Rho_Pi (13);
293       Rho_Pi (14);
294       Rho_Pi (15);
295       Rho_Pi (16);
296       Rho_Pi (17);
297       Rho_Pi (18);
298       Rho_Pi (19);
299       Rho_Pi (20);
300       Rho_Pi (21);
301       Rho_Pi (22);
302       Rho_Pi (23);
303
304       //  Chi
305
306       Chi (0);
307       Chi (5);
308       Chi (10);
309       Chi (15);
310       Chi (20);
311
312       //  Iota
313
314       st[0] ^= keccakf_rndc[round];
315     }
316
317     const u32 r0 = l32_from_64 (st[1]);
318     const u32 r1 = h32_from_64 (st[1]);
319     const u32 r2 = l32_from_64 (st[2]);
320     const u32 r3 = h32_from_64 (st[2]);
321
322     #include COMPARE_M
323   }
324 }
325
326 __kernel void m05000_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
327 {
328 }
329
330 __kernel void m05000_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
331 {
332 }
333
334 __kernel void m05000_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
335 {
336   /**
337    * modifier
338    */
339
340   const u32 lid = get_local_id (0);
341
342   /**
343    * const
344    */
345
346   const u8 keccakf_rotc[24] =
347   {
348      1,  3,  6, 10, 15, 21, 28, 36, 45, 55,  2, 14,
349     27, 41, 56,  8, 25, 43, 62, 18, 39, 61, 20, 44
350   };
351
352   const u8 keccakf_piln[24] =
353   {
354     10,  7, 11, 17, 18,  3,  5, 16,  8, 21, 24,  4,
355     15, 23, 19, 13, 12,  2, 20, 14, 22,  9,  6,  1
356   };
357
358   /**
359    * base
360    */
361
362   const u32 gid = get_global_id (0);
363
364   if (gid >= gid_max) return;
365
366   u32 wordl0[4];
367
368   wordl0[0] = pws[gid].i[ 0];
369   wordl0[1] = pws[gid].i[ 1];
370   wordl0[2] = pws[gid].i[ 2];
371   wordl0[3] = pws[gid].i[ 3];
372
373   u32 wordl1[4];
374
375   wordl1[0] = pws[gid].i[ 4];
376   wordl1[1] = pws[gid].i[ 5];
377   wordl1[2] = pws[gid].i[ 6];
378   wordl1[3] = pws[gid].i[ 7];
379
380   u32 wordl2[4];
381
382   wordl2[0] = 0;
383   wordl2[1] = 0;
384   wordl2[2] = 0;
385   wordl2[3] = 0;
386
387   u32 wordl3[4];
388
389   wordl3[0] = 0;
390   wordl3[1] = 0;
391   wordl3[2] = 0;
392   wordl3[3] = 0;
393
394   const u32 pw_l_len = pws[gid].pw_len;
395
396   if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
397   {
398     append_0x01_2x4 (wordl0, wordl1, pw_l_len);
399
400     switch_buffer_by_offset_le (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
401   }
402
403   /**
404    * digest
405    */
406
407   const u32 search[4] =
408   {
409     digests_buf[digests_offset].digest_buf[DGST_R0],
410     digests_buf[digests_offset].digest_buf[DGST_R1],
411     digests_buf[digests_offset].digest_buf[DGST_R2],
412     digests_buf[digests_offset].digest_buf[DGST_R3]
413   };
414
415   /**
416    * 0x80 keccak, very special
417    */
418
419   const u32 mdlen = salt_bufs[salt_pos].keccak_mdlen;
420
421   const u32 rsiz = 200 - (2 * mdlen);
422
423   const u32 add80w = (rsiz - 1) / 8;
424
425   /**
426    * loop
427    */
428
429   for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
430   {
431     const u32 pw_r_len = combs_buf[il_pos].pw_len;
432
433     const u32 pw_len = pw_l_len + pw_r_len;
434
435     u32 wordr0[4];
436
437     wordr0[0] = combs_buf[il_pos].i[0];
438     wordr0[1] = combs_buf[il_pos].i[1];
439     wordr0[2] = combs_buf[il_pos].i[2];
440     wordr0[3] = combs_buf[il_pos].i[3];
441
442     u32 wordr1[4];
443
444     wordr1[0] = combs_buf[il_pos].i[4];
445     wordr1[1] = combs_buf[il_pos].i[5];
446     wordr1[2] = combs_buf[il_pos].i[6];
447     wordr1[3] = combs_buf[il_pos].i[7];
448
449     u32 wordr2[4];
450
451     wordr2[0] = 0;
452     wordr2[1] = 0;
453     wordr2[2] = 0;
454     wordr2[3] = 0;
455
456     u32 wordr3[4];
457
458     wordr3[0] = 0;
459     wordr3[1] = 0;
460     wordr3[2] = 0;
461     wordr3[3] = 0;
462
463     if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
464     {
465       append_0x01_2x4 (wordr0, wordr1, pw_r_len);
466
467       switch_buffer_by_offset_le (wordr0, wordr1, wordr2, wordr3, pw_l_len);
468     }
469
470     u32 w0[4];
471
472     w0[0] = wordl0[0] | wordr0[0];
473     w0[1] = wordl0[1] | wordr0[1];
474     w0[2] = wordl0[2] | wordr0[2];
475     w0[3] = wordl0[3] | wordr0[3];
476
477     u32 w1[4];
478
479     w1[0] = wordl1[0] | wordr1[0];
480     w1[1] = wordl1[1] | wordr1[1];
481     w1[2] = wordl1[2] | wordr1[2];
482     w1[3] = wordl1[3] | wordr1[3];
483
484     u32 w2[4];
485
486     w2[0] = wordl2[0] | wordr2[0];
487     w2[1] = wordl2[1] | wordr2[1];
488     w2[2] = wordl2[2] | wordr2[2];
489     w2[3] = wordl2[3] | wordr2[3];
490
491     u32 w3[4];
492
493     w3[0] = wordl3[0] | wordr3[0];
494     w3[1] = wordl3[1] | wordr3[1];
495     w3[2] = pw_len * 8;
496     w3[3] = 0;
497
498     u64 st[25];
499
500     st[ 0] = (u64) (w0[0]) | (u64) (w0[1]) << 32;
501     st[ 1] = (u64) (w0[2]) | (u64) (w0[3]) << 32;
502     st[ 2] = (u64) (w1[0]) | (u64) (w1[1]) << 32;
503     st[ 3] = (u64) (w1[2]) | (u64) (w1[3]) << 32;
504     st[ 4] = 0;
505     st[ 5] = 0;
506     st[ 6] = 0;
507     st[ 7] = 0;
508     st[ 8] = 0;
509     st[ 9] = 0;
510     st[10] = 0;
511     st[11] = 0;
512     st[12] = 0;
513     st[13] = 0;
514     st[14] = 0;
515     st[15] = 0;
516     st[16] = 0;
517     st[17] = 0;
518     st[18] = 0;
519     st[19] = 0;
520     st[20] = 0;
521     st[21] = 0;
522     st[22] = 0;
523     st[23] = 0;
524     st[24] = 0;
525
526     st[add80w] |= 0x8000000000000000;
527
528     int round;
529
530     for (round = 0; round < KECCAK_ROUNDS; round++)
531     {
532       // Theta
533
534       u64 bc0 = Theta1 (0);
535       u64 bc1 = Theta1 (1);
536       u64 bc2 = Theta1 (2);
537       u64 bc3 = Theta1 (3);
538       u64 bc4 = Theta1 (4);
539
540       u64 t;
541
542       t = bc4 ^ rotl64 (bc1, 1); Theta2 (0);
543       t = bc0 ^ rotl64 (bc2, 1); Theta2 (1);
544       t = bc1 ^ rotl64 (bc3, 1); Theta2 (2);
545       t = bc2 ^ rotl64 (bc4, 1); Theta2 (3);
546       t = bc3 ^ rotl64 (bc0, 1); Theta2 (4);
547
548       // Rho Pi
549
550       t = st[1];
551
552       Rho_Pi (0);
553       Rho_Pi (1);
554       Rho_Pi (2);
555       Rho_Pi (3);
556       Rho_Pi (4);
557       Rho_Pi (5);
558       Rho_Pi (6);
559       Rho_Pi (7);
560       Rho_Pi (8);
561       Rho_Pi (9);
562       Rho_Pi (10);
563       Rho_Pi (11);
564       Rho_Pi (12);
565       Rho_Pi (13);
566       Rho_Pi (14);
567       Rho_Pi (15);
568       Rho_Pi (16);
569       Rho_Pi (17);
570       Rho_Pi (18);
571       Rho_Pi (19);
572       Rho_Pi (20);
573       Rho_Pi (21);
574       Rho_Pi (22);
575       Rho_Pi (23);
576
577       //  Chi
578
579       Chi (0);
580       Chi (5);
581       Chi (10);
582       Chi (15);
583       Chi (20);
584
585       //  Iota
586
587       st[0] ^= keccakf_rndc[round];
588     }
589
590     const u32 r0 = l32_from_64 (st[1]);
591     const u32 r1 = h32_from_64 (st[1]);
592     const u32 r2 = l32_from_64 (st[2]);
593     const u32 r3 = h32_from_64 (st[2]);
594
595     #include COMPARE_S
596   }
597 }
598
599 __kernel void m05000_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
600 {
601 }
602
603 __kernel void m05000_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 combs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
604 {
605 }