Merge pull request #148 from gm4tr1x/md5apr1_warnings
[hashcat.git] / OpenCL / m01000_a1.cl
1 /**
2  * Author......: Jens Steube <jens.steube@gmail.com>
3  * License.....: MIT
4  */
5
6 #define _MD4_
7
8 #include "include/constants.h"
9 #include "include/kernel_vendor.h"
10
11 #define DGST_R0 0
12 #define DGST_R1 3
13 #define DGST_R2 2
14 #define DGST_R3 1
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 __kernel void m01000_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)
24 {
25   /**
26    * modifier
27    */
28
29   const u32 lid = get_local_id (0);
30
31   /**
32    * base
33    */
34
35   const u32 gid = get_global_id (0);
36
37   if (gid >= gid_max) return;
38
39   u32 wordl0[4];
40
41   wordl0[0] = pws[gid].i[ 0];
42   wordl0[1] = pws[gid].i[ 1];
43   wordl0[2] = pws[gid].i[ 2];
44   wordl0[3] = pws[gid].i[ 3];
45
46   u32 wordl1[4];
47
48   wordl1[0] = pws[gid].i[ 4];
49   wordl1[1] = pws[gid].i[ 5];
50   wordl1[2] = pws[gid].i[ 6];
51   wordl1[3] = pws[gid].i[ 7];
52
53   u32 wordl2[4];
54
55   wordl2[0] = 0;
56   wordl2[1] = 0;
57   wordl2[2] = 0;
58   wordl2[3] = 0;
59
60   u32 wordl3[4];
61
62   wordl3[0] = 0;
63   wordl3[1] = 0;
64   wordl3[2] = 0;
65   wordl3[3] = 0;
66
67   const u32 pw_l_len = pws[gid].pw_len;
68
69   if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
70   {
71     append_0x80_2x4 (wordl0, wordl1, pw_l_len);
72
73     switch_buffer_by_offset_le (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
74   }
75
76   /**
77    * loop
78    */
79
80   for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
81   {
82     const u32 pw_r_len = combs_buf[il_pos].pw_len;
83
84     const u32 pw_len = pw_l_len + pw_r_len;
85
86     u32 wordr0[4];
87
88     wordr0[0] = combs_buf[il_pos].i[0];
89     wordr0[1] = combs_buf[il_pos].i[1];
90     wordr0[2] = combs_buf[il_pos].i[2];
91     wordr0[3] = combs_buf[il_pos].i[3];
92
93     u32 wordr1[4];
94
95     wordr1[0] = combs_buf[il_pos].i[4];
96     wordr1[1] = combs_buf[il_pos].i[5];
97     wordr1[2] = combs_buf[il_pos].i[6];
98     wordr1[3] = combs_buf[il_pos].i[7];
99
100     u32 wordr2[4];
101
102     wordr2[0] = 0;
103     wordr2[1] = 0;
104     wordr2[2] = 0;
105     wordr2[3] = 0;
106
107     u32 wordr3[4];
108
109     wordr3[0] = 0;
110     wordr3[1] = 0;
111     wordr3[2] = 0;
112     wordr3[3] = 0;
113
114     if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
115     {
116       switch_buffer_by_offset_le (wordr0, wordr1, wordr2, wordr3, pw_l_len);
117     }
118
119     u32 w0[4];
120
121     w0[0] = wordl0[0] | wordr0[0];
122     w0[1] = wordl0[1] | wordr0[1];
123     w0[2] = wordl0[2] | wordr0[2];
124     w0[3] = wordl0[3] | wordr0[3];
125
126     u32 w1[4];
127
128     w1[0] = wordl1[0] | wordr1[0];
129     w1[1] = wordl1[1] | wordr1[1];
130     w1[2] = wordl1[2] | wordr1[2];
131     w1[3] = wordl1[3] | wordr1[3];
132
133     u32 w2[4];
134
135     w2[0] = 0;
136     w2[1] = 0;
137     w2[2] = 0;
138     w2[3] = 0;
139
140     u32 w3[4];
141
142     w3[0] = 0;
143     w3[1] = 0;
144     w3[2] = 0;
145     w3[3] = 0;
146
147     u32 w0_t[4];
148     u32 w1_t[4];
149     u32 w2_t[4];
150     u32 w3_t[4];
151
152     make_unicode (w0, w0_t, w1_t);
153     make_unicode (w1, w2_t, w3_t);
154
155     w3_t[2] = pw_len * 8 * 2;
156
157     u32 tmp2;
158
159     u32 a = MD4M_A;
160     u32 b = MD4M_B;
161     u32 c = MD4M_C;
162     u32 d = MD4M_D;
163
164     MD4_STEP (MD4_Fo, a, b, c, d, w0_t[0], MD4C00, MD4S00);
165     MD4_STEP (MD4_Fo, d, a, b, c, w0_t[1], MD4C00, MD4S01);
166     MD4_STEP (MD4_Fo, c, d, a, b, w0_t[2], MD4C00, MD4S02);
167     MD4_STEP (MD4_Fo, b, c, d, a, w0_t[3], MD4C00, MD4S03);
168     MD4_STEP (MD4_Fo, a, b, c, d, w1_t[0], MD4C00, MD4S00);
169     MD4_STEP (MD4_Fo, d, a, b, c, w1_t[1], MD4C00, MD4S01);
170     MD4_STEP (MD4_Fo, c, d, a, b, w1_t[2], MD4C00, MD4S02);
171     MD4_STEP (MD4_Fo, b, c, d, a, w1_t[3], MD4C00, MD4S03);
172     MD4_STEP (MD4_Fo, a, b, c, d, w2_t[0], MD4C00, MD4S00);
173     MD4_STEP (MD4_Fo, d, a, b, c, w2_t[1], MD4C00, MD4S01);
174     MD4_STEP (MD4_Fo, c, d, a, b, w2_t[2], MD4C00, MD4S02);
175     MD4_STEP (MD4_Fo, b, c, d, a, w2_t[3], MD4C00, MD4S03);
176     MD4_STEP (MD4_Fo, a, b, c, d, w3_t[0], MD4C00, MD4S00);
177     MD4_STEP (MD4_Fo, d, a, b, c, w3_t[1], MD4C00, MD4S01);
178     MD4_STEP (MD4_Fo, c, d, a, b, w3_t[2], MD4C00, MD4S02);
179     MD4_STEP (MD4_Fo, b, c, d, a, w3_t[3], MD4C00, MD4S03);
180
181     MD4_STEP (MD4_Go, a, b, c, d, w0_t[0], MD4C01, MD4S10);
182     MD4_STEP (MD4_Go, d, a, b, c, w1_t[0], MD4C01, MD4S11);
183     MD4_STEP (MD4_Go, c, d, a, b, w2_t[0], MD4C01, MD4S12);
184     MD4_STEP (MD4_Go, b, c, d, a, w3_t[0], MD4C01, MD4S13);
185     MD4_STEP (MD4_Go, a, b, c, d, w0_t[1], MD4C01, MD4S10);
186     MD4_STEP (MD4_Go, d, a, b, c, w1_t[1], MD4C01, MD4S11);
187     MD4_STEP (MD4_Go, c, d, a, b, w2_t[1], MD4C01, MD4S12);
188     MD4_STEP (MD4_Go, b, c, d, a, w3_t[1], MD4C01, MD4S13);
189     MD4_STEP (MD4_Go, a, b, c, d, w0_t[2], MD4C01, MD4S10);
190     MD4_STEP (MD4_Go, d, a, b, c, w1_t[2], MD4C01, MD4S11);
191     MD4_STEP (MD4_Go, c, d, a, b, w2_t[2], MD4C01, MD4S12);
192     MD4_STEP (MD4_Go, b, c, d, a, w3_t[2], MD4C01, MD4S13);
193     MD4_STEP (MD4_Go, a, b, c, d, w0_t[3], MD4C01, MD4S10);
194     MD4_STEP (MD4_Go, d, a, b, c, w1_t[3], MD4C01, MD4S11);
195     MD4_STEP (MD4_Go, c, d, a, b, w2_t[3], MD4C01, MD4S12);
196     MD4_STEP (MD4_Go, b, c, d, a, w3_t[3], MD4C01, MD4S13);
197
198     MD4_STEP (MD4_H1, a, b, c, d, w0_t[0], MD4C02, MD4S20);
199     MD4_STEP (MD4_H2, d, a, b, c, w2_t[0], MD4C02, MD4S21);
200     MD4_STEP (MD4_H1, c, d, a, b, w1_t[0], MD4C02, MD4S22);
201     MD4_STEP (MD4_H2, b, c, d, a, w3_t[0], MD4C02, MD4S23);
202     MD4_STEP (MD4_H1, a, b, c, d, w0_t[2], MD4C02, MD4S20);
203     MD4_STEP (MD4_H2, d, a, b, c, w2_t[2], MD4C02, MD4S21);
204     MD4_STEP (MD4_H1, c, d, a, b, w1_t[2], MD4C02, MD4S22);
205     MD4_STEP (MD4_H2, b, c, d, a, w3_t[2], MD4C02, MD4S23);
206     MD4_STEP (MD4_H1, a, b, c, d, w0_t[1], MD4C02, MD4S20);
207     MD4_STEP (MD4_H2, d, a, b, c, w2_t[1], MD4C02, MD4S21);
208     MD4_STEP (MD4_H1, c, d, a, b, w1_t[1], MD4C02, MD4S22);
209     MD4_STEP (MD4_H2, b, c, d, a, w3_t[1], MD4C02, MD4S23);
210     MD4_STEP (MD4_H1, a, b, c, d, w0_t[3], MD4C02, MD4S20);
211     MD4_STEP (MD4_H2, d, a, b, c, w2_t[3], MD4C02, MD4S21);
212     MD4_STEP (MD4_H1, c, d, a, b, w1_t[3], MD4C02, MD4S22);
213     MD4_STEP (MD4_H2, b, c, d, a, w3_t[3], MD4C02, MD4S23);
214
215     const u32 r0 = a;
216     const u32 r1 = d;
217     const u32 r2 = c;
218     const u32 r3 = b;
219
220     #include COMPARE_M
221   }
222 }
223
224 __kernel void m01000_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)
225 {
226 }
227
228 __kernel void m01000_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)
229 {
230 }
231
232 __kernel void m01000_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)
233 {
234   /**
235    * modifier
236    */
237
238   const u32 lid = get_local_id (0);
239
240   /**
241    * base
242    */
243
244   const u32 gid = get_global_id (0);
245
246   if (gid >= gid_max) return;
247
248   u32 wordl0[4];
249
250   wordl0[0] = pws[gid].i[ 0];
251   wordl0[1] = pws[gid].i[ 1];
252   wordl0[2] = pws[gid].i[ 2];
253   wordl0[3] = pws[gid].i[ 3];
254
255   u32 wordl1[4];
256
257   wordl1[0] = pws[gid].i[ 4];
258   wordl1[1] = pws[gid].i[ 5];
259   wordl1[2] = pws[gid].i[ 6];
260   wordl1[3] = pws[gid].i[ 7];
261
262   u32 wordl2[4];
263
264   wordl2[0] = 0;
265   wordl2[1] = 0;
266   wordl2[2] = 0;
267   wordl2[3] = 0;
268
269   u32 wordl3[4];
270
271   wordl3[0] = 0;
272   wordl3[1] = 0;
273   wordl3[2] = 0;
274   wordl3[3] = 0;
275
276   const u32 pw_l_len = pws[gid].pw_len;
277
278   if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
279   {
280     append_0x80_2x4 (wordl0, wordl1, pw_l_len);
281
282     switch_buffer_by_offset_le (wordl0, wordl1, wordl2, wordl3, combs_buf[0].pw_len);
283   }
284
285   /**
286    * digest
287    */
288
289   const u32 search[4] =
290   {
291     digests_buf[digests_offset].digest_buf[DGST_R0],
292     digests_buf[digests_offset].digest_buf[DGST_R1],
293     digests_buf[digests_offset].digest_buf[DGST_R2],
294     digests_buf[digests_offset].digest_buf[DGST_R3]
295   };
296
297   /**
298    * loop
299    */
300
301   for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
302   {
303     const u32 pw_r_len = combs_buf[il_pos].pw_len;
304
305     const u32 pw_len = pw_l_len + pw_r_len;
306
307     u32 wordr0[4];
308
309     wordr0[0] = combs_buf[il_pos].i[0];
310     wordr0[1] = combs_buf[il_pos].i[1];
311     wordr0[2] = combs_buf[il_pos].i[2];
312     wordr0[3] = combs_buf[il_pos].i[3];
313
314     u32 wordr1[4];
315
316     wordr1[0] = combs_buf[il_pos].i[4];
317     wordr1[1] = combs_buf[il_pos].i[5];
318     wordr1[2] = combs_buf[il_pos].i[6];
319     wordr1[3] = combs_buf[il_pos].i[7];
320
321     u32 wordr2[4];
322
323     wordr2[0] = 0;
324     wordr2[1] = 0;
325     wordr2[2] = 0;
326     wordr2[3] = 0;
327
328     u32 wordr3[4];
329
330     wordr3[0] = 0;
331     wordr3[1] = 0;
332     wordr3[2] = 0;
333     wordr3[3] = 0;
334
335     if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
336     {
337       switch_buffer_by_offset_le (wordr0, wordr1, wordr2, wordr3, pw_l_len);
338     }
339
340     u32 w0[4];
341
342     w0[0] = wordl0[0] | wordr0[0];
343     w0[1] = wordl0[1] | wordr0[1];
344     w0[2] = wordl0[2] | wordr0[2];
345     w0[3] = wordl0[3] | wordr0[3];
346
347     u32 w1[4];
348
349     w1[0] = wordl1[0] | wordr1[0];
350     w1[1] = wordl1[1] | wordr1[1];
351     w1[2] = wordl1[2] | wordr1[2];
352     w1[3] = wordl1[3] | wordr1[3];
353
354     u32 w2[4];
355
356     w2[0] = 0;
357     w2[1] = 0;
358     w2[2] = 0;
359     w2[3] = 0;
360
361     u32 w3[4];
362
363     w3[0] = 0;
364     w3[1] = 0;
365     w3[2] = 0;
366     w3[3] = 0;
367
368     u32 w0_t[4];
369     u32 w1_t[4];
370     u32 w2_t[4];
371     u32 w3_t[4];
372
373     make_unicode (w0, w0_t, w1_t);
374     make_unicode (w1, w2_t, w3_t);
375
376     w3_t[2] = pw_len * 8 * 2;
377
378     u32 tmp2;
379
380     u32 a = MD4M_A;
381     u32 b = MD4M_B;
382     u32 c = MD4M_C;
383     u32 d = MD4M_D;
384
385     MD4_STEP (MD4_Fo, a, b, c, d, w0_t[0], MD4C00, MD4S00);
386     MD4_STEP (MD4_Fo, d, a, b, c, w0_t[1], MD4C00, MD4S01);
387     MD4_STEP (MD4_Fo, c, d, a, b, w0_t[2], MD4C00, MD4S02);
388     MD4_STEP (MD4_Fo, b, c, d, a, w0_t[3], MD4C00, MD4S03);
389     MD4_STEP (MD4_Fo, a, b, c, d, w1_t[0], MD4C00, MD4S00);
390     MD4_STEP (MD4_Fo, d, a, b, c, w1_t[1], MD4C00, MD4S01);
391     MD4_STEP (MD4_Fo, c, d, a, b, w1_t[2], MD4C00, MD4S02);
392     MD4_STEP (MD4_Fo, b, c, d, a, w1_t[3], MD4C00, MD4S03);
393     MD4_STEP (MD4_Fo, a, b, c, d, w2_t[0], MD4C00, MD4S00);
394     MD4_STEP (MD4_Fo, d, a, b, c, w2_t[1], MD4C00, MD4S01);
395     MD4_STEP (MD4_Fo, c, d, a, b, w2_t[2], MD4C00, MD4S02);
396     MD4_STEP (MD4_Fo, b, c, d, a, w2_t[3], MD4C00, MD4S03);
397     MD4_STEP (MD4_Fo, a, b, c, d, w3_t[0], MD4C00, MD4S00);
398     MD4_STEP (MD4_Fo, d, a, b, c, w3_t[1], MD4C00, MD4S01);
399     MD4_STEP (MD4_Fo, c, d, a, b, w3_t[2], MD4C00, MD4S02);
400     MD4_STEP (MD4_Fo, b, c, d, a, w3_t[3], MD4C00, MD4S03);
401
402     MD4_STEP (MD4_Go, a, b, c, d, w0_t[0], MD4C01, MD4S10);
403     MD4_STEP (MD4_Go, d, a, b, c, w1_t[0], MD4C01, MD4S11);
404     MD4_STEP (MD4_Go, c, d, a, b, w2_t[0], MD4C01, MD4S12);
405     MD4_STEP (MD4_Go, b, c, d, a, w3_t[0], MD4C01, MD4S13);
406     MD4_STEP (MD4_Go, a, b, c, d, w0_t[1], MD4C01, MD4S10);
407     MD4_STEP (MD4_Go, d, a, b, c, w1_t[1], MD4C01, MD4S11);
408     MD4_STEP (MD4_Go, c, d, a, b, w2_t[1], MD4C01, MD4S12);
409     MD4_STEP (MD4_Go, b, c, d, a, w3_t[1], MD4C01, MD4S13);
410     MD4_STEP (MD4_Go, a, b, c, d, w0_t[2], MD4C01, MD4S10);
411     MD4_STEP (MD4_Go, d, a, b, c, w1_t[2], MD4C01, MD4S11);
412     MD4_STEP (MD4_Go, c, d, a, b, w2_t[2], MD4C01, MD4S12);
413     MD4_STEP (MD4_Go, b, c, d, a, w3_t[2], MD4C01, MD4S13);
414     MD4_STEP (MD4_Go, a, b, c, d, w0_t[3], MD4C01, MD4S10);
415     MD4_STEP (MD4_Go, d, a, b, c, w1_t[3], MD4C01, MD4S11);
416     MD4_STEP (MD4_Go, c, d, a, b, w2_t[3], MD4C01, MD4S12);
417     MD4_STEP (MD4_Go, b, c, d, a, w3_t[3], MD4C01, MD4S13);
418
419     MD4_STEP (MD4_H1, a, b, c, d, w0_t[0], MD4C02, MD4S20);
420     MD4_STEP (MD4_H2, d, a, b, c, w2_t[0], MD4C02, MD4S21);
421     MD4_STEP (MD4_H1, c, d, a, b, w1_t[0], MD4C02, MD4S22);
422     MD4_STEP (MD4_H2, b, c, d, a, w3_t[0], MD4C02, MD4S23);
423     MD4_STEP (MD4_H1, a, b, c, d, w0_t[2], MD4C02, MD4S20);
424     MD4_STEP (MD4_H2, d, a, b, c, w2_t[2], MD4C02, MD4S21);
425     MD4_STEP (MD4_H1, c, d, a, b, w1_t[2], MD4C02, MD4S22);
426     MD4_STEP (MD4_H2, b, c, d, a, w3_t[2], MD4C02, MD4S23);
427     MD4_STEP (MD4_H1, a, b, c, d, w0_t[1], MD4C02, MD4S20);
428     MD4_STEP (MD4_H2, d, a, b, c, w2_t[1], MD4C02, MD4S21);
429     MD4_STEP (MD4_H1, c, d, a, b, w1_t[1], MD4C02, MD4S22);
430     MD4_STEP (MD4_H2, b, c, d, a, w3_t[1], MD4C02, MD4S23);
431     MD4_STEP (MD4_H1, a, b, c, d, w0_t[3], MD4C02, MD4S20);
432     MD4_STEP (MD4_H2, d, a, b, c, w2_t[3], MD4C02, MD4S21);
433     MD4_STEP (MD4_H1, c, d, a, b, w1_t[3], MD4C02, MD4S22);
434     MD4_STEP (MD4_H2, b, c, d, a, w3_t[3], MD4C02, MD4S23);
435
436     const u32 r0 = a;
437     const u32 r1 = d;
438     const u32 r2 = c;
439     const u32 r3 = b;
440
441     #include COMPARE_S
442   }
443 }
444
445 __kernel void m01000_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)
446 {
447 }
448
449 __kernel void m01000_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)
450 {
451 }