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"
17 __kernel void m00900_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)
23 const u32 lid = get_local_id (0);
29 const u32 gid = get_global_id (0);
31 if (gid >= gid_max) return;
36 pw_buf0[0] = pws[gid].i[0];
37 pw_buf0[1] = pws[gid].i[1];
38 pw_buf0[2] = pws[gid].i[2];
39 pw_buf0[3] = pws[gid].i[3];
40 pw_buf1[0] = pws[gid].i[4];
41 pw_buf1[1] = pws[gid].i[5];
42 pw_buf1[2] = pws[gid].i[6];
43 pw_buf1[3] = pws[gid].i[7];
45 const u32 pw_l_len = pws[gid].pw_len;
51 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
53 const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos);
55 const u32x pw_len = pw_l_len + pw_r_len;
58 * concat password candidate
61 u32x wordl0[4] = { 0 };
62 u32x wordl1[4] = { 0 };
63 u32x wordl2[4] = { 0 };
64 u32x wordl3[4] = { 0 };
66 wordl0[0] = pw_buf0[0];
67 wordl0[1] = pw_buf0[1];
68 wordl0[2] = pw_buf0[2];
69 wordl0[3] = pw_buf0[3];
70 wordl1[0] = pw_buf1[0];
71 wordl1[1] = pw_buf1[1];
72 wordl1[2] = pw_buf1[2];
73 wordl1[3] = pw_buf1[3];
75 u32x wordr0[4] = { 0 };
76 u32x wordr1[4] = { 0 };
77 u32x wordr2[4] = { 0 };
78 u32x wordr3[4] = { 0 };
80 wordr0[0] = ix_create_combt (combs_buf, il_pos, 0);
81 wordr0[1] = ix_create_combt (combs_buf, il_pos, 1);
82 wordr0[2] = ix_create_combt (combs_buf, il_pos, 2);
83 wordr0[3] = ix_create_combt (combs_buf, il_pos, 3);
84 wordr1[0] = ix_create_combt (combs_buf, il_pos, 4);
85 wordr1[1] = ix_create_combt (combs_buf, il_pos, 5);
86 wordr1[2] = ix_create_combt (combs_buf, il_pos, 6);
87 wordr1[3] = ix_create_combt (combs_buf, il_pos, 7);
89 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
91 switch_buffer_by_offset_le_VV (wordr0, wordr1, wordr2, wordr3, pw_l_len);
95 switch_buffer_by_offset_le_VV (wordl0, wordl1, wordl2, wordl3, pw_r_len);
103 w0[0] = wordl0[0] | wordr0[0];
104 w0[1] = wordl0[1] | wordr0[1];
105 w0[2] = wordl0[2] | wordr0[2];
106 w0[3] = wordl0[3] | wordr0[3];
107 w1[0] = wordl1[0] | wordr1[0];
108 w1[1] = wordl1[1] | wordr1[1];
109 w1[2] = wordl1[2] | wordr1[2];
110 w1[3] = wordl1[3] | wordr1[3];
111 w2[0] = wordl2[0] | wordr2[0];
112 w2[1] = wordl2[1] | wordr2[1];
113 w2[2] = wordl2[2] | wordr2[2];
114 w2[3] = wordl2[3] | wordr2[3];
115 w3[0] = wordl3[0] | wordr3[0];
116 w3[1] = wordl3[1] | wordr3[1];
129 MD4_STEP (MD4_Fo, a, b, c, d, w0[0], MD4C00, MD4S00);
130 MD4_STEP (MD4_Fo, d, a, b, c, w0[1], MD4C00, MD4S01);
131 MD4_STEP (MD4_Fo, c, d, a, b, w0[2], MD4C00, MD4S02);
132 MD4_STEP (MD4_Fo, b, c, d, a, w0[3], MD4C00, MD4S03);
133 MD4_STEP (MD4_Fo, a, b, c, d, w1[0], MD4C00, MD4S00);
134 MD4_STEP (MD4_Fo, d, a, b, c, w1[1], MD4C00, MD4S01);
135 MD4_STEP (MD4_Fo, c, d, a, b, w1[2], MD4C00, MD4S02);
136 MD4_STEP (MD4_Fo, b, c, d, a, w1[3], MD4C00, MD4S03);
137 MD4_STEP (MD4_Fo, a, b, c, d, w2[0], MD4C00, MD4S00);
138 MD4_STEP (MD4_Fo, d, a, b, c, w2[1], MD4C00, MD4S01);
139 MD4_STEP (MD4_Fo, c, d, a, b, w2[2], MD4C00, MD4S02);
140 MD4_STEP (MD4_Fo, b, c, d, a, w2[3], MD4C00, MD4S03);
141 MD4_STEP (MD4_Fo, a, b, c, d, w3[0], MD4C00, MD4S00);
142 MD4_STEP (MD4_Fo, d, a, b, c, w3[1], MD4C00, MD4S01);
143 MD4_STEP (MD4_Fo, c, d, a, b, w3[2], MD4C00, MD4S02);
144 MD4_STEP (MD4_Fo, b, c, d, a, w3[3], MD4C00, MD4S03);
146 MD4_STEP (MD4_Go, a, b, c, d, w0[0], MD4C01, MD4S10);
147 MD4_STEP (MD4_Go, d, a, b, c, w1[0], MD4C01, MD4S11);
148 MD4_STEP (MD4_Go, c, d, a, b, w2[0], MD4C01, MD4S12);
149 MD4_STEP (MD4_Go, b, c, d, a, w3[0], MD4C01, MD4S13);
150 MD4_STEP (MD4_Go, a, b, c, d, w0[1], MD4C01, MD4S10);
151 MD4_STEP (MD4_Go, d, a, b, c, w1[1], MD4C01, MD4S11);
152 MD4_STEP (MD4_Go, c, d, a, b, w2[1], MD4C01, MD4S12);
153 MD4_STEP (MD4_Go, b, c, d, a, w3[1], MD4C01, MD4S13);
154 MD4_STEP (MD4_Go, a, b, c, d, w0[2], MD4C01, MD4S10);
155 MD4_STEP (MD4_Go, d, a, b, c, w1[2], MD4C01, MD4S11);
156 MD4_STEP (MD4_Go, c, d, a, b, w2[2], MD4C01, MD4S12);
157 MD4_STEP (MD4_Go, b, c, d, a, w3[2], MD4C01, MD4S13);
158 MD4_STEP (MD4_Go, a, b, c, d, w0[3], MD4C01, MD4S10);
159 MD4_STEP (MD4_Go, d, a, b, c, w1[3], MD4C01, MD4S11);
160 MD4_STEP (MD4_Go, c, d, a, b, w2[3], MD4C01, MD4S12);
161 MD4_STEP (MD4_Go, b, c, d, a, w3[3], MD4C01, MD4S13);
163 MD4_STEP (MD4_H , a, b, c, d, w0[0], MD4C02, MD4S20);
164 MD4_STEP (MD4_H , d, a, b, c, w2[0], MD4C02, MD4S21);
165 MD4_STEP (MD4_H , c, d, a, b, w1[0], MD4C02, MD4S22);
166 MD4_STEP (MD4_H , b, c, d, a, w3[0], MD4C02, MD4S23);
167 MD4_STEP (MD4_H , a, b, c, d, w0[2], MD4C02, MD4S20);
168 MD4_STEP (MD4_H , d, a, b, c, w2[2], MD4C02, MD4S21);
169 MD4_STEP (MD4_H , c, d, a, b, w1[2], MD4C02, MD4S22);
170 MD4_STEP (MD4_H , b, c, d, a, w3[2], MD4C02, MD4S23);
171 MD4_STEP (MD4_H , a, b, c, d, w0[1], MD4C02, MD4S20);
172 MD4_STEP (MD4_H , d, a, b, c, w2[1], MD4C02, MD4S21);
173 MD4_STEP (MD4_H , c, d, a, b, w1[1], MD4C02, MD4S22);
174 MD4_STEP (MD4_H , b, c, d, a, w3[1], MD4C02, MD4S23);
175 MD4_STEP (MD4_H , a, b, c, d, w0[3], MD4C02, MD4S20);
176 MD4_STEP (MD4_H , d, a, b, c, w2[3], MD4C02, MD4S21);
177 MD4_STEP (MD4_H , c, d, a, b, w1[3], MD4C02, MD4S22);
178 MD4_STEP (MD4_H , b, c, d, a, w3[3], MD4C02, MD4S23);
180 COMPARE_M_SIMD (a, d, c, b);
184 __kernel void m00900_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)
188 __kernel void m00900_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)
192 __kernel void m00900_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)
198 const u32 lid = get_local_id (0);
204 const u32 gid = get_global_id (0);
206 if (gid >= gid_max) return;
211 pw_buf0[0] = pws[gid].i[0];
212 pw_buf0[1] = pws[gid].i[1];
213 pw_buf0[2] = pws[gid].i[2];
214 pw_buf0[3] = pws[gid].i[3];
215 pw_buf1[0] = pws[gid].i[4];
216 pw_buf1[1] = pws[gid].i[5];
217 pw_buf1[2] = pws[gid].i[6];
218 pw_buf1[3] = pws[gid].i[7];
220 const u32 pw_l_len = pws[gid].pw_len;
226 const u32 search[4] =
228 digests_buf[digests_offset].digest_buf[DGST_R0],
229 digests_buf[digests_offset].digest_buf[DGST_R1],
230 digests_buf[digests_offset].digest_buf[DGST_R2],
231 digests_buf[digests_offset].digest_buf[DGST_R3]
238 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
240 const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos);
242 const u32x pw_len = pw_l_len + pw_r_len;
245 * concat password candidate
248 u32x wordl0[4] = { 0 };
249 u32x wordl1[4] = { 0 };
250 u32x wordl2[4] = { 0 };
251 u32x wordl3[4] = { 0 };
253 wordl0[0] = pw_buf0[0];
254 wordl0[1] = pw_buf0[1];
255 wordl0[2] = pw_buf0[2];
256 wordl0[3] = pw_buf0[3];
257 wordl1[0] = pw_buf1[0];
258 wordl1[1] = pw_buf1[1];
259 wordl1[2] = pw_buf1[2];
260 wordl1[3] = pw_buf1[3];
262 u32x wordr0[4] = { 0 };
263 u32x wordr1[4] = { 0 };
264 u32x wordr2[4] = { 0 };
265 u32x wordr3[4] = { 0 };
267 wordr0[0] = ix_create_combt (combs_buf, il_pos, 0);
268 wordr0[1] = ix_create_combt (combs_buf, il_pos, 1);
269 wordr0[2] = ix_create_combt (combs_buf, il_pos, 2);
270 wordr0[3] = ix_create_combt (combs_buf, il_pos, 3);
271 wordr1[0] = ix_create_combt (combs_buf, il_pos, 4);
272 wordr1[1] = ix_create_combt (combs_buf, il_pos, 5);
273 wordr1[2] = ix_create_combt (combs_buf, il_pos, 6);
274 wordr1[3] = ix_create_combt (combs_buf, il_pos, 7);
276 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
278 switch_buffer_by_offset_le_VV (wordr0, wordr1, wordr2, wordr3, pw_l_len);
282 switch_buffer_by_offset_le_VV (wordl0, wordl1, wordl2, wordl3, pw_r_len);
290 w0[0] = wordl0[0] | wordr0[0];
291 w0[1] = wordl0[1] | wordr0[1];
292 w0[2] = wordl0[2] | wordr0[2];
293 w0[3] = wordl0[3] | wordr0[3];
294 w1[0] = wordl1[0] | wordr1[0];
295 w1[1] = wordl1[1] | wordr1[1];
296 w1[2] = wordl1[2] | wordr1[2];
297 w1[3] = wordl1[3] | wordr1[3];
298 w2[0] = wordl2[0] | wordr2[0];
299 w2[1] = wordl2[1] | wordr2[1];
300 w2[2] = wordl2[2] | wordr2[2];
301 w2[3] = wordl2[3] | wordr2[3];
302 w3[0] = wordl3[0] | wordr3[0];
303 w3[1] = wordl3[1] | wordr3[1];
316 MD4_STEP (MD4_Fo, a, b, c, d, w0[0], MD4C00, MD4S00);
317 MD4_STEP (MD4_Fo, d, a, b, c, w0[1], MD4C00, MD4S01);
318 MD4_STEP (MD4_Fo, c, d, a, b, w0[2], MD4C00, MD4S02);
319 MD4_STEP (MD4_Fo, b, c, d, a, w0[3], MD4C00, MD4S03);
320 MD4_STEP (MD4_Fo, a, b, c, d, w1[0], MD4C00, MD4S00);
321 MD4_STEP (MD4_Fo, d, a, b, c, w1[1], MD4C00, MD4S01);
322 MD4_STEP (MD4_Fo, c, d, a, b, w1[2], MD4C00, MD4S02);
323 MD4_STEP (MD4_Fo, b, c, d, a, w1[3], MD4C00, MD4S03);
324 MD4_STEP (MD4_Fo, a, b, c, d, w2[0], MD4C00, MD4S00);
325 MD4_STEP (MD4_Fo, d, a, b, c, w2[1], MD4C00, MD4S01);
326 MD4_STEP (MD4_Fo, c, d, a, b, w2[2], MD4C00, MD4S02);
327 MD4_STEP (MD4_Fo, b, c, d, a, w2[3], MD4C00, MD4S03);
328 MD4_STEP (MD4_Fo, a, b, c, d, w3[0], MD4C00, MD4S00);
329 MD4_STEP (MD4_Fo, d, a, b, c, w3[1], MD4C00, MD4S01);
330 MD4_STEP (MD4_Fo, c, d, a, b, w3[2], MD4C00, MD4S02);
331 MD4_STEP (MD4_Fo, b, c, d, a, w3[3], MD4C00, MD4S03);
333 MD4_STEP (MD4_Go, a, b, c, d, w0[0], MD4C01, MD4S10);
334 MD4_STEP (MD4_Go, d, a, b, c, w1[0], MD4C01, MD4S11);
335 MD4_STEP (MD4_Go, c, d, a, b, w2[0], MD4C01, MD4S12);
336 MD4_STEP (MD4_Go, b, c, d, a, w3[0], MD4C01, MD4S13);
337 MD4_STEP (MD4_Go, a, b, c, d, w0[1], MD4C01, MD4S10);
338 MD4_STEP (MD4_Go, d, a, b, c, w1[1], MD4C01, MD4S11);
339 MD4_STEP (MD4_Go, c, d, a, b, w2[1], MD4C01, MD4S12);
340 MD4_STEP (MD4_Go, b, c, d, a, w3[1], MD4C01, MD4S13);
341 MD4_STEP (MD4_Go, a, b, c, d, w0[2], MD4C01, MD4S10);
342 MD4_STEP (MD4_Go, d, a, b, c, w1[2], MD4C01, MD4S11);
343 MD4_STEP (MD4_Go, c, d, a, b, w2[2], MD4C01, MD4S12);
344 MD4_STEP (MD4_Go, b, c, d, a, w3[2], MD4C01, MD4S13);
345 MD4_STEP (MD4_Go, a, b, c, d, w0[3], MD4C01, MD4S10);
346 MD4_STEP (MD4_Go, d, a, b, c, w1[3], MD4C01, MD4S11);
347 MD4_STEP (MD4_Go, c, d, a, b, w2[3], MD4C01, MD4S12);
348 MD4_STEP (MD4_Go, b, c, d, a, w3[3], MD4C01, MD4S13);
350 MD4_STEP (MD4_H , a, b, c, d, w0[0], MD4C02, MD4S20);
351 MD4_STEP (MD4_H , d, a, b, c, w2[0], MD4C02, MD4S21);
352 MD4_STEP (MD4_H , c, d, a, b, w1[0], MD4C02, MD4S22);
353 MD4_STEP (MD4_H , b, c, d, a, w3[0], MD4C02, MD4S23);
354 MD4_STEP (MD4_H , a, b, c, d, w0[2], MD4C02, MD4S20);
355 MD4_STEP (MD4_H , d, a, b, c, w2[2], MD4C02, MD4S21);
356 MD4_STEP (MD4_H , c, d, a, b, w1[2], MD4C02, MD4S22);
357 MD4_STEP (MD4_H , b, c, d, a, w3[2], MD4C02, MD4S23);
358 MD4_STEP (MD4_H , a, b, c, d, w0[1], MD4C02, MD4S20);
359 MD4_STEP (MD4_H , d, a, b, c, w2[1], MD4C02, MD4S21);
360 MD4_STEP (MD4_H , c, d, a, b, w1[1], MD4C02, MD4S22);
361 MD4_STEP (MD4_H , b, c, d, a, w3[1], MD4C02, MD4S23);
362 MD4_STEP (MD4_H , a, b, c, d, w0[3], MD4C02, MD4S20);
364 if (MATCHES_NONE_VS (a, search[0])) continue;
366 MD4_STEP (MD4_H , d, a, b, c, w2[3], MD4C02, MD4S21);
367 MD4_STEP (MD4_H , c, d, a, b, w1[3], MD4C02, MD4S22);
368 MD4_STEP (MD4_H , b, c, d, a, w3[3], MD4C02, MD4S23);
370 COMPARE_M_SIMD (a, d, c, b);
374 __kernel void m00900_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)
378 __kernel void m00900_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)