1fcb15ed1ce7d00034562f6f90b5eedaeeae5edb
[hashcat.git] / OpenCL / m09700_a1.cl
1 /**
2  * Author......: Jens Steube <jens.steube@gmail.com>
3  * License.....: MIT
4  */
5
6 #define _OLDOFFICE01_
7
8 //too much register pressure
9 //#define NEW_SIMD_CODE
10
11 #include "inc_hash_constants.h"
12 #include "inc_vendor.cl"
13
14 #define DGST_R0 0
15 #define DGST_R1 1
16 #define DGST_R2 2
17 #define DGST_R3 3
18
19 #include "inc_hash_functions.cl"
20 #include "inc_types.cl"
21 #include "inc_common.cl"
22 #include "inc_simd.cl"
23
24 typedef struct
25 {
26   u8 S[256];
27
28   u32 wtf_its_faster;
29
30 } RC4_KEY;
31
32 void swap (__local RC4_KEY *rc4_key, const u8 i, const u8 j)
33 {
34   u8 tmp;
35
36   tmp           = rc4_key->S[i];
37   rc4_key->S[i] = rc4_key->S[j];
38   rc4_key->S[j] = tmp;
39 }
40
41 void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4])
42 {
43   u32 v = 0x03020100;
44   u32 a = 0x04040404;
45
46   __local u32 *ptr = (__local u32 *) rc4_key->S;
47
48   #ifdef _unroll
49   #pragma unroll
50   #endif
51   for (u32 i = 0; i < 64; i++)
52   {
53     *ptr++ = v; v += a;
54   }
55
56   u32 j = 0;
57
58   for (u32 i = 0; i < 16; i++)
59   {
60     u32 idx = i * 16;
61
62     u32 v;
63
64     v = data[0];
65
66     j += rc4_key->S[idx] + (v >>  0); swap (rc4_key, idx, j); idx++;
67     j += rc4_key->S[idx] + (v >>  8); swap (rc4_key, idx, j); idx++;
68     j += rc4_key->S[idx] + (v >> 16); swap (rc4_key, idx, j); idx++;
69     j += rc4_key->S[idx] + (v >> 24); swap (rc4_key, idx, j); idx++;
70
71     v = data[1];
72
73     j += rc4_key->S[idx] + (v >>  0); swap (rc4_key, idx, j); idx++;
74     j += rc4_key->S[idx] + (v >>  8); swap (rc4_key, idx, j); idx++;
75     j += rc4_key->S[idx] + (v >> 16); swap (rc4_key, idx, j); idx++;
76     j += rc4_key->S[idx] + (v >> 24); swap (rc4_key, idx, j); idx++;
77
78     v = data[2];
79
80     j += rc4_key->S[idx] + (v >>  0); swap (rc4_key, idx, j); idx++;
81     j += rc4_key->S[idx] + (v >>  8); swap (rc4_key, idx, j); idx++;
82     j += rc4_key->S[idx] + (v >> 16); swap (rc4_key, idx, j); idx++;
83     j += rc4_key->S[idx] + (v >> 24); swap (rc4_key, idx, j); idx++;
84
85     v = data[3];
86
87     j += rc4_key->S[idx] + (v >>  0); swap (rc4_key, idx, j); idx++;
88     j += rc4_key->S[idx] + (v >>  8); swap (rc4_key, idx, j); idx++;
89     j += rc4_key->S[idx] + (v >> 16); swap (rc4_key, idx, j); idx++;
90     j += rc4_key->S[idx] + (v >> 24); swap (rc4_key, idx, j); idx++;
91   }
92 }
93
94 u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, const u32 in[4], u32 out[4])
95 {
96   #ifdef _unroll
97   #pragma unroll
98   #endif
99   for (u32 k = 0; k < 4; k++)
100   {
101     u32 xor4 = 0;
102
103     u8 idx;
104
105     i += 1;
106     j += rc4_key->S[i];
107
108     swap (rc4_key, i, j);
109
110     idx = rc4_key->S[i] + rc4_key->S[j];
111
112     xor4 |= rc4_key->S[idx] <<  0;
113
114     i += 1;
115     j += rc4_key->S[i];
116
117     swap (rc4_key, i, j);
118
119     idx = rc4_key->S[i] + rc4_key->S[j];
120
121     xor4 |= rc4_key->S[idx] <<  8;
122
123     i += 1;
124     j += rc4_key->S[i];
125
126     swap (rc4_key, i, j);
127
128     idx = rc4_key->S[i] + rc4_key->S[j];
129
130     xor4 |= rc4_key->S[idx] << 16;
131
132     i += 1;
133     j += rc4_key->S[i];
134
135     swap (rc4_key, i, j);
136
137     idx = rc4_key->S[i] + rc4_key->S[j];
138
139     xor4 |= rc4_key->S[idx] << 24;
140
141     out[k] = in[k] ^ xor4;
142   }
143
144   return j;
145 }
146
147 void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], const u32 w3[4], u32 digest[4])
148 {
149   u32 a = digest[0];
150   u32 b = digest[1];
151   u32 c = digest[2];
152   u32 d = digest[3];
153
154   u32 w0_t = w0[0];
155   u32 w1_t = w0[1];
156   u32 w2_t = w0[2];
157   u32 w3_t = w0[3];
158   u32 w4_t = w1[0];
159   u32 w5_t = w1[1];
160   u32 w6_t = w1[2];
161   u32 w7_t = w1[3];
162   u32 w8_t = w2[0];
163   u32 w9_t = w2[1];
164   u32 wa_t = w2[2];
165   u32 wb_t = w2[3];
166   u32 wc_t = w3[0];
167   u32 wd_t = w3[1];
168   u32 we_t = w3[2];
169   u32 wf_t = w3[3];
170
171   MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00);
172   MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01);
173   MD5_STEP (MD5_Fo, c, d, a, b, w2_t, MD5C02, MD5S02);
174   MD5_STEP (MD5_Fo, b, c, d, a, w3_t, MD5C03, MD5S03);
175   MD5_STEP (MD5_Fo, a, b, c, d, w4_t, MD5C04, MD5S00);
176   MD5_STEP (MD5_Fo, d, a, b, c, w5_t, MD5C05, MD5S01);
177   MD5_STEP (MD5_Fo, c, d, a, b, w6_t, MD5C06, MD5S02);
178   MD5_STEP (MD5_Fo, b, c, d, a, w7_t, MD5C07, MD5S03);
179   MD5_STEP (MD5_Fo, a, b, c, d, w8_t, MD5C08, MD5S00);
180   MD5_STEP (MD5_Fo, d, a, b, c, w9_t, MD5C09, MD5S01);
181   MD5_STEP (MD5_Fo, c, d, a, b, wa_t, MD5C0a, MD5S02);
182   MD5_STEP (MD5_Fo, b, c, d, a, wb_t, MD5C0b, MD5S03);
183   MD5_STEP (MD5_Fo, a, b, c, d, wc_t, MD5C0c, MD5S00);
184   MD5_STEP (MD5_Fo, d, a, b, c, wd_t, MD5C0d, MD5S01);
185   MD5_STEP (MD5_Fo, c, d, a, b, we_t, MD5C0e, MD5S02);
186   MD5_STEP (MD5_Fo, b, c, d, a, wf_t, MD5C0f, MD5S03);
187
188   MD5_STEP (MD5_Go, a, b, c, d, w1_t, MD5C10, MD5S10);
189   MD5_STEP (MD5_Go, d, a, b, c, w6_t, MD5C11, MD5S11);
190   MD5_STEP (MD5_Go, c, d, a, b, wb_t, MD5C12, MD5S12);
191   MD5_STEP (MD5_Go, b, c, d, a, w0_t, MD5C13, MD5S13);
192   MD5_STEP (MD5_Go, a, b, c, d, w5_t, MD5C14, MD5S10);
193   MD5_STEP (MD5_Go, d, a, b, c, wa_t, MD5C15, MD5S11);
194   MD5_STEP (MD5_Go, c, d, a, b, wf_t, MD5C16, MD5S12);
195   MD5_STEP (MD5_Go, b, c, d, a, w4_t, MD5C17, MD5S13);
196   MD5_STEP (MD5_Go, a, b, c, d, w9_t, MD5C18, MD5S10);
197   MD5_STEP (MD5_Go, d, a, b, c, we_t, MD5C19, MD5S11);
198   MD5_STEP (MD5_Go, c, d, a, b, w3_t, MD5C1a, MD5S12);
199   MD5_STEP (MD5_Go, b, c, d, a, w8_t, MD5C1b, MD5S13);
200   MD5_STEP (MD5_Go, a, b, c, d, wd_t, MD5C1c, MD5S10);
201   MD5_STEP (MD5_Go, d, a, b, c, w2_t, MD5C1d, MD5S11);
202   MD5_STEP (MD5_Go, c, d, a, b, w7_t, MD5C1e, MD5S12);
203   MD5_STEP (MD5_Go, b, c, d, a, wc_t, MD5C1f, MD5S13);
204
205   MD5_STEP (MD5_H , a, b, c, d, w5_t, MD5C20, MD5S20);
206   MD5_STEP (MD5_H , d, a, b, c, w8_t, MD5C21, MD5S21);
207   MD5_STEP (MD5_H , c, d, a, b, wb_t, MD5C22, MD5S22);
208   MD5_STEP (MD5_H , b, c, d, a, we_t, MD5C23, MD5S23);
209   MD5_STEP (MD5_H , a, b, c, d, w1_t, MD5C24, MD5S20);
210   MD5_STEP (MD5_H , d, a, b, c, w4_t, MD5C25, MD5S21);
211   MD5_STEP (MD5_H , c, d, a, b, w7_t, MD5C26, MD5S22);
212   MD5_STEP (MD5_H , b, c, d, a, wa_t, MD5C27, MD5S23);
213   MD5_STEP (MD5_H , a, b, c, d, wd_t, MD5C28, MD5S20);
214   MD5_STEP (MD5_H , d, a, b, c, w0_t, MD5C29, MD5S21);
215   MD5_STEP (MD5_H , c, d, a, b, w3_t, MD5C2a, MD5S22);
216   MD5_STEP (MD5_H , b, c, d, a, w6_t, MD5C2b, MD5S23);
217   MD5_STEP (MD5_H , a, b, c, d, w9_t, MD5C2c, MD5S20);
218   MD5_STEP (MD5_H , d, a, b, c, wc_t, MD5C2d, MD5S21);
219   MD5_STEP (MD5_H , c, d, a, b, wf_t, MD5C2e, MD5S22);
220   MD5_STEP (MD5_H , b, c, d, a, w2_t, MD5C2f, MD5S23);
221
222   MD5_STEP (MD5_I , a, b, c, d, w0_t, MD5C30, MD5S30);
223   MD5_STEP (MD5_I , d, a, b, c, w7_t, MD5C31, MD5S31);
224   MD5_STEP (MD5_I , c, d, a, b, we_t, MD5C32, MD5S32);
225   MD5_STEP (MD5_I , b, c, d, a, w5_t, MD5C33, MD5S33);
226   MD5_STEP (MD5_I , a, b, c, d, wc_t, MD5C34, MD5S30);
227   MD5_STEP (MD5_I , d, a, b, c, w3_t, MD5C35, MD5S31);
228   MD5_STEP (MD5_I , c, d, a, b, wa_t, MD5C36, MD5S32);
229   MD5_STEP (MD5_I , b, c, d, a, w1_t, MD5C37, MD5S33);
230   MD5_STEP (MD5_I , a, b, c, d, w8_t, MD5C38, MD5S30);
231   MD5_STEP (MD5_I , d, a, b, c, wf_t, MD5C39, MD5S31);
232   MD5_STEP (MD5_I , c, d, a, b, w6_t, MD5C3a, MD5S32);
233   MD5_STEP (MD5_I , b, c, d, a, wd_t, MD5C3b, MD5S33);
234   MD5_STEP (MD5_I , a, b, c, d, w4_t, MD5C3c, MD5S30);
235   MD5_STEP (MD5_I , d, a, b, c, wb_t, MD5C3d, MD5S31);
236   MD5_STEP (MD5_I , c, d, a, b, w2_t, MD5C3e, MD5S32);
237   MD5_STEP (MD5_I , b, c, d, a, w9_t, MD5C3f, MD5S33);
238
239   digest[0] += a;
240   digest[1] += b;
241   digest[2] += c;
242   digest[3] += d;
243 }
244
245 void gen336 (u32 digest_pre[4], u32 salt_buf[4], u32 digest[4])
246 {
247   u32 digest_t0[2];
248   u32 digest_t1[2];
249   u32 digest_t2[2];
250   u32 digest_t3[2];
251
252   digest_t0[0] = digest_pre[0];
253   digest_t0[1] = digest_pre[1] & 0xff;
254
255   digest_t1[0] =                       digest_pre[0] <<  8;
256   digest_t1[1] = digest_pre[0] >> 24 | digest_pre[1] <<  8;
257
258   digest_t2[0] =                       digest_pre[0] << 16;
259   digest_t2[1] = digest_pre[0] >> 16 | digest_pre[1] << 16;
260
261   digest_t3[0] =                       digest_pre[0] << 24;
262   digest_t3[1] = digest_pre[0] >>  8 | digest_pre[1] << 24;
263
264   u32 salt_buf_t0[4];
265   u32 salt_buf_t1[5];
266   u32 salt_buf_t2[5];
267   u32 salt_buf_t3[5];
268
269   salt_buf_t0[0] = salt_buf[0];
270   salt_buf_t0[1] = salt_buf[1];
271   salt_buf_t0[2] = salt_buf[2];
272   salt_buf_t0[3] = salt_buf[3];
273
274   salt_buf_t1[0] =                     salt_buf[0] <<  8;
275   salt_buf_t1[1] = salt_buf[0] >> 24 | salt_buf[1] <<  8;
276   salt_buf_t1[2] = salt_buf[1] >> 24 | salt_buf[2] <<  8;
277   salt_buf_t1[3] = salt_buf[2] >> 24 | salt_buf[3] <<  8;
278   salt_buf_t1[4] = salt_buf[3] >> 24;
279
280   salt_buf_t2[0] =                     salt_buf[0] << 16;
281   salt_buf_t2[1] = salt_buf[0] >> 16 | salt_buf[1] << 16;
282   salt_buf_t2[2] = salt_buf[1] >> 16 | salt_buf[2] << 16;
283   salt_buf_t2[3] = salt_buf[2] >> 16 | salt_buf[3] << 16;
284   salt_buf_t2[4] = salt_buf[3] >> 16;
285
286   salt_buf_t3[0] =                     salt_buf[0] << 24;
287   salt_buf_t3[1] = salt_buf[0] >>  8 | salt_buf[1] << 24;
288   salt_buf_t3[2] = salt_buf[1] >>  8 | salt_buf[2] << 24;
289   salt_buf_t3[3] = salt_buf[2] >>  8 | salt_buf[3] << 24;
290   salt_buf_t3[4] = salt_buf[3] >>  8;
291
292   u32 w0_t[4];
293   u32 w1_t[4];
294   u32 w2_t[4];
295   u32 w3_t[4];
296
297   // generate the 16 * 21 buffer
298
299   w0_t[0] = 0;
300   w0_t[1] = 0;
301   w0_t[2] = 0;
302   w0_t[3] = 0;
303   w1_t[0] = 0;
304   w1_t[1] = 0;
305   w1_t[2] = 0;
306   w1_t[3] = 0;
307   w2_t[0] = 0;
308   w2_t[1] = 0;
309   w2_t[2] = 0;
310   w2_t[3] = 0;
311   w3_t[0] = 0;
312   w3_t[1] = 0;
313   w3_t[2] = 0;
314   w3_t[3] = 0;
315
316   // 0..5
317   w0_t[0]  = digest_t0[0];
318   w0_t[1]  = digest_t0[1];
319
320   // 5..21
321   w0_t[1] |= salt_buf_t1[0];
322   w0_t[2]  = salt_buf_t1[1];
323   w0_t[3]  = salt_buf_t1[2];
324   w1_t[0]  = salt_buf_t1[3];
325   w1_t[1]  = salt_buf_t1[4];
326
327   // 21..26
328   w1_t[1] |= digest_t1[0];
329   w1_t[2]  = digest_t1[1];
330
331   // 26..42
332   w1_t[2] |= salt_buf_t2[0];
333   w1_t[3]  = salt_buf_t2[1];
334   w2_t[0]  = salt_buf_t2[2];
335   w2_t[1]  = salt_buf_t2[3];
336   w2_t[2]  = salt_buf_t2[4];
337
338   // 42..47
339   w2_t[2] |= digest_t2[0];
340   w2_t[3]  = digest_t2[1];
341
342   // 47..63
343   w2_t[3] |= salt_buf_t3[0];
344   w3_t[0]  = salt_buf_t3[1];
345   w3_t[1]  = salt_buf_t3[2];
346   w3_t[2]  = salt_buf_t3[3];
347   w3_t[3]  = salt_buf_t3[4];
348
349   // 63..
350
351   w3_t[3] |= digest_t3[0];
352
353   md5_transform (w0_t, w1_t, w2_t, w3_t, digest);
354
355   w0_t[0] = 0;
356   w0_t[1] = 0;
357   w0_t[2] = 0;
358   w0_t[3] = 0;
359   w1_t[0] = 0;
360   w1_t[1] = 0;
361   w1_t[2] = 0;
362   w1_t[3] = 0;
363   w2_t[0] = 0;
364   w2_t[1] = 0;
365   w2_t[2] = 0;
366   w2_t[3] = 0;
367   w3_t[0] = 0;
368   w3_t[1] = 0;
369   w3_t[2] = 0;
370   w3_t[3] = 0;
371
372   // 0..4
373   w0_t[0]  = digest_t3[1];
374
375   // 4..20
376   w0_t[1]  = salt_buf_t0[0];
377   w0_t[2]  = salt_buf_t0[1];
378   w0_t[3]  = salt_buf_t0[2];
379   w1_t[0]  = salt_buf_t0[3];
380
381   // 20..25
382   w1_t[1]  = digest_t0[0];
383   w1_t[2]  = digest_t0[1];
384
385   // 25..41
386   w1_t[2] |= salt_buf_t1[0];
387   w1_t[3]  = salt_buf_t1[1];
388   w2_t[0]  = salt_buf_t1[2];
389   w2_t[1]  = salt_buf_t1[3];
390   w2_t[2]  = salt_buf_t1[4];
391
392   // 41..46
393   w2_t[2] |= digest_t1[0];
394   w2_t[3]  = digest_t1[1];
395
396   // 46..62
397   w2_t[3] |= salt_buf_t2[0];
398   w3_t[0]  = salt_buf_t2[1];
399   w3_t[1]  = salt_buf_t2[2];
400   w3_t[2]  = salt_buf_t2[3];
401   w3_t[3]  = salt_buf_t2[4];
402
403   // 62..
404   w3_t[3] |= digest_t2[0];
405
406   md5_transform (w0_t, w1_t, w2_t, w3_t, digest);
407
408   w0_t[0] = 0;
409   w0_t[1] = 0;
410   w0_t[2] = 0;
411   w0_t[3] = 0;
412   w1_t[0] = 0;
413   w1_t[1] = 0;
414   w1_t[2] = 0;
415   w1_t[3] = 0;
416   w2_t[0] = 0;
417   w2_t[1] = 0;
418   w2_t[2] = 0;
419   w2_t[3] = 0;
420   w3_t[0] = 0;
421   w3_t[1] = 0;
422   w3_t[2] = 0;
423   w3_t[3] = 0;
424
425   // 0..3
426   w0_t[0]  = digest_t2[1];
427
428   // 3..19
429   w0_t[0] |= salt_buf_t3[0];
430   w0_t[1]  = salt_buf_t3[1];
431   w0_t[2]  = salt_buf_t3[2];
432   w0_t[3]  = salt_buf_t3[3];
433   w1_t[0]  = salt_buf_t3[4];
434
435   // 19..24
436   w1_t[0] |= digest_t3[0];
437   w1_t[1]  = digest_t3[1];
438
439   // 24..40
440   w1_t[2]  = salt_buf_t0[0];
441   w1_t[3]  = salt_buf_t0[1];
442   w2_t[0]  = salt_buf_t0[2];
443   w2_t[1]  = salt_buf_t0[3];
444
445   // 40..45
446   w2_t[2]  = digest_t0[0];
447   w2_t[3]  = digest_t0[1];
448
449   // 45..61
450   w2_t[3] |= salt_buf_t1[0];
451   w3_t[0]  = salt_buf_t1[1];
452   w3_t[1]  = salt_buf_t1[2];
453   w3_t[2]  = salt_buf_t1[3];
454   w3_t[3]  = salt_buf_t1[4];
455
456   // 61..
457   w3_t[3] |= digest_t1[0];
458
459   md5_transform (w0_t, w1_t, w2_t, w3_t, digest);
460
461   w0_t[0] = 0;
462   w0_t[1] = 0;
463   w0_t[2] = 0;
464   w0_t[3] = 0;
465   w1_t[0] = 0;
466   w1_t[1] = 0;
467   w1_t[2] = 0;
468   w1_t[3] = 0;
469   w2_t[0] = 0;
470   w2_t[1] = 0;
471   w2_t[2] = 0;
472   w2_t[3] = 0;
473   w3_t[0] = 0;
474   w3_t[1] = 0;
475   w3_t[2] = 0;
476   w3_t[3] = 0;
477
478   // 0..2
479   w0_t[0]  = digest_t1[1];
480
481   // 2..18
482   w0_t[0] |= salt_buf_t2[0];
483   w0_t[1]  = salt_buf_t2[1];
484   w0_t[2]  = salt_buf_t2[2];
485   w0_t[3]  = salt_buf_t2[3];
486   w1_t[0]  = salt_buf_t2[4];
487
488   // 18..23
489   w1_t[0] |= digest_t2[0];
490   w1_t[1]  = digest_t2[1];
491
492   // 23..39
493   w1_t[1] |= salt_buf_t3[0];
494   w1_t[2]  = salt_buf_t3[1];
495   w1_t[3]  = salt_buf_t3[2];
496   w2_t[0]  = salt_buf_t3[3];
497   w2_t[1]  = salt_buf_t3[4];
498
499   // 39..44
500   w2_t[1] |= digest_t3[0];
501   w2_t[2]  = digest_t3[1];
502
503   // 44..60
504   w2_t[3]  = salt_buf_t0[0];
505   w3_t[0]  = salt_buf_t0[1];
506   w3_t[1]  = salt_buf_t0[2];
507   w3_t[2]  = salt_buf_t0[3];
508
509   // 60..
510   w3_t[3]  = digest_t0[0];
511
512   md5_transform (w0_t, w1_t, w2_t, w3_t, digest);
513
514   w0_t[0] = 0;
515   w0_t[1] = 0;
516   w0_t[2] = 0;
517   w0_t[3] = 0;
518   w1_t[0] = 0;
519   w1_t[1] = 0;
520   w1_t[2] = 0;
521   w1_t[3] = 0;
522   w2_t[0] = 0;
523   w2_t[1] = 0;
524   w2_t[2] = 0;
525   w2_t[3] = 0;
526   w3_t[0] = 0;
527   w3_t[1] = 0;
528   w3_t[2] = 0;
529   w3_t[3] = 0;
530
531   // 0..1
532   w0_t[0]  = digest_t0[1];
533
534   // 1..17
535   w0_t[0] |= salt_buf_t1[0];
536   w0_t[1]  = salt_buf_t1[1];
537   w0_t[2]  = salt_buf_t1[2];
538   w0_t[3]  = salt_buf_t1[3];
539   w1_t[0]  = salt_buf_t1[4];
540
541   // 17..22
542   w1_t[0] |= digest_t1[0];
543   w1_t[1]  = digest_t1[1];
544
545   // 22..38
546   w1_t[1] |= salt_buf_t2[0];
547   w1_t[2]  = salt_buf_t2[1];
548   w1_t[3]  = salt_buf_t2[2];
549   w2_t[0]  = salt_buf_t2[3];
550   w2_t[1]  = salt_buf_t2[4];
551
552   // 38..43
553   w2_t[1] |= digest_t2[0];
554   w2_t[2]  = digest_t2[1];
555
556   // 43..59
557   w2_t[2] |= salt_buf_t3[0];
558   w2_t[3]  = salt_buf_t3[1];
559   w3_t[0]  = salt_buf_t3[2];
560   w3_t[1]  = salt_buf_t3[3];
561   w3_t[2]  = salt_buf_t3[4];
562
563   // 59..
564   w3_t[2] |= digest_t3[0];
565   w3_t[3]  = digest_t3[1];
566
567   md5_transform (w0_t, w1_t, w2_t, w3_t, digest);
568
569   w0_t[0]  = salt_buf_t0[0];
570   w0_t[1]  = salt_buf_t0[1];
571   w0_t[2]  = salt_buf_t0[2];
572   w0_t[3]  = salt_buf_t0[3];
573   w1_t[0]  = 0x80;
574   w1_t[1]  = 0;
575   w1_t[2]  = 0;
576   w1_t[3]  = 0;
577   w2_t[0]  = 0;
578   w2_t[1]  = 0;
579   w2_t[2]  = 0;
580   w2_t[3]  = 0;
581   w3_t[0]  = 0;
582   w3_t[1]  = 0;
583   w3_t[2]  = 21 * 16 * 8;
584   w3_t[3]  = 0;
585
586   md5_transform (w0_t, w1_t, w2_t, w3_t, digest);
587 }
588
589 __kernel void m09700_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 oldoffice01_t *oldoffice01_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
590 {
591   /**
592    * modifier
593    */
594
595   const u32 lid = get_local_id (0);
596
597   /**
598    * base
599    */
600
601   const u32 gid = get_global_id (0);
602
603   if (gid >= gid_max) return;
604
605   u32 pw_buf0[4];
606   u32 pw_buf1[4];
607
608   pw_buf0[0] = pws[gid].i[0];
609   pw_buf0[1] = pws[gid].i[1];
610   pw_buf0[2] = pws[gid].i[2];
611   pw_buf0[3] = pws[gid].i[3];
612   pw_buf1[0] = pws[gid].i[4];
613   pw_buf1[1] = pws[gid].i[5];
614   pw_buf1[2] = pws[gid].i[6];
615   pw_buf1[3] = pws[gid].i[7];
616
617   const u32 pw_l_len = pws[gid].pw_len;
618
619   /**
620    * shared
621    */
622
623   __local RC4_KEY rc4_keys[64];
624
625   __local RC4_KEY *rc4_key = &rc4_keys[lid];
626
627   /**
628    * salt
629    */
630
631   u32 salt_buf[4];
632
633   salt_buf[0] = salt_bufs[salt_pos].salt_buf[0];
634   salt_buf[1] = salt_bufs[salt_pos].salt_buf[1];
635   salt_buf[2] = salt_bufs[salt_pos].salt_buf[2];
636   salt_buf[3] = salt_bufs[salt_pos].salt_buf[3];
637
638   /**
639    * esalt
640    */
641
642   const u32 version = oldoffice01_bufs[salt_pos].version;
643
644   u32 encryptedVerifier[4];
645
646   encryptedVerifier[0] = oldoffice01_bufs[salt_pos].encryptedVerifier[0];
647   encryptedVerifier[1] = oldoffice01_bufs[salt_pos].encryptedVerifier[1];
648   encryptedVerifier[2] = oldoffice01_bufs[salt_pos].encryptedVerifier[2];
649   encryptedVerifier[3] = oldoffice01_bufs[salt_pos].encryptedVerifier[3];
650
651   /**
652    * loop
653    */
654
655   for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
656   {
657     const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos);
658
659     const u32x pw_len = pw_l_len + pw_r_len;
660
661     /**
662      * concat password candidate
663      */
664
665     u32x wordl0[4] = { 0 };
666     u32x wordl1[4] = { 0 };
667     u32x wordl2[4] = { 0 };
668     u32x wordl3[4] = { 0 };
669
670     wordl0[0] = pw_buf0[0];
671     wordl0[1] = pw_buf0[1];
672     wordl0[2] = pw_buf0[2];
673     wordl0[3] = pw_buf0[3];
674     wordl1[0] = pw_buf1[0];
675     wordl1[1] = pw_buf1[1];
676     wordl1[2] = pw_buf1[2];
677     wordl1[3] = pw_buf1[3];
678
679     u32x wordr0[4] = { 0 };
680     u32x wordr1[4] = { 0 };
681     u32x wordr2[4] = { 0 };
682     u32x wordr3[4] = { 0 };
683
684     wordr0[0] = ix_create_combt (combs_buf, il_pos, 0);
685     wordr0[1] = ix_create_combt (combs_buf, il_pos, 1);
686     wordr0[2] = ix_create_combt (combs_buf, il_pos, 2);
687     wordr0[3] = ix_create_combt (combs_buf, il_pos, 3);
688     wordr1[0] = ix_create_combt (combs_buf, il_pos, 4);
689     wordr1[1] = ix_create_combt (combs_buf, il_pos, 5);
690     wordr1[2] = ix_create_combt (combs_buf, il_pos, 6);
691     wordr1[3] = ix_create_combt (combs_buf, il_pos, 7);
692
693     if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
694     {
695       switch_buffer_by_offset_le_VV (wordr0, wordr1, wordr2, wordr3, pw_l_len);
696     }
697     else
698     {
699       switch_buffer_by_offset_le_VV (wordl0, wordl1, wordl2, wordl3, pw_r_len);
700     }
701
702     u32x w0[4];
703     u32x w1[4];
704     u32x w2[4];
705     u32x w3[4];
706
707     w0[0] = wordl0[0] | wordr0[0];
708     w0[1] = wordl0[1] | wordr0[1];
709     w0[2] = wordl0[2] | wordr0[2];
710     w0[3] = wordl0[3] | wordr0[3];
711     w1[0] = wordl1[0] | wordr1[0];
712     w1[1] = wordl1[1] | wordr1[1];
713     w1[2] = wordl1[2] | wordr1[2];
714     w1[3] = wordl1[3] | wordr1[3];
715     w2[0] = wordl2[0] | wordr2[0];
716     w2[1] = wordl2[1] | wordr2[1];
717     w2[2] = wordl2[2] | wordr2[2];
718     w2[3] = wordl2[3] | wordr2[3];
719     w3[0] = wordl3[0] | wordr3[0];
720     w3[1] = wordl3[1] | wordr3[1];
721     w3[2] = wordl3[2] | wordr3[2];
722     w3[3] = wordl3[3] | wordr3[3];
723
724     /**
725      * md5
726      */
727
728     make_unicode (w1, w2, w3);
729     make_unicode (w0, w0, w1);
730
731     w3[2] = pw_len * 8 * 2;
732     w3[3] = 0;
733
734     u32 digest_pre[4];
735
736     digest_pre[0] = MD5M_A;
737     digest_pre[1] = MD5M_B;
738     digest_pre[2] = MD5M_C;
739     digest_pre[3] = MD5M_D;
740
741     md5_transform (w0, w1, w2, w3, digest_pre);
742
743     digest_pre[0] &= 0xffffffff;
744     digest_pre[1] &= 0x000000ff;
745     digest_pre[2] &= 0x00000000;
746     digest_pre[3] &= 0x00000000;
747
748     u32 digest[4];
749
750     digest[0] = MD5M_A;
751     digest[1] = MD5M_B;
752     digest[2] = MD5M_C;
753     digest[3] = MD5M_D;
754
755     gen336 (digest_pre, salt_buf, digest);
756
757     // now the 40 bit input for the MD5 which then will generate the RC4 key, so it's precomputable!
758
759     w0[0]  = digest[0];
760     w0[1]  = digest[1] & 0xff;
761     w0[2]  = 0x8000;
762     w0[3]  = 0;
763     w1[0]  = 0;
764     w1[1]  = 0;
765     w1[2]  = 0;
766     w1[3]  = 0;
767     w2[0]  = 0;
768     w2[1]  = 0;
769     w2[2]  = 0;
770     w2[3]  = 0;
771     w3[0]  = 0;
772     w3[1]  = 0;
773     w3[2]  = 9 * 8;
774     w3[3]  = 0;
775
776     digest[0] = MD5M_A;
777     digest[1] = MD5M_B;
778     digest[2] = MD5M_C;
779     digest[3] = MD5M_D;
780
781     md5_transform (w0, w1, w2, w3, digest);
782
783     // now the RC4 part
784
785     u32 key[4];
786
787     key[0] = digest[0];
788     key[1] = digest[1];
789     key[2] = digest[2];
790     key[3] = digest[3];
791
792     rc4_init_16 (rc4_key, key);
793
794     u32 out[4];
795
796     u8 j = rc4_next_16 (rc4_key, 0, 0, encryptedVerifier, out);
797
798     w0[0] = out[0];
799     w0[1] = out[1];
800     w0[2] = out[2];
801     w0[3] = out[3];
802     w1[0] = 0x80;
803     w1[1] = 0;
804     w1[2] = 0;
805     w1[3] = 0;
806     w2[0] = 0;
807     w2[1] = 0;
808     w2[2] = 0;
809     w2[3] = 0;
810     w3[0] = 0;
811     w3[1] = 0;
812     w3[2] = 16 * 8;
813     w3[3] = 0;
814
815     digest[0] = MD5M_A;
816     digest[1] = MD5M_B;
817     digest[2] = MD5M_C;
818     digest[3] = MD5M_D;
819
820     md5_transform (w0, w1, w2, w3, digest);
821
822     rc4_next_16 (rc4_key, 16, j, digest, out);
823
824     COMPARE_M_SIMD (out[0], out[1], out[2], out[3]);
825   }
826 }
827
828 __kernel void m09700_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 oldoffice01_t *oldoffice01_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
829 {
830 }
831
832 __kernel void m09700_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 oldoffice01_t *oldoffice01_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
833 {
834 }
835
836 __kernel void m09700_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 oldoffice01_t *oldoffice01_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
837 {
838   /**
839    * modifier
840    */
841
842   const u32 lid = get_local_id (0);
843
844   /**
845    * base
846    */
847
848   const u32 gid = get_global_id (0);
849
850   if (gid >= gid_max) return;
851
852   u32 pw_buf0[4];
853   u32 pw_buf1[4];
854
855   pw_buf0[0] = pws[gid].i[0];
856   pw_buf0[1] = pws[gid].i[1];
857   pw_buf0[2] = pws[gid].i[2];
858   pw_buf0[3] = pws[gid].i[3];
859   pw_buf1[0] = pws[gid].i[4];
860   pw_buf1[1] = pws[gid].i[5];
861   pw_buf1[2] = pws[gid].i[6];
862   pw_buf1[3] = pws[gid].i[7];
863
864   const u32 pw_l_len = pws[gid].pw_len;
865
866   /**
867    * shared
868    */
869
870   __local RC4_KEY rc4_keys[64];
871
872   __local RC4_KEY *rc4_key = &rc4_keys[lid];
873
874   /**
875    * salt
876    */
877
878   u32 salt_buf[4];
879
880   salt_buf[0] = salt_bufs[salt_pos].salt_buf[0];
881   salt_buf[1] = salt_bufs[salt_pos].salt_buf[1];
882   salt_buf[2] = salt_bufs[salt_pos].salt_buf[2];
883   salt_buf[3] = salt_bufs[salt_pos].salt_buf[3];
884
885   /**
886    * esalt
887    */
888
889   const u32 version = oldoffice01_bufs[salt_pos].version;
890
891   u32 encryptedVerifier[4];
892
893   encryptedVerifier[0] = oldoffice01_bufs[salt_pos].encryptedVerifier[0];
894   encryptedVerifier[1] = oldoffice01_bufs[salt_pos].encryptedVerifier[1];
895   encryptedVerifier[2] = oldoffice01_bufs[salt_pos].encryptedVerifier[2];
896   encryptedVerifier[3] = oldoffice01_bufs[salt_pos].encryptedVerifier[3];
897
898   /**
899    * digest
900    */
901
902   const u32 search[4] =
903   {
904     digests_buf[digests_offset].digest_buf[DGST_R0],
905     digests_buf[digests_offset].digest_buf[DGST_R1],
906     digests_buf[digests_offset].digest_buf[DGST_R2],
907     digests_buf[digests_offset].digest_buf[DGST_R3]
908   };
909
910   /**
911    * loop
912    */
913
914   for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
915   {
916     const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos);
917
918     const u32x pw_len = pw_l_len + pw_r_len;
919
920     /**
921      * concat password candidate
922      */
923
924     u32x wordl0[4] = { 0 };
925     u32x wordl1[4] = { 0 };
926     u32x wordl2[4] = { 0 };
927     u32x wordl3[4] = { 0 };
928
929     wordl0[0] = pw_buf0[0];
930     wordl0[1] = pw_buf0[1];
931     wordl0[2] = pw_buf0[2];
932     wordl0[3] = pw_buf0[3];
933     wordl1[0] = pw_buf1[0];
934     wordl1[1] = pw_buf1[1];
935     wordl1[2] = pw_buf1[2];
936     wordl1[3] = pw_buf1[3];
937
938     u32x wordr0[4] = { 0 };
939     u32x wordr1[4] = { 0 };
940     u32x wordr2[4] = { 0 };
941     u32x wordr3[4] = { 0 };
942
943     wordr0[0] = ix_create_combt (combs_buf, il_pos, 0);
944     wordr0[1] = ix_create_combt (combs_buf, il_pos, 1);
945     wordr0[2] = ix_create_combt (combs_buf, il_pos, 2);
946     wordr0[3] = ix_create_combt (combs_buf, il_pos, 3);
947     wordr1[0] = ix_create_combt (combs_buf, il_pos, 4);
948     wordr1[1] = ix_create_combt (combs_buf, il_pos, 5);
949     wordr1[2] = ix_create_combt (combs_buf, il_pos, 6);
950     wordr1[3] = ix_create_combt (combs_buf, il_pos, 7);
951
952     if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
953     {
954       switch_buffer_by_offset_le_VV (wordr0, wordr1, wordr2, wordr3, pw_l_len);
955     }
956     else
957     {
958       switch_buffer_by_offset_le_VV (wordl0, wordl1, wordl2, wordl3, pw_r_len);
959     }
960
961     u32x w0[4];
962     u32x w1[4];
963     u32x w2[4];
964     u32x w3[4];
965
966     w0[0] = wordl0[0] | wordr0[0];
967     w0[1] = wordl0[1] | wordr0[1];
968     w0[2] = wordl0[2] | wordr0[2];
969     w0[3] = wordl0[3] | wordr0[3];
970     w1[0] = wordl1[0] | wordr1[0];
971     w1[1] = wordl1[1] | wordr1[1];
972     w1[2] = wordl1[2] | wordr1[2];
973     w1[3] = wordl1[3] | wordr1[3];
974     w2[0] = wordl2[0] | wordr2[0];
975     w2[1] = wordl2[1] | wordr2[1];
976     w2[2] = wordl2[2] | wordr2[2];
977     w2[3] = wordl2[3] | wordr2[3];
978     w3[0] = wordl3[0] | wordr3[0];
979     w3[1] = wordl3[1] | wordr3[1];
980     w3[2] = wordl3[2] | wordr3[2];
981     w3[3] = wordl3[3] | wordr3[3];
982
983     /**
984      * md5
985      */
986
987     make_unicode (w1, w2, w3);
988     make_unicode (w0, w0, w1);
989
990     w3[2] = pw_len * 8 * 2;
991     w3[3] = 0;
992
993     u32 digest_pre[4];
994
995     digest_pre[0] = MD5M_A;
996     digest_pre[1] = MD5M_B;
997     digest_pre[2] = MD5M_C;
998     digest_pre[3] = MD5M_D;
999
1000     md5_transform (w0, w1, w2, w3, digest_pre);
1001
1002     digest_pre[0] &= 0xffffffff;
1003     digest_pre[1] &= 0x000000ff;
1004     digest_pre[2] &= 0x00000000;
1005     digest_pre[3] &= 0x00000000;
1006
1007     u32 digest[4];
1008
1009     digest[0] = MD5M_A;
1010     digest[1] = MD5M_B;
1011     digest[2] = MD5M_C;
1012     digest[3] = MD5M_D;
1013
1014     gen336 (digest_pre, salt_buf, digest);
1015
1016     // now the 40 bit input for the MD5 which then will generate the RC4 key, so it's precomputable!
1017
1018     w0[0]  = digest[0];
1019     w0[1]  = digest[1] & 0xff;
1020     w0[2]  = 0x8000;
1021     w0[3]  = 0;
1022     w1[0]  = 0;
1023     w1[1]  = 0;
1024     w1[2]  = 0;
1025     w1[3]  = 0;
1026     w2[0]  = 0;
1027     w2[1]  = 0;
1028     w2[2]  = 0;
1029     w2[3]  = 0;
1030     w3[0]  = 0;
1031     w3[1]  = 0;
1032     w3[2]  = 9 * 8;
1033     w3[3]  = 0;
1034
1035     digest[0] = MD5M_A;
1036     digest[1] = MD5M_B;
1037     digest[2] = MD5M_C;
1038     digest[3] = MD5M_D;
1039
1040     md5_transform (w0, w1, w2, w3, digest);
1041
1042     // now the RC4 part
1043
1044     u32 key[4];
1045
1046     key[0] = digest[0];
1047     key[1] = digest[1];
1048     key[2] = digest[2];
1049     key[3] = digest[3];
1050
1051     rc4_init_16 (rc4_key, key);
1052
1053     u32 out[4];
1054
1055     u8 j = rc4_next_16 (rc4_key, 0, 0, encryptedVerifier, out);
1056
1057     w0[0] = out[0];
1058     w0[1] = out[1];
1059     w0[2] = out[2];
1060     w0[3] = out[3];
1061     w1[0] = 0x80;
1062     w1[1] = 0;
1063     w1[2] = 0;
1064     w1[3] = 0;
1065     w2[0] = 0;
1066     w2[1] = 0;
1067     w2[2] = 0;
1068     w2[3] = 0;
1069     w3[0] = 0;
1070     w3[1] = 0;
1071     w3[2] = 16 * 8;
1072     w3[3] = 0;
1073
1074     digest[0] = MD5M_A;
1075     digest[1] = MD5M_B;
1076     digest[2] = MD5M_C;
1077     digest[3] = MD5M_D;
1078
1079     md5_transform (w0, w1, w2, w3, digest);
1080
1081     rc4_next_16 (rc4_key, 16, j, digest, out);
1082
1083     COMPARE_S_SIMD (out[0], out[1], out[2], out[3]);
1084   }
1085 }
1086
1087 __kernel void m09700_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 oldoffice01_t *oldoffice01_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
1088 {
1089 }
1090
1091 __kernel void m09700_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 oldoffice01_t *oldoffice01_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
1092 {
1093 }