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