Fix m 60 a 0 by making modified variable non-const
[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 #define NEW_SIMD_CODE
9
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"
16
17 __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_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)
18 {
19   /**
20    * modifier
21    */
22
23   const u32 lid = get_local_id (0);
24
25   /**
26    * base
27    */
28
29   const u32 gid = get_global_id (0);
30
31   if (gid >= gid_max) return;
32
33   u32 pw_buf0[4];
34   u32 pw_buf1[4];
35
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];
44
45   const u32 pw_l_len = pws[gid].pw_len;
46
47   /**
48    * loop
49    */
50
51   for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
52   {
53     const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos);
54
55     const u32x pw_len = pw_l_len + pw_r_len;
56
57     /**
58      * concat password candidate
59      */
60
61     u32x wordl0[4] = { 0 };
62     u32x wordl1[4] = { 0 };
63     u32x wordl2[4] = { 0 };
64     u32x wordl3[4] = { 0 };
65
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];
74
75     u32x wordr0[4] = { 0 };
76     u32x wordr1[4] = { 0 };
77     u32x wordr2[4] = { 0 };
78     u32x wordr3[4] = { 0 };
79
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);
88
89     if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
90     {
91       switch_buffer_by_offset_le_VV (wordr0, wordr1, wordr2, wordr3, pw_l_len);
92     }
93     else
94     {
95       switch_buffer_by_offset_le_VV (wordl0, wordl1, wordl2, wordl3, pw_r_len);
96     }
97
98     u32x w0[4];
99     u32x w1[4];
100     u32x w2[4];
101     u32x w3[4];
102
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];
117     w3[2] = wordl3[2] | wordr3[2];
118     w3[3] = wordl3[3] | wordr3[3];
119
120     make_unicode (w1, w2, w3);
121     make_unicode (w0, w0, w1);
122
123     w3[2] = pw_len * 8 * 2;
124     w3[3] = 0;
125
126     /**
127      * md4
128      */
129
130     u32x a = MD4M_A;
131     u32x b = MD4M_B;
132     u32x c = MD4M_C;
133     u32x d = MD4M_D;
134
135     MD4_STEP (MD4_Fo, a, b, c, d, w0[0], MD4C00, MD4S00);
136     MD4_STEP (MD4_Fo, d, a, b, c, w0[1], MD4C00, MD4S01);
137     MD4_STEP (MD4_Fo, c, d, a, b, w0[2], MD4C00, MD4S02);
138     MD4_STEP (MD4_Fo, b, c, d, a, w0[3], MD4C00, MD4S03);
139     MD4_STEP (MD4_Fo, a, b, c, d, w1[0], MD4C00, MD4S00);
140     MD4_STEP (MD4_Fo, d, a, b, c, w1[1], MD4C00, MD4S01);
141     MD4_STEP (MD4_Fo, c, d, a, b, w1[2], MD4C00, MD4S02);
142     MD4_STEP (MD4_Fo, b, c, d, a, w1[3], MD4C00, MD4S03);
143     MD4_STEP (MD4_Fo, a, b, c, d, w2[0], MD4C00, MD4S00);
144     MD4_STEP (MD4_Fo, d, a, b, c, w2[1], MD4C00, MD4S01);
145     MD4_STEP (MD4_Fo, c, d, a, b, w2[2], MD4C00, MD4S02);
146     MD4_STEP (MD4_Fo, b, c, d, a, w2[3], MD4C00, MD4S03);
147     MD4_STEP (MD4_Fo, a, b, c, d, w3[0], MD4C00, MD4S00);
148     MD4_STEP (MD4_Fo, d, a, b, c, w3[1], MD4C00, MD4S01);
149     MD4_STEP (MD4_Fo, c, d, a, b, w3[2], MD4C00, MD4S02);
150     MD4_STEP (MD4_Fo, b, c, d, a, w3[3], MD4C00, MD4S03);
151
152     MD4_STEP (MD4_Go, a, b, c, d, w0[0], MD4C01, MD4S10);
153     MD4_STEP (MD4_Go, d, a, b, c, w1[0], MD4C01, MD4S11);
154     MD4_STEP (MD4_Go, c, d, a, b, w2[0], MD4C01, MD4S12);
155     MD4_STEP (MD4_Go, b, c, d, a, w3[0], MD4C01, MD4S13);
156     MD4_STEP (MD4_Go, a, b, c, d, w0[1], MD4C01, MD4S10);
157     MD4_STEP (MD4_Go, d, a, b, c, w1[1], MD4C01, MD4S11);
158     MD4_STEP (MD4_Go, c, d, a, b, w2[1], MD4C01, MD4S12);
159     MD4_STEP (MD4_Go, b, c, d, a, w3[1], MD4C01, MD4S13);
160     MD4_STEP (MD4_Go, a, b, c, d, w0[2], MD4C01, MD4S10);
161     MD4_STEP (MD4_Go, d, a, b, c, w1[2], MD4C01, MD4S11);
162     MD4_STEP (MD4_Go, c, d, a, b, w2[2], MD4C01, MD4S12);
163     MD4_STEP (MD4_Go, b, c, d, a, w3[2], MD4C01, MD4S13);
164     MD4_STEP (MD4_Go, a, b, c, d, w0[3], MD4C01, MD4S10);
165     MD4_STEP (MD4_Go, d, a, b, c, w1[3], MD4C01, MD4S11);
166     MD4_STEP (MD4_Go, c, d, a, b, w2[3], MD4C01, MD4S12);
167     MD4_STEP (MD4_Go, b, c, d, a, w3[3], MD4C01, MD4S13);
168
169     MD4_STEP (MD4_H , a, b, c, d, w0[0], MD4C02, MD4S20);
170     MD4_STEP (MD4_H , d, a, b, c, w2[0], MD4C02, MD4S21);
171     MD4_STEP (MD4_H , c, d, a, b, w1[0], MD4C02, MD4S22);
172     MD4_STEP (MD4_H , b, c, d, a, w3[0], MD4C02, MD4S23);
173     MD4_STEP (MD4_H , a, b, c, d, w0[2], MD4C02, MD4S20);
174     MD4_STEP (MD4_H , d, a, b, c, w2[2], MD4C02, MD4S21);
175     MD4_STEP (MD4_H , c, d, a, b, w1[2], MD4C02, MD4S22);
176     MD4_STEP (MD4_H , b, c, d, a, w3[2], MD4C02, MD4S23);
177     MD4_STEP (MD4_H , a, b, c, d, w0[1], MD4C02, MD4S20);
178     MD4_STEP (MD4_H , d, a, b, c, w2[1], MD4C02, MD4S21);
179     MD4_STEP (MD4_H , c, d, a, b, w1[1], MD4C02, MD4S22);
180     MD4_STEP (MD4_H , b, c, d, a, w3[1], MD4C02, MD4S23);
181     MD4_STEP (MD4_H , a, b, c, d, w0[3], MD4C02, MD4S20);
182     MD4_STEP (MD4_H , d, a, b, c, w2[3], MD4C02, MD4S21);
183     MD4_STEP (MD4_H , c, d, a, b, w1[3], MD4C02, MD4S22);
184     MD4_STEP (MD4_H , b, c, d, a, w3[3], MD4C02, MD4S23);
185
186     COMPARE_M_SIMD (a, d, c, b);
187   }
188 }
189
190 __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_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)
191 {
192 }
193
194 __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_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)
195 {
196 }
197
198 __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_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)
199 {
200   /**
201    * modifier
202    */
203
204   const u32 lid = get_local_id (0);
205
206   /**
207    * base
208    */
209
210   const u32 gid = get_global_id (0);
211
212   if (gid >= gid_max) return;
213
214   u32 pw_buf0[4];
215   u32 pw_buf1[4];
216
217   pw_buf0[0] = pws[gid].i[0];
218   pw_buf0[1] = pws[gid].i[1];
219   pw_buf0[2] = pws[gid].i[2];
220   pw_buf0[3] = pws[gid].i[3];
221   pw_buf1[0] = pws[gid].i[4];
222   pw_buf1[1] = pws[gid].i[5];
223   pw_buf1[2] = pws[gid].i[6];
224   pw_buf1[3] = pws[gid].i[7];
225
226   const u32 pw_l_len = pws[gid].pw_len;
227
228   /**
229    * digest
230    */
231
232   const u32 search[4] =
233   {
234     digests_buf[digests_offset].digest_buf[DGST_R0],
235     digests_buf[digests_offset].digest_buf[DGST_R1],
236     digests_buf[digests_offset].digest_buf[DGST_R2],
237     digests_buf[digests_offset].digest_buf[DGST_R3]
238   };
239
240   /**
241    * loop
242    */
243
244   for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
245   {
246     const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos);
247
248     const u32x pw_len = pw_l_len + pw_r_len;
249
250     /**
251      * concat password candidate
252      */
253
254     u32x wordl0[4] = { 0 };
255     u32x wordl1[4] = { 0 };
256     u32x wordl2[4] = { 0 };
257     u32x wordl3[4] = { 0 };
258
259     wordl0[0] = pw_buf0[0];
260     wordl0[1] = pw_buf0[1];
261     wordl0[2] = pw_buf0[2];
262     wordl0[3] = pw_buf0[3];
263     wordl1[0] = pw_buf1[0];
264     wordl1[1] = pw_buf1[1];
265     wordl1[2] = pw_buf1[2];
266     wordl1[3] = pw_buf1[3];
267
268     u32x wordr0[4] = { 0 };
269     u32x wordr1[4] = { 0 };
270     u32x wordr2[4] = { 0 };
271     u32x wordr3[4] = { 0 };
272
273     wordr0[0] = ix_create_combt (combs_buf, il_pos, 0);
274     wordr0[1] = ix_create_combt (combs_buf, il_pos, 1);
275     wordr0[2] = ix_create_combt (combs_buf, il_pos, 2);
276     wordr0[3] = ix_create_combt (combs_buf, il_pos, 3);
277     wordr1[0] = ix_create_combt (combs_buf, il_pos, 4);
278     wordr1[1] = ix_create_combt (combs_buf, il_pos, 5);
279     wordr1[2] = ix_create_combt (combs_buf, il_pos, 6);
280     wordr1[3] = ix_create_combt (combs_buf, il_pos, 7);
281
282     if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
283     {
284       switch_buffer_by_offset_le_VV (wordr0, wordr1, wordr2, wordr3, pw_l_len);
285     }
286     else
287     {
288       switch_buffer_by_offset_le_VV (wordl0, wordl1, wordl2, wordl3, pw_r_len);
289     }
290
291     u32x w0[4];
292     u32x w1[4];
293     u32x w2[4];
294     u32x w3[4];
295
296     w0[0] = wordl0[0] | wordr0[0];
297     w0[1] = wordl0[1] | wordr0[1];
298     w0[2] = wordl0[2] | wordr0[2];
299     w0[3] = wordl0[3] | wordr0[3];
300     w1[0] = wordl1[0] | wordr1[0];
301     w1[1] = wordl1[1] | wordr1[1];
302     w1[2] = wordl1[2] | wordr1[2];
303     w1[3] = wordl1[3] | wordr1[3];
304     w2[0] = wordl2[0] | wordr2[0];
305     w2[1] = wordl2[1] | wordr2[1];
306     w2[2] = wordl2[2] | wordr2[2];
307     w2[3] = wordl2[3] | wordr2[3];
308     w3[0] = wordl3[0] | wordr3[0];
309     w3[1] = wordl3[1] | wordr3[1];
310     w3[2] = wordl3[2] | wordr3[2];
311     w3[3] = wordl3[3] | wordr3[3];
312
313     make_unicode (w1, w2, w3);
314     make_unicode (w0, w0, w1);
315
316     w3[2] = pw_len * 8 * 2;
317     w3[3] = 0;
318
319     /**
320      * md4
321      */
322
323     u32x a = MD4M_A;
324     u32x b = MD4M_B;
325     u32x c = MD4M_C;
326     u32x d = MD4M_D;
327
328     MD4_STEP (MD4_Fo, a, b, c, d, w0[0], MD4C00, MD4S00);
329     MD4_STEP (MD4_Fo, d, a, b, c, w0[1], MD4C00, MD4S01);
330     MD4_STEP (MD4_Fo, c, d, a, b, w0[2], MD4C00, MD4S02);
331     MD4_STEP (MD4_Fo, b, c, d, a, w0[3], MD4C00, MD4S03);
332     MD4_STEP (MD4_Fo, a, b, c, d, w1[0], MD4C00, MD4S00);
333     MD4_STEP (MD4_Fo, d, a, b, c, w1[1], MD4C00, MD4S01);
334     MD4_STEP (MD4_Fo, c, d, a, b, w1[2], MD4C00, MD4S02);
335     MD4_STEP (MD4_Fo, b, c, d, a, w1[3], MD4C00, MD4S03);
336     MD4_STEP (MD4_Fo, a, b, c, d, w2[0], MD4C00, MD4S00);
337     MD4_STEP (MD4_Fo, d, a, b, c, w2[1], MD4C00, MD4S01);
338     MD4_STEP (MD4_Fo, c, d, a, b, w2[2], MD4C00, MD4S02);
339     MD4_STEP (MD4_Fo, b, c, d, a, w2[3], MD4C00, MD4S03);
340     MD4_STEP (MD4_Fo, a, b, c, d, w3[0], MD4C00, MD4S00);
341     MD4_STEP (MD4_Fo, d, a, b, c, w3[1], MD4C00, MD4S01);
342     MD4_STEP (MD4_Fo, c, d, a, b, w3[2], MD4C00, MD4S02);
343     MD4_STEP (MD4_Fo, b, c, d, a, w3[3], MD4C00, MD4S03);
344
345     MD4_STEP (MD4_Go, a, b, c, d, w0[0], MD4C01, MD4S10);
346     MD4_STEP (MD4_Go, d, a, b, c, w1[0], MD4C01, MD4S11);
347     MD4_STEP (MD4_Go, c, d, a, b, w2[0], MD4C01, MD4S12);
348     MD4_STEP (MD4_Go, b, c, d, a, w3[0], MD4C01, MD4S13);
349     MD4_STEP (MD4_Go, a, b, c, d, w0[1], MD4C01, MD4S10);
350     MD4_STEP (MD4_Go, d, a, b, c, w1[1], MD4C01, MD4S11);
351     MD4_STEP (MD4_Go, c, d, a, b, w2[1], MD4C01, MD4S12);
352     MD4_STEP (MD4_Go, b, c, d, a, w3[1], MD4C01, MD4S13);
353     MD4_STEP (MD4_Go, a, b, c, d, w0[2], MD4C01, MD4S10);
354     MD4_STEP (MD4_Go, d, a, b, c, w1[2], MD4C01, MD4S11);
355     MD4_STEP (MD4_Go, c, d, a, b, w2[2], MD4C01, MD4S12);
356     MD4_STEP (MD4_Go, b, c, d, a, w3[2], MD4C01, MD4S13);
357     MD4_STEP (MD4_Go, a, b, c, d, w0[3], MD4C01, MD4S10);
358     MD4_STEP (MD4_Go, d, a, b, c, w1[3], MD4C01, MD4S11);
359     MD4_STEP (MD4_Go, c, d, a, b, w2[3], MD4C01, MD4S12);
360     MD4_STEP (MD4_Go, b, c, d, a, w3[3], MD4C01, MD4S13);
361
362     MD4_STEP (MD4_H , a, b, c, d, w0[0], MD4C02, MD4S20);
363     MD4_STEP (MD4_H , d, a, b, c, w2[0], MD4C02, MD4S21);
364     MD4_STEP (MD4_H , c, d, a, b, w1[0], MD4C02, MD4S22);
365     MD4_STEP (MD4_H , b, c, d, a, w3[0], MD4C02, MD4S23);
366     MD4_STEP (MD4_H , a, b, c, d, w0[2], MD4C02, MD4S20);
367     MD4_STEP (MD4_H , d, a, b, c, w2[2], MD4C02, MD4S21);
368     MD4_STEP (MD4_H , c, d, a, b, w1[2], MD4C02, MD4S22);
369     MD4_STEP (MD4_H , b, c, d, a, w3[2], MD4C02, MD4S23);
370     MD4_STEP (MD4_H , a, b, c, d, w0[1], MD4C02, MD4S20);
371     MD4_STEP (MD4_H , d, a, b, c, w2[1], MD4C02, MD4S21);
372     MD4_STEP (MD4_H , c, d, a, b, w1[1], MD4C02, MD4S22);
373     MD4_STEP (MD4_H , b, c, d, a, w3[1], MD4C02, MD4S23);
374     MD4_STEP (MD4_H , a, b, c, d, w0[3], MD4C02, MD4S20);
375
376     if (MATCHES_NONE_VS (a, search[0])) continue;
377
378     MD4_STEP (MD4_H , d, a, b, c, w2[3], MD4C02, MD4S21);
379     MD4_STEP (MD4_H , c, d, a, b, w1[3], MD4C02, MD4S22);
380     MD4_STEP (MD4_H , b, c, d, a, w3[3], MD4C02, MD4S23);
381
382     COMPARE_S_SIMD (a, d, c, b);
383   }
384 }
385
386 __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_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)
387 {
388 }
389
390 __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_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)
391 {
392 }