- Dropped all vector code since new GPU's are all scalar, makes the code much easier
[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 "types_ocl.c"
18 #include "common.c"
19
20 #define COMPARE_S "check_single_comp4.c"
21 #define COMPARE_M "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 __constant u32 keccakf_rotc[24] =
36 {
37    1,  3,  6, 10, 15, 21, 28, 36, 45, 55,  2, 14,
38   27, 41, 56,  8, 25, 43, 62, 18, 39, 61, 20, 44
39 };
40
41 __constant u32 keccakf_piln[24] =
42 {
43   10,  7, 11, 17, 18,  3,  5, 16,  8, 21, 24,  4,
44   15, 23, 19, 13, 12,  2, 20, 14, 22,  9,  6,  1
45 };
46
47 #ifndef KECCAK_ROUNDS
48 #define KECCAK_ROUNDS 24
49 #endif
50
51 #define Theta1(s) (st[0 + s] ^ st[5 + s] ^ st[10 + s] ^ st[15 + s] ^ st[20 + s])
52
53 #define Theta2(s)               \
54 {                               \
55   st[ 0 + s] ^= t;              \
56   st[ 5 + s] ^= t;              \
57   st[10 + s] ^= t;              \
58   st[15 + s] ^= t;              \
59   st[20 + s] ^= t;              \
60 }
61
62 #define Rho_Pi(s)               \
63 {                               \
64   u32 j = keccakf_piln[s];     \
65   u32 k = keccakf_rotc[s];     \
66   bc0 = st[j];                  \
67   st[j] = rotl64 (t, k);        \
68   t = bc0;                      \
69 }
70
71 #define Chi(s)                  \
72 {                               \
73   bc0 = st[0 + s];              \
74   bc1 = st[1 + s];              \
75   bc2 = st[2 + s];              \
76   bc3 = st[3 + s];              \
77   bc4 = st[4 + s];              \
78   st[0 + s] ^= ~bc1 & bc2;      \
79   st[1 + s] ^= ~bc2 & bc3;      \
80   st[2 + s] ^= ~bc3 & bc4;      \
81   st[3 + s] ^= ~bc4 & bc0;      \
82   st[4 + s] ^= ~bc0 & bc1;      \
83 }
84
85 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05000_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)
86 {
87   /**
88    * modifier
89    */
90
91   const u32 lid = get_local_id (0);
92
93   /**
94    * base
95    */
96
97   const u32 gid = get_global_id (0);
98
99   if (gid >= gid_max) return;
100
101   u32 wordl0[4];
102
103   wordl0[0] = pws[gid].i[ 0];
104   wordl0[1] = pws[gid].i[ 1];
105   wordl0[2] = pws[gid].i[ 2];
106   wordl0[3] = pws[gid].i[ 3];
107
108   u32 wordl1[4];
109
110   wordl1[0] = pws[gid].i[ 4];
111   wordl1[1] = pws[gid].i[ 5];
112   wordl1[2] = pws[gid].i[ 6];
113   wordl1[3] = pws[gid].i[ 7];
114
115   u32 wordl2[4];
116
117   wordl2[0] = 0;
118   wordl2[1] = 0;
119   wordl2[2] = 0;
120   wordl2[3] = 0;
121
122   u32 wordl3[4];
123
124   wordl3[0] = 0;
125   wordl3[1] = 0;
126   wordl3[2] = 0;
127   wordl3[3] = 0;
128
129   const u32 pw_l_len = pws[gid].pw_len;
130
131   if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
132   {
133     append_0x01_2 (wordl0, wordl1, pw_l_len);
134
135     switch_buffer_by_offset (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
136   }
137
138   /**
139    * 0x80 keccak, very special
140    */
141
142   const u32 mdlen = salt_bufs[salt_pos].keccak_mdlen;
143
144   const u32 rsiz = 200 - (2 * mdlen);
145
146   const u32 add80w = (rsiz - 1) / 8;
147
148   /**
149    * loop
150    */
151
152   for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
153   {
154     const u32 pw_r_len = combs_buf[il_pos].pw_len;
155
156     const u32 pw_len = pw_l_len + pw_r_len;
157
158     u32 wordr0[4];
159
160     wordr0[0] = combs_buf[il_pos].i[0];
161     wordr0[1] = combs_buf[il_pos].i[1];
162     wordr0[2] = combs_buf[il_pos].i[2];
163     wordr0[3] = combs_buf[il_pos].i[3];
164
165     u32 wordr1[4];
166
167     wordr1[0] = combs_buf[il_pos].i[4];
168     wordr1[1] = combs_buf[il_pos].i[5];
169     wordr1[2] = combs_buf[il_pos].i[6];
170     wordr1[3] = combs_buf[il_pos].i[7];
171
172     u32 wordr2[4];
173
174     wordr2[0] = 0;
175     wordr2[1] = 0;
176     wordr2[2] = 0;
177     wordr2[3] = 0;
178
179     u32 wordr3[4];
180
181     wordr3[0] = 0;
182     wordr3[1] = 0;
183     wordr3[2] = 0;
184     wordr3[3] = 0;
185
186     if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
187     {
188       append_0x01_2 (wordr0, wordr1, pw_r_len);
189
190       switch_buffer_by_offset (wordr0, wordr1, wordr2, wordr3, pw_l_len);
191     }
192
193     u32 w0[4];
194
195     w0[0] = wordl0[0] | wordr0[0];
196     w0[1] = wordl0[1] | wordr0[1];
197     w0[2] = wordl0[2] | wordr0[2];
198     w0[3] = wordl0[3] | wordr0[3];
199
200     u32 w1[4];
201
202     w1[0] = wordl1[0] | wordr1[0];
203     w1[1] = wordl1[1] | wordr1[1];
204     w1[2] = wordl1[2] | wordr1[2];
205     w1[3] = wordl1[3] | wordr1[3];
206
207     u32 w2[4];
208
209     w2[0] = wordl2[0] | wordr2[0];
210     w2[1] = wordl2[1] | wordr2[1];
211     w2[2] = wordl2[2] | wordr2[2];
212     w2[3] = wordl2[3] | wordr2[3];
213
214     u32 w3[4];
215
216     w3[0] = wordl3[0] | wordr3[0];
217     w3[1] = wordl3[1] | wordr3[1];
218     w3[2] = pw_len * 8;
219     w3[3] = 0;
220
221     u64 st[25];
222
223     #ifdef VECT_SIZE1
224     st[ 0] = (u64x) (w0[0])               | (u64x) (w0[1]) << 32;
225     st[ 1] = (u64x) (w0[2])               | (u64x) (w0[3]) << 32;
226     st[ 2] = (u64x) (w1[0])               | (u64x) (w1[1]) << 32;
227     st[ 3] = (u64x) (w1[2])               | (u64x) (w1[3]) << 32;
228     #endif
229
230     #ifdef VECT_SIZE2
231     st[ 0] = (u64x) (w0[0].s0, w0[0].s1)  | (u64x) (w0[1].s0, w0[1].s1) << 32;
232     st[ 1] = (u64x) (w0[2].s0, w0[2].s1)  | (u64x) (w0[3].s0, w0[3].s1) << 32;
233     st[ 2] = (u64x) (w1[0].s0, w1[0].s1)  | (u64x) (w1[1].s0, w1[1].s1) << 32;
234     st[ 3] = (u64x) (w1[2].s0, w1[2].s1)  | (u64x) (w1[3].s0, w1[3].s1) << 32;
235     #endif
236
237     st[ 4] = 0;
238     st[ 5] = 0;
239     st[ 6] = 0;
240     st[ 7] = 0;
241     st[ 8] = 0;
242     st[ 9] = 0;
243     st[10] = 0;
244     st[11] = 0;
245     st[12] = 0;
246     st[13] = 0;
247     st[14] = 0;
248     st[15] = 0;
249     st[16] = 0;
250     st[17] = 0;
251     st[18] = 0;
252     st[19] = 0;
253     st[20] = 0;
254     st[21] = 0;
255     st[22] = 0;
256     st[23] = 0;
257     st[24] = 0;
258
259     st[add80w] |= 0x8000000000000000;
260
261     int round;
262
263     for (round = 0; round < KECCAK_ROUNDS; round++)
264     {
265       // Theta
266
267       u64 bc0 = Theta1 (0);
268       u64 bc1 = Theta1 (1);
269       u64 bc2 = Theta1 (2);
270       u64 bc3 = Theta1 (3);
271       u64 bc4 = Theta1 (4);
272
273       u64 t;
274
275       t = bc4 ^ rotl64 (bc1, 1); Theta2 (0);
276       t = bc0 ^ rotl64 (bc2, 1); Theta2 (1);
277       t = bc1 ^ rotl64 (bc3, 1); Theta2 (2);
278       t = bc2 ^ rotl64 (bc4, 1); Theta2 (3);
279       t = bc3 ^ rotl64 (bc0, 1); Theta2 (4);
280
281       // Rho Pi
282
283       t = st[1];
284
285       Rho_Pi (0);
286       Rho_Pi (1);
287       Rho_Pi (2);
288       Rho_Pi (3);
289       Rho_Pi (4);
290       Rho_Pi (5);
291       Rho_Pi (6);
292       Rho_Pi (7);
293       Rho_Pi (8);
294       Rho_Pi (9);
295       Rho_Pi (10);
296       Rho_Pi (11);
297       Rho_Pi (12);
298       Rho_Pi (13);
299       Rho_Pi (14);
300       Rho_Pi (15);
301       Rho_Pi (16);
302       Rho_Pi (17);
303       Rho_Pi (18);
304       Rho_Pi (19);
305       Rho_Pi (20);
306       Rho_Pi (21);
307       Rho_Pi (22);
308       Rho_Pi (23);
309
310       //  Chi
311
312       Chi (0);
313       Chi (5);
314       Chi (10);
315       Chi (15);
316       Chi (20);
317
318       //  Iota
319
320       st[0] ^= keccakf_rndc[round];
321     }
322
323     const u32 r0 = l32_from_64 (st[1]);
324     const u32 r1 = h32_from_64 (st[1]);
325     const u32 r2 = l32_from_64 (st[2]);
326     const u32 r3 = h32_from_64 (st[2]);
327
328     #include COMPARE_M
329   }
330 }
331
332 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05000_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)
333 {
334 }
335
336 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05000_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)
337 {
338 }
339
340 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05000_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)
341 {
342   /**
343    * modifier
344    */
345
346   const u32 lid = get_local_id (0);
347
348   /**
349    * base
350    */
351
352   const u32 gid = get_global_id (0);
353
354   if (gid >= gid_max) return;
355
356   u32 wordl0[4];
357
358   wordl0[0] = pws[gid].i[ 0];
359   wordl0[1] = pws[gid].i[ 1];
360   wordl0[2] = pws[gid].i[ 2];
361   wordl0[3] = pws[gid].i[ 3];
362
363   u32 wordl1[4];
364
365   wordl1[0] = pws[gid].i[ 4];
366   wordl1[1] = pws[gid].i[ 5];
367   wordl1[2] = pws[gid].i[ 6];
368   wordl1[3] = pws[gid].i[ 7];
369
370   u32 wordl2[4];
371
372   wordl2[0] = 0;
373   wordl2[1] = 0;
374   wordl2[2] = 0;
375   wordl2[3] = 0;
376
377   u32 wordl3[4];
378
379   wordl3[0] = 0;
380   wordl3[1] = 0;
381   wordl3[2] = 0;
382   wordl3[3] = 0;
383
384   const u32 pw_l_len = pws[gid].pw_len;
385
386   if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
387   {
388     append_0x01_2 (wordl0, wordl1, pw_l_len);
389
390     switch_buffer_by_offset (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
391   }
392
393   /**
394    * digest
395    */
396
397   const u32 search[4] =
398   {
399     digests_buf[digests_offset].digest_buf[DGST_R0],
400     digests_buf[digests_offset].digest_buf[DGST_R1],
401     digests_buf[digests_offset].digest_buf[DGST_R2],
402     digests_buf[digests_offset].digest_buf[DGST_R3]
403   };
404
405   /**
406    * 0x80 keccak, very special
407    */
408
409   const u32 mdlen = salt_bufs[salt_pos].keccak_mdlen;
410
411   const u32 rsiz = 200 - (2 * mdlen);
412
413   const u32 add80w = (rsiz - 1) / 8;
414
415   /**
416    * loop
417    */
418
419   for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
420   {
421     const u32 pw_r_len = combs_buf[il_pos].pw_len;
422
423     const u32 pw_len = pw_l_len + pw_r_len;
424
425     u32 wordr0[4];
426
427     wordr0[0] = combs_buf[il_pos].i[0];
428     wordr0[1] = combs_buf[il_pos].i[1];
429     wordr0[2] = combs_buf[il_pos].i[2];
430     wordr0[3] = combs_buf[il_pos].i[3];
431
432     u32 wordr1[4];
433
434     wordr1[0] = combs_buf[il_pos].i[4];
435     wordr1[1] = combs_buf[il_pos].i[5];
436     wordr1[2] = combs_buf[il_pos].i[6];
437     wordr1[3] = combs_buf[il_pos].i[7];
438
439     u32 wordr2[4];
440
441     wordr2[0] = 0;
442     wordr2[1] = 0;
443     wordr2[2] = 0;
444     wordr2[3] = 0;
445
446     u32 wordr3[4];
447
448     wordr3[0] = 0;
449     wordr3[1] = 0;
450     wordr3[2] = 0;
451     wordr3[3] = 0;
452
453     if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
454     {
455       append_0x01_2 (wordr0, wordr1, pw_r_len);
456
457       switch_buffer_by_offset (wordr0, wordr1, wordr2, wordr3, pw_l_len);
458     }
459
460     u32 w0[4];
461
462     w0[0] = wordl0[0] | wordr0[0];
463     w0[1] = wordl0[1] | wordr0[1];
464     w0[2] = wordl0[2] | wordr0[2];
465     w0[3] = wordl0[3] | wordr0[3];
466
467     u32 w1[4];
468
469     w1[0] = wordl1[0] | wordr1[0];
470     w1[1] = wordl1[1] | wordr1[1];
471     w1[2] = wordl1[2] | wordr1[2];
472     w1[3] = wordl1[3] | wordr1[3];
473
474     u32 w2[4];
475
476     w2[0] = wordl2[0] | wordr2[0];
477     w2[1] = wordl2[1] | wordr2[1];
478     w2[2] = wordl2[2] | wordr2[2];
479     w2[3] = wordl2[3] | wordr2[3];
480
481     u32 w3[4];
482
483     w3[0] = wordl3[0] | wordr3[0];
484     w3[1] = wordl3[1] | wordr3[1];
485     w3[2] = pw_len * 8;
486     w3[3] = 0;
487
488     u64 st[25];
489
490     #ifdef VECT_SIZE1
491     st[ 0] = (u64x) (w0[0])               | (u64x) (w0[1]) << 32;
492     st[ 1] = (u64x) (w0[2])               | (u64x) (w0[3]) << 32;
493     st[ 2] = (u64x) (w1[0])               | (u64x) (w1[1]) << 32;
494     st[ 3] = (u64x) (w1[2])               | (u64x) (w1[3]) << 32;
495     #endif
496
497     #ifdef VECT_SIZE2
498     st[ 0] = (u64x) (w0[0].s0, w0[0].s1)  | (u64x) (w0[1].s0, w0[1].s1) << 32;
499     st[ 1] = (u64x) (w0[2].s0, w0[2].s1)  | (u64x) (w0[3].s0, w0[3].s1) << 32;
500     st[ 2] = (u64x) (w1[0].s0, w1[0].s1)  | (u64x) (w1[1].s0, w1[1].s1) << 32;
501     st[ 3] = (u64x) (w1[2].s0, w1[2].s1)  | (u64x) (w1[3].s0, w1[3].s1) << 32;
502     #endif
503
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 __attribute__((reqd_work_group_size (64, 1, 1))) m05000_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)
600 {
601 }
602
603 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05000_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)
604 {
605 }