Initial commit
[hashcat.git] / nv / m00010_a0.cu
1 /**
2  * Author......: Jens Steube <jens.steube@gmail.com>
3  * License.....: MIT
4  */
5
6 #define _MD5_
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_SIZE1
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 #include "include/rp_gpu.h"
28 #include "rp_nv.c"
29
30 #ifdef  VECT_SIZE1
31 #define VECT_COMPARE_S "check_single_vect1_comp4.c"
32 #define VECT_COMPARE_M "check_multi_vect1_comp4.c"
33 #endif
34
35 #ifdef  VECT_SIZE2
36 #define VECT_COMPARE_S "check_single_vect2_comp4.c"
37 #define VECT_COMPARE_M "check_multi_vect2_comp4.c"
38 #endif
39
40 #ifdef  VECT_SIZE4
41 #define VECT_COMPARE_S "check_single_vect4_comp4.c"
42 #define VECT_COMPARE_M "check_multi_vect4_comp4.c"
43 #endif
44
45 __device__ __constant__ gpu_rule_t c_rules[1024];
46
47 extern "C" __global__ void __launch_bounds__ (256, 1) m00010_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 rules_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
48 {
49   /**
50    * modifier
51    */
52
53   const u32 lid = threadIdx.x;
54
55   /**
56    * base
57    */
58
59   const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
60
61   if (gid >= gid_max) return;
62
63   u32x pw_buf0[4];
64
65   pw_buf0[0] = pws[gid].i[ 0];
66   pw_buf0[1] = pws[gid].i[ 1];
67   pw_buf0[2] = pws[gid].i[ 2];
68   pw_buf0[3] = pws[gid].i[ 3];
69
70   u32x pw_buf1[4];
71
72   pw_buf1[0] = pws[gid].i[ 4];
73   pw_buf1[1] = pws[gid].i[ 5];
74   pw_buf1[2] = pws[gid].i[ 6];
75   pw_buf1[3] = pws[gid].i[ 7];
76
77   const u32 pw_len = pws[gid].pw_len;
78
79   /**
80    * salt
81    */
82
83   u32 salt_buf0[4];
84
85   salt_buf0[0] = salt_bufs[salt_pos].salt_buf[0];
86   salt_buf0[1] = salt_bufs[salt_pos].salt_buf[1];
87   salt_buf0[2] = salt_bufs[salt_pos].salt_buf[2];
88   salt_buf0[3] = salt_bufs[salt_pos].salt_buf[3];
89
90   u32 salt_buf1[4];
91
92   salt_buf1[0] = salt_bufs[salt_pos].salt_buf[4];
93   salt_buf1[1] = salt_bufs[salt_pos].salt_buf[5];
94   salt_buf1[2] = salt_bufs[salt_pos].salt_buf[6];
95   salt_buf1[3] = salt_bufs[salt_pos].salt_buf[7];
96
97   const u32 salt_len = salt_bufs[salt_pos].salt_len;
98
99   /**
100    * loop
101    */
102
103   for (u32 il_pos = 0; il_pos < rules_cnt; il_pos++)
104   {
105     u32x w0[4];
106
107     w0[0] = pw_buf0[0];
108     w0[1] = pw_buf0[1];
109     w0[2] = pw_buf0[2];
110     w0[3] = pw_buf0[3];
111
112     u32x w1[4];
113
114     w1[0] = pw_buf1[0];
115     w1[1] = pw_buf1[1];
116     w1[2] = pw_buf1[2];
117     w1[3] = pw_buf1[3];
118
119     u32x w2[4];
120
121     w2[0] = 0;
122     w2[1] = 0;
123     w2[2] = 0;
124     w2[3] = 0;
125
126     u32x w3[4];
127
128     w3[0] = 0;
129     w3[1] = 0;
130     w3[2] = 0;
131     w3[3] = 0;
132
133     const u32 out_len = apply_rules (c_rules[il_pos].cmds, w0, w1, pw_len);
134
135     /**
136      * append salt
137      */
138
139     u32 s0[4];
140
141     s0[0] = salt_buf0[0];
142     s0[1] = salt_buf0[1];
143     s0[2] = salt_buf0[2];
144     s0[3] = salt_buf0[3];
145
146     u32 s1[4];
147
148     s1[0] = salt_buf1[0];
149     s1[1] = salt_buf1[1];
150     s1[2] = salt_buf1[2];
151     s1[3] = salt_buf1[3];
152
153     u32 s2[4];
154
155     s2[0] = 0;
156     s2[1] = 0;
157     s2[2] = 0;
158     s2[3] = 0;
159
160     u32 s3[4];
161
162     s3[0] = 0;
163     s3[1] = 0;
164     s3[2] = 0;
165     s3[3] = 0;
166
167     switch_buffer_by_offset (s0, s1, s2, s3, out_len);
168
169     const u32 pw_salt_len = out_len + salt_len;
170
171     w0[0] |= s0[0];
172     w0[1] |= s0[1];
173     w0[2] |= s0[2];
174     w0[3] |= s0[3];
175
176     w1[0] |= s1[0];
177     w1[1] |= s1[1];
178     w1[2] |= s1[2];
179     w1[3] |= s1[3];
180
181     w2[0] |= s2[0];
182     w2[1] |= s2[1];
183     w2[2] |= s2[2];
184     w2[3] |= s2[3];
185
186     w3[0] |= s3[0];
187     w3[1] |= s3[1];
188     w3[2]  = pw_salt_len * 8;
189     w3[3]  = 0;
190
191     append_0x80_4 (w0, w1, w2, w3, pw_salt_len);
192
193     /**
194      * md5
195      */
196
197     u32x tmp2;
198
199     u32x a = MD5M_A;
200     u32x b = MD5M_B;
201     u32x c = MD5M_C;
202     u32x d = MD5M_D;
203
204     MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
205     MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
206     MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
207     MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
208     MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
209     MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
210     MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
211     MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
212     MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
213     MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
214     MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
215     MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
216     MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
217     MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
218     MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
219     MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
220
221     MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
222     MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
223     MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
224     MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
225     MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
226     MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
227     MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
228     MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
229     MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
230     MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
231     MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
232     MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
233     MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
234     MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
235     MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
236     MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
237
238     MD5_STEP (MD5_H1, a, b, c, d, w1[1], MD5C20, MD5S20);
239     MD5_STEP (MD5_H2, d, a, b, c, w2[0], MD5C21, MD5S21);
240     MD5_STEP (MD5_H1, c, d, a, b, w2[3], MD5C22, MD5S22);
241     MD5_STEP (MD5_H2, b, c, d, a, w3[2], MD5C23, MD5S23);
242     MD5_STEP (MD5_H1, a, b, c, d, w0[1], MD5C24, MD5S20);
243     MD5_STEP (MD5_H2, d, a, b, c, w1[0], MD5C25, MD5S21);
244     MD5_STEP (MD5_H1, c, d, a, b, w1[3], MD5C26, MD5S22);
245     MD5_STEP (MD5_H2, b, c, d, a, w2[2], MD5C27, MD5S23);
246     MD5_STEP (MD5_H1, a, b, c, d, w3[1], MD5C28, MD5S20);
247     MD5_STEP (MD5_H2, d, a, b, c, w0[0], MD5C29, MD5S21);
248     MD5_STEP (MD5_H1, c, d, a, b, w0[3], MD5C2a, MD5S22);
249     MD5_STEP (MD5_H2, b, c, d, a, w1[2], MD5C2b, MD5S23);
250     MD5_STEP (MD5_H1, a, b, c, d, w2[1], MD5C2c, MD5S20);
251     MD5_STEP (MD5_H2, d, a, b, c, w3[0], MD5C2d, MD5S21);
252     MD5_STEP (MD5_H1, c, d, a, b, w3[3], MD5C2e, MD5S22);
253     MD5_STEP (MD5_H2, b, c, d, a, w0[2], MD5C2f, MD5S23);
254
255     MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
256     MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
257     MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
258     MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
259     MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
260     MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
261     MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
262     MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
263     MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
264     MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
265     MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
266     MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
267     MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
268     MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
269     MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
270     MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
271
272
273     const u32x r0 = a;
274     const u32x r1 = d;
275     const u32x r2 = c;
276     const u32x r3 = b;
277
278     #include VECT_COMPARE_M
279   }
280 }
281
282 extern "C" __global__ void __launch_bounds__ (256, 1) m00010_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)
283 {
284 }
285
286 extern "C" __global__ void __launch_bounds__ (256, 1) m00010_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)
287 {
288 }
289
290 extern "C" __global__ void __launch_bounds__ (256, 1) m00010_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 rules_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
291 {
292   /**
293    * modifier
294    */
295
296   const u32 lid = threadIdx.x;
297
298   /**
299    * base
300    */
301
302   const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
303
304   if (gid >= gid_max) return;
305
306   u32x pw_buf0[4];
307
308   pw_buf0[0] = pws[gid].i[ 0];
309   pw_buf0[1] = pws[gid].i[ 1];
310   pw_buf0[2] = pws[gid].i[ 2];
311   pw_buf0[3] = pws[gid].i[ 3];
312
313   u32x pw_buf1[4];
314
315   pw_buf1[0] = pws[gid].i[ 4];
316   pw_buf1[1] = pws[gid].i[ 5];
317   pw_buf1[2] = pws[gid].i[ 6];
318   pw_buf1[3] = pws[gid].i[ 7];
319
320   const u32 pw_len = pws[gid].pw_len;
321
322   /**
323    * salt
324    */
325
326   u32 salt_buf0[4];
327
328   salt_buf0[0] = salt_bufs[salt_pos].salt_buf[0];
329   salt_buf0[1] = salt_bufs[salt_pos].salt_buf[1];
330   salt_buf0[2] = salt_bufs[salt_pos].salt_buf[2];
331   salt_buf0[3] = salt_bufs[salt_pos].salt_buf[3];
332
333   u32 salt_buf1[4];
334
335   salt_buf1[0] = salt_bufs[salt_pos].salt_buf[4];
336   salt_buf1[1] = salt_bufs[salt_pos].salt_buf[5];
337   salt_buf1[2] = salt_bufs[salt_pos].salt_buf[6];
338   salt_buf1[3] = salt_bufs[salt_pos].salt_buf[7];
339
340   const u32 salt_len = salt_bufs[salt_pos].salt_len;
341
342   /**
343    * digest
344    */
345
346   const u32 search[4] =
347   {
348     digests_buf[digests_offset].digest_buf[DGST_R0],
349     digests_buf[digests_offset].digest_buf[DGST_R1],
350     digests_buf[digests_offset].digest_buf[DGST_R2],
351     digests_buf[digests_offset].digest_buf[DGST_R3]
352   };
353
354   /**
355    * loop
356    */
357
358   for (u32 il_pos = 0; il_pos < rules_cnt; il_pos++)
359   {
360     u32x w0[4];
361
362     w0[0] = pw_buf0[0];
363     w0[1] = pw_buf0[1];
364     w0[2] = pw_buf0[2];
365     w0[3] = pw_buf0[3];
366
367     u32x w1[4];
368
369     w1[0] = pw_buf1[0];
370     w1[1] = pw_buf1[1];
371     w1[2] = pw_buf1[2];
372     w1[3] = pw_buf1[3];
373
374     u32x w2[4];
375
376     w2[0] = 0;
377     w2[1] = 0;
378     w2[2] = 0;
379     w2[3] = 0;
380
381     u32x w3[4];
382
383     w3[0] = 0;
384     w3[1] = 0;
385     w3[2] = 0;
386     w3[3] = 0;
387
388     const u32 out_len = apply_rules (c_rules[il_pos].cmds, w0, w1, pw_len);
389
390     /**
391      * append salt
392      */
393
394     u32 s0[4];
395
396     s0[0] = salt_buf0[0];
397     s0[1] = salt_buf0[1];
398     s0[2] = salt_buf0[2];
399     s0[3] = salt_buf0[3];
400
401     u32 s1[4];
402
403     s1[0] = salt_buf1[0];
404     s1[1] = salt_buf1[1];
405     s1[2] = salt_buf1[2];
406     s1[3] = salt_buf1[3];
407
408     u32 s2[4];
409
410     s2[0] = 0;
411     s2[1] = 0;
412     s2[2] = 0;
413     s2[3] = 0;
414
415     u32 s3[4];
416
417     s3[0] = 0;
418     s3[1] = 0;
419     s3[2] = 0;
420     s3[3] = 0;
421
422     switch_buffer_by_offset (s0, s1, s2, s3, out_len);
423
424     const u32 pw_salt_len = out_len + salt_len;
425
426     w0[0] |= s0[0];
427     w0[1] |= s0[1];
428     w0[2] |= s0[2];
429     w0[3] |= s0[3];
430
431     w1[0] |= s1[0];
432     w1[1] |= s1[1];
433     w1[2] |= s1[2];
434     w1[3] |= s1[3];
435
436     w2[0] |= s2[0];
437     w2[1] |= s2[1];
438     w2[2] |= s2[2];
439     w2[3] |= s2[3];
440
441     w3[0] |= s3[0];
442     w3[1] |= s3[1];
443     w3[2]  = pw_salt_len * 8;
444     w3[3]  = 0;
445
446     append_0x80_4 (w0, w1, w2, w3, pw_salt_len);
447
448     /**
449      * md5
450      */
451
452     u32x tmp2;
453
454     u32x a = MD5M_A;
455     u32x b = MD5M_B;
456     u32x c = MD5M_C;
457     u32x d = MD5M_D;
458
459     MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
460     MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
461     MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
462     MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
463     MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
464     MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
465     MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
466     MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
467     MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
468     MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
469     MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
470     MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
471     MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
472     MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
473     MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
474     MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
475
476     MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
477     MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
478     MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
479     MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
480     MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
481     MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
482     MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
483     MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
484     MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
485     MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
486     MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
487     MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
488     MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
489     MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
490     MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
491     MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
492
493     MD5_STEP (MD5_H1, a, b, c, d, w1[1], MD5C20, MD5S20);
494     MD5_STEP (MD5_H2, d, a, b, c, w2[0], MD5C21, MD5S21);
495     MD5_STEP (MD5_H1, c, d, a, b, w2[3], MD5C22, MD5S22);
496     MD5_STEP (MD5_H2, b, c, d, a, w3[2], MD5C23, MD5S23);
497     MD5_STEP (MD5_H1, a, b, c, d, w0[1], MD5C24, MD5S20);
498     MD5_STEP (MD5_H2, d, a, b, c, w1[0], MD5C25, MD5S21);
499     MD5_STEP (MD5_H1, c, d, a, b, w1[3], MD5C26, MD5S22);
500     MD5_STEP (MD5_H2, b, c, d, a, w2[2], MD5C27, MD5S23);
501     MD5_STEP (MD5_H1, a, b, c, d, w3[1], MD5C28, MD5S20);
502     MD5_STEP (MD5_H2, d, a, b, c, w0[0], MD5C29, MD5S21);
503     MD5_STEP (MD5_H1, c, d, a, b, w0[3], MD5C2a, MD5S22);
504     MD5_STEP (MD5_H2, b, c, d, a, w1[2], MD5C2b, MD5S23);
505     MD5_STEP (MD5_H1, a, b, c, d, w2[1], MD5C2c, MD5S20);
506     MD5_STEP (MD5_H2, d, a, b, c, w3[0], MD5C2d, MD5S21);
507     MD5_STEP (MD5_H1, c, d, a, b, w3[3], MD5C2e, MD5S22);
508     MD5_STEP (MD5_H2, b, c, d, a, w0[2], MD5C2f, MD5S23);
509
510     MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
511     MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
512     MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
513     MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
514     MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
515     MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
516     MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
517     MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
518     MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
519     MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
520     MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
521     MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
522     MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
523
524     bool q_cond = (search[0] != a);
525
526     if (q_cond) continue;
527
528     MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
529     MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
530     MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
531
532
533     const u32x r0 = a;
534     const u32x r1 = d;
535     const u32x r2 = c;
536     const u32x r3 = b;
537
538     #include VECT_COMPARE_S
539   }
540 }
541
542 extern "C" __global__ void __launch_bounds__ (256, 1) m00010_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)
543 {
544 }
545
546 extern "C" __global__ void __launch_bounds__ (256, 1) m00010_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)
547 {
548 }