Fixed all gpu code (see PR #179 for details)
[hashcat.git] / OpenCL / m08600_a0.cl
1 /**
2  * Authors.....: Jens Steube <jens.steube@gmail.com>
3  *               Gabriele Gristina <matrix@hashcat.net>
4  *
5  * License.....: MIT
6  */
7
8 #define _LOTUS5_
9
10 #include "include/constants.h"
11 #include "include/kernel_vendor.h"
12
13 #define DGST_R0 0
14 #define DGST_R1 1
15 #define DGST_R2 2
16 #define DGST_R3 3
17
18 #include "include/kernel_functions.c"
19 #include "OpenCL/types_ocl.c"
20 #include "OpenCL/common.c"
21 #include "include/rp_kernel.h"
22 #include "OpenCL/rp.c"
23
24 #define COMPARE_S "OpenCL/check_single_comp4.c"
25 #define COMPARE_M "OpenCL/check_multi_comp4.c"
26
27 __constant u32 lotus_magic_table[256] =
28 {
29   0xbd, 0x56, 0xea, 0xf2, 0xa2, 0xf1, 0xac, 0x2a,
30   0xb0, 0x93, 0xd1, 0x9c, 0x1b, 0x33, 0xfd, 0xd0,
31   0x30, 0x04, 0xb6, 0xdc, 0x7d, 0xdf, 0x32, 0x4b,
32   0xf7, 0xcb, 0x45, 0x9b, 0x31, 0xbb, 0x21, 0x5a,
33   0x41, 0x9f, 0xe1, 0xd9, 0x4a, 0x4d, 0x9e, 0xda,
34   0xa0, 0x68, 0x2c, 0xc3, 0x27, 0x5f, 0x80, 0x36,
35   0x3e, 0xee, 0xfb, 0x95, 0x1a, 0xfe, 0xce, 0xa8,
36   0x34, 0xa9, 0x13, 0xf0, 0xa6, 0x3f, 0xd8, 0x0c,
37   0x78, 0x24, 0xaf, 0x23, 0x52, 0xc1, 0x67, 0x17,
38   0xf5, 0x66, 0x90, 0xe7, 0xe8, 0x07, 0xb8, 0x60,
39   0x48, 0xe6, 0x1e, 0x53, 0xf3, 0x92, 0xa4, 0x72,
40   0x8c, 0x08, 0x15, 0x6e, 0x86, 0x00, 0x84, 0xfa,
41   0xf4, 0x7f, 0x8a, 0x42, 0x19, 0xf6, 0xdb, 0xcd,
42   0x14, 0x8d, 0x50, 0x12, 0xba, 0x3c, 0x06, 0x4e,
43   0xec, 0xb3, 0x35, 0x11, 0xa1, 0x88, 0x8e, 0x2b,
44   0x94, 0x99, 0xb7, 0x71, 0x74, 0xd3, 0xe4, 0xbf,
45   0x3a, 0xde, 0x96, 0x0e, 0xbc, 0x0a, 0xed, 0x77,
46   0xfc, 0x37, 0x6b, 0x03, 0x79, 0x89, 0x62, 0xc6,
47   0xd7, 0xc0, 0xd2, 0x7c, 0x6a, 0x8b, 0x22, 0xa3,
48   0x5b, 0x05, 0x5d, 0x02, 0x75, 0xd5, 0x61, 0xe3,
49   0x18, 0x8f, 0x55, 0x51, 0xad, 0x1f, 0x0b, 0x5e,
50   0x85, 0xe5, 0xc2, 0x57, 0x63, 0xca, 0x3d, 0x6c,
51   0xb4, 0xc5, 0xcc, 0x70, 0xb2, 0x91, 0x59, 0x0d,
52   0x47, 0x20, 0xc8, 0x4f, 0x58, 0xe0, 0x01, 0xe2,
53   0x16, 0x38, 0xc4, 0x6f, 0x3b, 0x0f, 0x65, 0x46,
54   0xbe, 0x7e, 0x2d, 0x7b, 0x82, 0xf9, 0x40, 0xb5,
55   0x1d, 0x73, 0xf8, 0xeb, 0x26, 0xc7, 0x87, 0x97,
56   0x25, 0x54, 0xb1, 0x28, 0xaa, 0x98, 0x9d, 0xa5,
57   0x64, 0x6d, 0x7a, 0xd4, 0x10, 0x81, 0x44, 0xef,
58   0x49, 0xd6, 0xae, 0x2e, 0xdd, 0x76, 0x5c, 0x2f,
59   0xa7, 0x1c, 0xc9, 0x09, 0x69, 0x9a, 0x83, 0xcf,
60   0x29, 0x39, 0xb9, 0xe9, 0x4c, 0xff, 0x43, 0xab,
61 };
62
63 #define BOX(S,i) (S)[(i)]
64
65 static void lotus_mix (u32 *in, __local u32 *s_lotus_magic_table)
66 {
67   u32 p = 0;
68
69   for (int i = 0; i < 18; i++)
70   {
71     u32 s = 48;
72
73     #pragma unroll 12
74     for (int j = 0; j < 12; j++)
75     {
76       u32 tmp_in = in[j];
77       u32 tmp_out = 0;
78
79       p = (p + s--) & 0xff; p = ((tmp_in >>  0) & 0xff) ^ BOX (s_lotus_magic_table, p); tmp_out |= p <<  0;
80       p = (p + s--) & 0xff; p = ((tmp_in >>  8) & 0xff) ^ BOX (s_lotus_magic_table, p); tmp_out |= p <<  8;
81       p = (p + s--) & 0xff; p = ((tmp_in >> 16) & 0xff) ^ BOX (s_lotus_magic_table, p); tmp_out |= p << 16;
82       p = (p + s--) & 0xff; p = ((tmp_in >> 24) & 0xff) ^ BOX (s_lotus_magic_table, p); tmp_out |= p << 24;
83
84       in[j] = tmp_out;
85     }
86   }
87 }
88
89 static void lotus_transform_password (u32 in[4], u32 out[4], __local u32 *s_lotus_magic_table)
90 {
91   u32 t = out[3] >> 24;
92
93   u32 c;
94
95   #pragma unroll 4
96   for (int i = 0; i < 4; i++)
97   {
98     t ^= (in[i] >>  0) & 0xff; c = BOX (s_lotus_magic_table, t); out[i] ^= c <<  0; t = ((out[i] >>  0) & 0xff);
99     t ^= (in[i] >>  8) & 0xff; c = BOX (s_lotus_magic_table, t); out[i] ^= c <<  8; t = ((out[i] >>  8) & 0xff);
100     t ^= (in[i] >> 16) & 0xff; c = BOX (s_lotus_magic_table, t); out[i] ^= c << 16; t = ((out[i] >> 16) & 0xff);
101     t ^= (in[i] >> 24) & 0xff; c = BOX (s_lotus_magic_table, t); out[i] ^= c << 24; t = ((out[i] >> 24) & 0xff);
102   }
103 }
104
105 static void pad (u32 w[4], const u32 len)
106 {
107   const u32 val = 16 - len;
108
109   const u32 mask1 = val << 24;
110
111   const u32 mask2 = val << 16
112                    | val << 24;
113
114   const u32 mask3 = val <<  8
115                    | val << 16
116                    | val << 24;
117
118   const u32 mask4 = val <<  0
119                    | val <<  8
120                    | val << 16
121                    | val << 24;
122
123   switch (len)
124   {
125     case  0:  w[0]  = mask4;
126               w[1]  = mask4;
127               w[2]  = mask4;
128               w[3]  = mask4;
129               break;
130     case  1:  w[0] |= mask3;
131               w[1]  = mask4;
132               w[2]  = mask4;
133               w[3]  = mask4;
134               break;
135     case  2:  w[0] |= mask2;
136               w[1]  = mask4;
137               w[2]  = mask4;
138               w[3]  = mask4;
139               break;
140     case  3:  w[0] |= mask1;
141               w[1]  = mask4;
142               w[2]  = mask4;
143               w[3]  = mask4;
144               break;
145     case  4:  w[1]  = mask4;
146               w[2]  = mask4;
147               w[3]  = mask4;
148               break;
149     case  5:  w[1] |= mask3;
150               w[2]  = mask4;
151               w[3]  = mask4;
152               break;
153     case  6:  w[1] |= mask2;
154               w[2]  = mask4;
155               w[3]  = mask4;
156               break;
157     case  7:  w[1] |= mask1;
158               w[2]  = mask4;
159               w[3]  = mask4;
160               break;
161     case  8:  w[2]  = mask4;
162               w[3]  = mask4;
163               break;
164     case  9:  w[2] |= mask3;
165               w[3]  = mask4;
166               break;
167     case 10:  w[2] |= mask2;
168               w[3]  = mask4;
169               break;
170     case 11:  w[2] |= mask1;
171               w[3]  = mask4;
172               break;
173     case 12:  w[3]  = mask4;
174               break;
175     case 13:  w[3] |= mask3;
176               break;
177     case 14:  w[3] |= mask2;
178               break;
179     case 15:  w[3] |= mask1;
180               break;
181   }
182 }
183
184 static void mdtransform_norecalc (u32 state[4], u32 block[4], __local u32 *s_lotus_magic_table)
185 {
186   u32 x[12];
187
188   x[ 0] = state[0];
189   x[ 1] = state[1];
190   x[ 2] = state[2];
191   x[ 3] = state[3];
192   x[ 4] = block[0];
193   x[ 5] = block[1];
194   x[ 6] = block[2];
195   x[ 7] = block[3];
196   x[ 8] = state[0] ^ block[0];
197   x[ 9] = state[1] ^ block[1];
198   x[10] = state[2] ^ block[2];
199   x[11] = state[3] ^ block[3];
200
201   lotus_mix (x, s_lotus_magic_table);
202
203   state[0] = x[0];
204   state[1] = x[1];
205   state[2] = x[2];
206   state[3] = x[3];
207 }
208
209 static void mdtransform (u32 state[4], u32 checksum[4], u32 block[4], __local u32 *s_lotus_magic_table)
210 {
211   mdtransform_norecalc (state, block, s_lotus_magic_table);
212
213   lotus_transform_password (block, checksum, s_lotus_magic_table);
214 }
215
216 static void domino_big_md (const u32 saved_key[16], const u32 size, u32 state[4], __local u32 *s_lotus_magic_table)
217 {
218   u32 checksum[4];
219
220   checksum[0] = 0;
221   checksum[1] = 0;
222   checksum[2] = 0;
223   checksum[3] = 0;
224
225   u32 block[4];
226
227   block[0] = saved_key[0];
228   block[1] = saved_key[1];
229   block[2] = saved_key[2];
230   block[3] = saved_key[3];
231
232   mdtransform (state, checksum, block, s_lotus_magic_table);
233
234   mdtransform_norecalc (state, checksum, s_lotus_magic_table);
235 }
236
237 __kernel void m08600_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 rules_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
238 {
239   /**
240    * base
241    */
242
243   const u32 gid = get_global_id (0);
244   const u32 lid = get_local_id (0);
245   const u32 lsz = get_local_size (0);
246
247   /**
248    * sbox
249    */
250
251   __local u32 s_lotus_magic_table[256];
252
253   for (u32 i = lid; i < 256; i += lsz)
254   {
255     s_lotus_magic_table[i] = lotus_magic_table[i];
256   }
257
258   barrier (CLK_LOCAL_MEM_FENCE);
259
260   if (gid >= gid_max) return;
261
262   /**
263    * base
264    */
265
266   u32 pw_buf0[4];
267
268   pw_buf0[0] = pws[gid].i[ 0];
269   pw_buf0[1] = pws[gid].i[ 1];
270   pw_buf0[2] = pws[gid].i[ 2];
271   pw_buf0[3] = pws[gid].i[ 3];
272
273   u32 pw_buf1[4];
274
275   pw_buf1[0] = pws[gid].i[ 4];
276   pw_buf1[1] = pws[gid].i[ 5];
277   pw_buf1[2] = pws[gid].i[ 6];
278   pw_buf1[3] = pws[gid].i[ 7];
279
280   const u32 pw_len = pws[gid].pw_len;
281
282   /**
283    * loop
284    */
285
286   for (u32 il_pos = 0; il_pos < rules_cnt; il_pos++)
287   {
288     u32 w0[4];
289
290     w0[0] = pw_buf0[0];
291     w0[1] = pw_buf0[1];
292     w0[2] = pw_buf0[2];
293     w0[3] = pw_buf0[3];
294
295     u32 w1[4];
296
297     w1[0] = pw_buf1[0];
298     w1[1] = pw_buf1[1];
299     w1[2] = pw_buf1[2];
300     w1[3] = pw_buf1[3];
301
302     u32 w2[4];
303
304     w2[0] = 0;
305     w2[1] = 0;
306     w2[2] = 0;
307     w2[3] = 0;
308
309     u32 w3[4];
310
311     w3[0] = 0;
312     w3[1] = 0;
313     w3[2] = 0;
314     w3[3] = 0;
315
316     const u32 out_len = apply_rules (rules_buf[il_pos].cmds, w0, w1, pw_len);
317
318     u32 w[16];
319
320     w[ 0] = w0[0];
321     w[ 1] = w0[1];
322     w[ 2] = w0[2];
323     w[ 3] = w0[3];
324     w[ 4] = w1[0];
325     w[ 5] = w1[1];
326     w[ 6] = w1[2];
327     w[ 7] = w1[3];
328     w[ 8] = 0;
329     w[ 9] = 0;
330     w[10] = 0;
331     w[11] = 0;
332     w[12] = 0;
333     w[13] = 0;
334     w[14] = 0;
335     w[15] = 0;
336
337     u32 state[4];
338
339     state[0] = 0;
340     state[1] = 0;
341     state[2] = 0;
342     state[3] = 0;
343
344     /**
345      * padding
346      */
347
348     if (pw_len < 16)
349     {
350       pad (&w[ 0], pw_len & 0xf);
351     }
352     else if (pw_len < 32)
353     {
354       pad (&w[ 4], pw_len & 0xf);
355     }
356     else if (pw_len < 48)
357     {
358       pad (&w[ 8], pw_len & 0xf);
359     }
360     else if (pw_len < 64)
361     {
362       pad (&w[12], pw_len & 0xf);
363     }
364
365     domino_big_md (w, pw_len, state, s_lotus_magic_table);
366
367     const u32 r0 = state[0];
368     const u32 r1 = state[1];
369     const u32 r2 = state[2];
370     const u32 r3 = state[3];
371
372     #include COMPARE_M
373   }
374 }
375
376 __kernel void m08600_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)
377 {
378 }
379
380 __kernel void m08600_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)
381 {
382 }
383
384 __kernel void m08600_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 rules_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
385 {
386   /**
387    * base
388    */
389
390   const u32 gid = get_global_id (0);
391   const u32 lid = get_local_id (0);
392   const u32 lsz = get_local_size (0);
393
394   /**
395    * sbox
396    */
397
398   __local u32 s_lotus_magic_table[256];
399
400   for (u32 i = lid; i < 256; i += lsz)
401   {
402     s_lotus_magic_table[i] = lotus_magic_table[i];
403   }
404
405   barrier (CLK_LOCAL_MEM_FENCE);
406
407   if (gid >= gid_max) return;
408
409   /**
410    * base
411    */
412
413   u32 pw_buf0[4];
414
415   pw_buf0[0] = pws[gid].i[ 0];
416   pw_buf0[1] = pws[gid].i[ 1];
417   pw_buf0[2] = pws[gid].i[ 2];
418   pw_buf0[3] = pws[gid].i[ 3];
419
420   u32 pw_buf1[4];
421
422   pw_buf1[0] = pws[gid].i[ 4];
423   pw_buf1[1] = pws[gid].i[ 5];
424   pw_buf1[2] = pws[gid].i[ 6];
425   pw_buf1[3] = pws[gid].i[ 7];
426
427   const u32 pw_len = pws[gid].pw_len;
428
429   /**
430    * digest
431    */
432
433   const u32 search[4] =
434   {
435     digests_buf[digests_offset].digest_buf[DGST_R0],
436     digests_buf[digests_offset].digest_buf[DGST_R1],
437     digests_buf[digests_offset].digest_buf[DGST_R2],
438     digests_buf[digests_offset].digest_buf[DGST_R3]
439   };
440
441   /**
442    * loop
443    */
444
445   for (u32 il_pos = 0; il_pos < rules_cnt; il_pos++)
446   {
447     u32 w0[4];
448
449     w0[0] = pw_buf0[0];
450     w0[1] = pw_buf0[1];
451     w0[2] = pw_buf0[2];
452     w0[3] = pw_buf0[3];
453
454     u32 w1[4];
455
456     w1[0] = pw_buf1[0];
457     w1[1] = pw_buf1[1];
458     w1[2] = pw_buf1[2];
459     w1[3] = pw_buf1[3];
460
461     u32 w2[4];
462
463     w2[0] = 0;
464     w2[1] = 0;
465     w2[2] = 0;
466     w2[3] = 0;
467
468     u32 w3[4];
469
470     w3[0] = 0;
471     w3[1] = 0;
472     w3[2] = 0;
473     w3[3] = 0;
474
475     const u32 out_len = apply_rules (rules_buf[il_pos].cmds, w0, w1, pw_len);
476
477     u32 w[16];
478
479     w[ 0] = w0[0];
480     w[ 1] = w0[1];
481     w[ 2] = w0[2];
482     w[ 3] = w0[3];
483     w[ 4] = w1[0];
484     w[ 5] = w1[1];
485     w[ 6] = w1[2];
486     w[ 7] = w1[3];
487     w[ 8] = 0;
488     w[ 9] = 0;
489     w[10] = 0;
490     w[11] = 0;
491     w[12] = 0;
492     w[13] = 0;
493     w[14] = 0;
494     w[15] = 0;
495
496     u32 state[4];
497
498     state[0] = 0;
499     state[1] = 0;
500     state[2] = 0;
501     state[3] = 0;
502
503     /**
504      * padding
505      */
506
507     if (pw_len < 16)
508     {
509       pad (&w[ 0], pw_len & 0xf);
510     }
511     else if (pw_len < 32)
512     {
513       pad (&w[ 4], pw_len & 0xf);
514     }
515     else if (pw_len < 48)
516     {
517       pad (&w[ 8], pw_len & 0xf);
518     }
519     else if (pw_len < 64)
520     {
521       pad (&w[12], pw_len & 0xf);
522     }
523
524     domino_big_md (w, pw_len, state, s_lotus_magic_table);
525
526     const u32 r0 = state[0];
527     const u32 r1 = state[1];
528     const u32 r2 = state[2];
529     const u32 r3 = state[3];
530
531     #include COMPARE_S
532   }
533 }
534
535 __kernel void m08600_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)
536 {
537 }
538
539 __kernel void m08600_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)
540 {
541 }