2 * Author......: Jens Steube <jens.steube@gmail.com>
8 #include "include/constants.h"
9 #include "include/kernel_vendor.h"
24 #include "include/kernel_functions.c"
26 #include "common_nv.c"
29 #define VECT_COMPARE_S "check_single_vect1_comp4.c"
30 #define VECT_COMPARE_M "check_multi_vect1_comp4.c"
34 #define VECT_COMPARE_S "check_single_vect2_comp4.c"
35 #define VECT_COMPARE_M "check_multi_vect2_comp4.c"
39 #define VECT_COMPARE_S "check_single_vect4_comp4.c"
40 #define VECT_COMPARE_M "check_multi_vect4_comp4.c"
43 __device__ __constant__ comb_t c_combs[1024];
46 #define uint_to_hex_lower8(i) l_bin2asc[(i)]
50 #define uint_to_hex_lower8(i) u32x (l_bin2asc[(i).x], l_bin2asc[(i).y])
54 #define uint_to_hex_lower8(i) u32x (l_bin2asc[(i).x], l_bin2asc[(i).y], l_bin2asc[(i).z], l_bin2asc[(i).w])
57 __device__ __constant__ char c_bin2asc[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
59 __device__ __shared__ short l_bin2asc[256];
61 extern "C" __global__ void __launch_bounds__ (256, 1) m02710_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)
67 const u32 lid = threadIdx.x;
73 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
77 wordl0[0] = pws[gid].i[ 0];
78 wordl0[1] = pws[gid].i[ 1];
79 wordl0[2] = pws[gid].i[ 2];
80 wordl0[3] = pws[gid].i[ 3];
84 wordl1[0] = pws[gid].i[ 4];
85 wordl1[1] = pws[gid].i[ 5];
86 wordl1[2] = pws[gid].i[ 6];
87 wordl1[3] = pws[gid].i[ 7];
103 const u32 pw_l_len = pws[gid].pw_len;
105 if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
107 append_0x80_2 (wordl0, wordl1, pw_l_len);
109 switch_buffer_by_offset (wordl0, wordl1, wordl2, wordl3, c_combs[0].pw_len);
118 s[0] = salt_bufs[salt_pos].salt_buf[0];
119 s[1] = salt_bufs[salt_pos].salt_buf[1];
120 s[2] = salt_bufs[salt_pos].salt_buf[2];
121 s[3] = salt_bufs[salt_pos].salt_buf[3];
122 s[4] = salt_bufs[salt_pos].salt_buf[4];
123 s[5] = salt_bufs[salt_pos].salt_buf[5];
124 s[6] = salt_bufs[salt_pos].salt_buf[6];
125 s[7] = salt_bufs[salt_pos].salt_buf[7];
127 const u32 salt_len = salt_bufs[salt_pos].salt_len;
129 const u32 r_14 = (32 + salt_len) * 8;
135 l_bin2asc[lid] = c_bin2asc[(lid >> 0) & 15] << 8
136 | c_bin2asc[(lid >> 4) & 15] << 0;
140 if (gid >= gid_max) return;
146 for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
148 const u32 pw_r_len = c_combs[il_pos].pw_len;
150 const u32 pw_len = pw_l_len + pw_r_len;
154 wordr0[0] = c_combs[il_pos].i[0];
155 wordr0[1] = c_combs[il_pos].i[1];
156 wordr0[2] = c_combs[il_pos].i[2];
157 wordr0[3] = c_combs[il_pos].i[3];
161 wordr1[0] = c_combs[il_pos].i[4];
162 wordr1[1] = c_combs[il_pos].i[5];
163 wordr1[2] = c_combs[il_pos].i[6];
164 wordr1[3] = c_combs[il_pos].i[7];
180 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
182 switch_buffer_by_offset (wordr0, wordr1, wordr2, wordr3, pw_l_len);
187 w0[0] = wordl0[0] | wordr0[0];
188 w0[1] = wordl0[1] | wordr0[1];
189 w0[2] = wordl0[2] | wordr0[2];
190 w0[3] = wordl0[3] | wordr0[3];
194 w1[0] = wordl1[0] | wordr1[0];
195 w1[1] = wordl1[1] | wordr1[1];
196 w1[2] = wordl1[2] | wordr1[2];
197 w1[3] = wordl1[3] | wordr1[3];
201 w2[0] = wordl2[0] | wordr2[0];
202 w2[1] = wordl2[1] | wordr2[1];
203 w2[2] = wordl2[2] | wordr2[2];
204 w2[3] = wordl2[3] | wordr2[3];
208 w3[0] = wordl3[0] | wordr3[0];
209 w3[1] = wordl3[1] | wordr3[1];
218 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
219 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
220 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
221 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
222 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
223 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
224 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
225 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
226 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
227 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
228 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
229 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
230 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
231 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
232 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
233 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
235 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
236 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
237 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
238 MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
239 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
240 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
241 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
242 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
243 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
244 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
245 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
246 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
247 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
248 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
249 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
250 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
252 MD5_STEP (MD5_H , a, b, c, d, w1[1], MD5C20, MD5S20);
253 MD5_STEP (MD5_H , d, a, b, c, w2[0], MD5C21, MD5S21);
254 MD5_STEP (MD5_H , c, d, a, b, w2[3], MD5C22, MD5S22);
255 MD5_STEP (MD5_H , b, c, d, a, w3[2], MD5C23, MD5S23);
256 MD5_STEP (MD5_H , a, b, c, d, w0[1], MD5C24, MD5S20);
257 MD5_STEP (MD5_H , d, a, b, c, w1[0], MD5C25, MD5S21);
258 MD5_STEP (MD5_H , c, d, a, b, w1[3], MD5C26, MD5S22);
259 MD5_STEP (MD5_H , b, c, d, a, w2[2], MD5C27, MD5S23);
260 MD5_STEP (MD5_H , a, b, c, d, w3[1], MD5C28, MD5S20);
261 MD5_STEP (MD5_H , d, a, b, c, w0[0], MD5C29, MD5S21);
262 MD5_STEP (MD5_H , c, d, a, b, w0[3], MD5C2a, MD5S22);
263 MD5_STEP (MD5_H , b, c, d, a, w1[2], MD5C2b, MD5S23);
264 MD5_STEP (MD5_H , a, b, c, d, w2[1], MD5C2c, MD5S20);
265 MD5_STEP (MD5_H , d, a, b, c, w3[0], MD5C2d, MD5S21);
266 MD5_STEP (MD5_H , c, d, a, b, w3[3], MD5C2e, MD5S22);
267 MD5_STEP (MD5_H , b, c, d, a, w0[2], MD5C2f, MD5S23);
269 MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
270 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
271 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
272 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
273 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
274 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
275 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
276 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
277 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
278 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
279 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
280 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
281 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
282 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
283 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
284 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
291 const u32x w0_t = uint_to_hex_lower8 ((a >> 0) & 255) << 0
292 | uint_to_hex_lower8 ((a >> 8) & 255) << 16;
293 const u32x w1_t = uint_to_hex_lower8 ((a >> 16) & 255) << 0
294 | uint_to_hex_lower8 ((a >> 24) & 255) << 16;
295 const u32x w2_t = uint_to_hex_lower8 ((b >> 0) & 255) << 0
296 | uint_to_hex_lower8 ((b >> 8) & 255) << 16;
297 const u32x w3_t = uint_to_hex_lower8 ((b >> 16) & 255) << 0
298 | uint_to_hex_lower8 ((b >> 24) & 255) << 16;
299 const u32x w4_t = uint_to_hex_lower8 ((c >> 0) & 255) << 0
300 | uint_to_hex_lower8 ((c >> 8) & 255) << 16;
301 const u32x w5_t = uint_to_hex_lower8 ((c >> 16) & 255) << 0
302 | uint_to_hex_lower8 ((c >> 24) & 255) << 16;
303 const u32x w6_t = uint_to_hex_lower8 ((d >> 0) & 255) << 0
304 | uint_to_hex_lower8 ((d >> 8) & 255) << 16;
305 const u32x w7_t = uint_to_hex_lower8 ((d >> 16) & 255) << 0
306 | uint_to_hex_lower8 ((d >> 24) & 255) << 16;
308 const u32 w8_t = s[0];
309 const u32 w9_t = s[1];
310 const u32 wa_t = s[2];
311 const u32 wb_t = s[3];
312 const u32 wc_t = s[4];
313 const u32 wd_t = s[5];
314 const u32 we_t = s[6];
315 const u32 wf_t = s[7];
322 MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00);
323 MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01);
324 MD5_STEP (MD5_Fo, c, d, a, b, w2_t, MD5C02, MD5S02);
325 MD5_STEP (MD5_Fo, b, c, d, a, w3_t, MD5C03, MD5S03);
326 MD5_STEP (MD5_Fo, a, b, c, d, w4_t, MD5C04, MD5S00);
327 MD5_STEP (MD5_Fo, d, a, b, c, w5_t, MD5C05, MD5S01);
328 MD5_STEP (MD5_Fo, c, d, a, b, w6_t, MD5C06, MD5S02);
329 MD5_STEP (MD5_Fo, b, c, d, a, w7_t, MD5C07, MD5S03);
330 MD5_STEP (MD5_Fo, a, b, c, d, w8_t, MD5C08, MD5S00);
331 MD5_STEP (MD5_Fo, d, a, b, c, w9_t, MD5C09, MD5S01);
332 MD5_STEP (MD5_Fo, c, d, a, b, wa_t, MD5C0a, MD5S02);
333 MD5_STEP (MD5_Fo, b, c, d, a, wb_t, MD5C0b, MD5S03);
334 MD5_STEP (MD5_Fo, a, b, c, d, wc_t, MD5C0c, MD5S00);
335 MD5_STEP (MD5_Fo, d, a, b, c, wd_t, MD5C0d, MD5S01);
336 MD5_STEP (MD5_Fo, c, d, a, b, we_t, MD5C0e, MD5S02);
337 MD5_STEP (MD5_Fo, b, c, d, a, wf_t, MD5C0f, MD5S03);
339 MD5_STEP (MD5_Go, a, b, c, d, w1_t, MD5C10, MD5S10);
340 MD5_STEP (MD5_Go, d, a, b, c, w6_t, MD5C11, MD5S11);
341 MD5_STEP (MD5_Go, c, d, a, b, wb_t, MD5C12, MD5S12);
342 MD5_STEP (MD5_Go, b, c, d, a, w0_t, MD5C13, MD5S13);
343 MD5_STEP (MD5_Go, a, b, c, d, w5_t, MD5C14, MD5S10);
344 MD5_STEP (MD5_Go, d, a, b, c, wa_t, MD5C15, MD5S11);
345 MD5_STEP (MD5_Go, c, d, a, b, wf_t, MD5C16, MD5S12);
346 MD5_STEP (MD5_Go, b, c, d, a, w4_t, MD5C17, MD5S13);
347 MD5_STEP (MD5_Go, a, b, c, d, w9_t, MD5C18, MD5S10);
348 MD5_STEP (MD5_Go, d, a, b, c, we_t, MD5C19, MD5S11);
349 MD5_STEP (MD5_Go, c, d, a, b, w3_t, MD5C1a, MD5S12);
350 MD5_STEP (MD5_Go, b, c, d, a, w8_t, MD5C1b, MD5S13);
351 MD5_STEP (MD5_Go, a, b, c, d, wd_t, MD5C1c, MD5S10);
352 MD5_STEP (MD5_Go, d, a, b, c, w2_t, MD5C1d, MD5S11);
353 MD5_STEP (MD5_Go, c, d, a, b, w7_t, MD5C1e, MD5S12);
354 MD5_STEP (MD5_Go, b, c, d, a, wc_t, MD5C1f, MD5S13);
356 MD5_STEP (MD5_H , a, b, c, d, w5_t, MD5C20, MD5S20);
357 MD5_STEP (MD5_H , d, a, b, c, w8_t, MD5C21, MD5S21);
358 MD5_STEP (MD5_H , c, d, a, b, wb_t, MD5C22, MD5S22);
359 MD5_STEP (MD5_H , b, c, d, a, we_t, MD5C23, MD5S23);
360 MD5_STEP (MD5_H , a, b, c, d, w1_t, MD5C24, MD5S20);
361 MD5_STEP (MD5_H , d, a, b, c, w4_t, MD5C25, MD5S21);
362 MD5_STEP (MD5_H , c, d, a, b, w7_t, MD5C26, MD5S22);
363 MD5_STEP (MD5_H , b, c, d, a, wa_t, MD5C27, MD5S23);
364 MD5_STEP (MD5_H , a, b, c, d, wd_t, MD5C28, MD5S20);
365 MD5_STEP (MD5_H , d, a, b, c, w0_t, MD5C29, MD5S21);
366 MD5_STEP (MD5_H , c, d, a, b, w3_t, MD5C2a, MD5S22);
367 MD5_STEP (MD5_H , b, c, d, a, w6_t, MD5C2b, MD5S23);
368 MD5_STEP (MD5_H , a, b, c, d, w9_t, MD5C2c, MD5S20);
369 MD5_STEP (MD5_H , d, a, b, c, wc_t, MD5C2d, MD5S21);
370 MD5_STEP (MD5_H , c, d, a, b, wf_t, MD5C2e, MD5S22);
371 MD5_STEP (MD5_H , b, c, d, a, w2_t, MD5C2f, MD5S23);
373 MD5_STEP (MD5_I , a, b, c, d, w0_t, MD5C30, MD5S30);
374 MD5_STEP (MD5_I , d, a, b, c, w7_t, MD5C31, MD5S31);
375 MD5_STEP (MD5_I , c, d, a, b, we_t, MD5C32, MD5S32);
376 MD5_STEP (MD5_I , b, c, d, a, w5_t, MD5C33, MD5S33);
377 MD5_STEP (MD5_I , a, b, c, d, wc_t, MD5C34, MD5S30);
378 MD5_STEP (MD5_I , d, a, b, c, w3_t, MD5C35, MD5S31);
379 MD5_STEP (MD5_I , c, d, a, b, wa_t, MD5C36, MD5S32);
380 MD5_STEP (MD5_I , b, c, d, a, w1_t, MD5C37, MD5S33);
381 MD5_STEP (MD5_I , a, b, c, d, w8_t, MD5C38, MD5S30);
382 MD5_STEP (MD5_I , d, a, b, c, wf_t, MD5C39, MD5S31);
383 MD5_STEP (MD5_I , c, d, a, b, w6_t, MD5C3a, MD5S32);
384 MD5_STEP (MD5_I , b, c, d, a, wd_t, MD5C3b, MD5S33);
385 MD5_STEP (MD5_I , a, b, c, d, w4_t, MD5C3c, MD5S30);
386 MD5_STEP (MD5_I , d, a, b, c, wb_t, MD5C3d, MD5S31);
387 MD5_STEP (MD5_I , c, d, a, b, w2_t, MD5C3e, MD5S32);
388 MD5_STEP (MD5_I , b, c, d, a, w9_t, MD5C3f, MD5S33);
390 const u32x r_a = a + MD5M_A;
391 const u32x r_b = b + MD5M_B;
392 const u32x r_c = c + MD5M_C;
393 const u32x r_d = d + MD5M_D;
400 MD5_STEP0(MD5_Fo, a, b, c, d, MD5C00, MD5S00);
401 MD5_STEP0(MD5_Fo, d, a, b, c, MD5C01, MD5S01);
402 MD5_STEP0(MD5_Fo, c, d, a, b, MD5C02, MD5S02);
403 MD5_STEP0(MD5_Fo, b, c, d, a, MD5C03, MD5S03);
404 MD5_STEP0(MD5_Fo, a, b, c, d, MD5C04, MD5S00);
405 MD5_STEP0(MD5_Fo, d, a, b, c, MD5C05, MD5S01);
406 MD5_STEP0(MD5_Fo, c, d, a, b, MD5C06, MD5S02);
407 MD5_STEP0(MD5_Fo, b, c, d, a, MD5C07, MD5S03);
408 MD5_STEP0(MD5_Fo, a, b, c, d, MD5C08, MD5S00);
409 MD5_STEP0(MD5_Fo, d, a, b, c, MD5C09, MD5S01);
410 MD5_STEP0(MD5_Fo, c, d, a, b, MD5C0a, MD5S02);
411 MD5_STEP0(MD5_Fo, b, c, d, a, MD5C0b, MD5S03);
412 MD5_STEP0(MD5_Fo, a, b, c, d, MD5C0c, MD5S00);
413 MD5_STEP0(MD5_Fo, d, a, b, c, MD5C0d, MD5S01);
414 MD5_STEP (MD5_Fo, c, d, a, b, r_14, MD5C0e, MD5S02);
415 MD5_STEP0(MD5_Fo, b, c, d, a, MD5C0f, MD5S03);
417 MD5_STEP0(MD5_Go, a, b, c, d, MD5C10, MD5S10);
418 MD5_STEP0(MD5_Go, d, a, b, c, MD5C11, MD5S11);
419 MD5_STEP0(MD5_Go, c, d, a, b, MD5C12, MD5S12);
420 MD5_STEP0(MD5_Go, b, c, d, a, MD5C13, MD5S13);
421 MD5_STEP0(MD5_Go, a, b, c, d, MD5C14, MD5S10);
422 MD5_STEP0(MD5_Go, d, a, b, c, MD5C15, MD5S11);
423 MD5_STEP0(MD5_Go, c, d, a, b, MD5C16, MD5S12);
424 MD5_STEP0(MD5_Go, b, c, d, a, MD5C17, MD5S13);
425 MD5_STEP0(MD5_Go, a, b, c, d, MD5C18, MD5S10);
426 MD5_STEP (MD5_Go, d, a, b, c, r_14, MD5C19, MD5S11);
427 MD5_STEP0(MD5_Go, c, d, a, b, MD5C1a, MD5S12);
428 MD5_STEP0(MD5_Go, b, c, d, a, MD5C1b, MD5S13);
429 MD5_STEP0(MD5_Go, a, b, c, d, MD5C1c, MD5S10);
430 MD5_STEP0(MD5_Go, d, a, b, c, MD5C1d, MD5S11);
431 MD5_STEP0(MD5_Go, c, d, a, b, MD5C1e, MD5S12);
432 MD5_STEP0(MD5_Go, b, c, d, a, MD5C1f, MD5S13);
434 MD5_STEP0(MD5_H , a, b, c, d, MD5C20, MD5S20);
435 MD5_STEP0(MD5_H , d, a, b, c, MD5C21, MD5S21);
436 MD5_STEP0(MD5_H , c, d, a, b, MD5C22, MD5S22);
437 MD5_STEP (MD5_H , b, c, d, a, r_14, MD5C23, MD5S23);
438 MD5_STEP0(MD5_H , a, b, c, d, MD5C24, MD5S20);
439 MD5_STEP0(MD5_H , d, a, b, c, MD5C25, MD5S21);
440 MD5_STEP0(MD5_H , c, d, a, b, MD5C26, MD5S22);
441 MD5_STEP0(MD5_H , b, c, d, a, MD5C27, MD5S23);
442 MD5_STEP0(MD5_H , a, b, c, d, MD5C28, MD5S20);
443 MD5_STEP0(MD5_H , d, a, b, c, MD5C29, MD5S21);
444 MD5_STEP0(MD5_H , c, d, a, b, MD5C2a, MD5S22);
445 MD5_STEP0(MD5_H , b, c, d, a, MD5C2b, MD5S23);
446 MD5_STEP0(MD5_H , a, b, c, d, MD5C2c, MD5S20);
447 MD5_STEP0(MD5_H , d, a, b, c, MD5C2d, MD5S21);
448 MD5_STEP0(MD5_H , c, d, a, b, MD5C2e, MD5S22);
449 MD5_STEP0(MD5_H , b, c, d, a, MD5C2f, MD5S23);
451 MD5_STEP0(MD5_I , a, b, c, d, MD5C30, MD5S30);
452 MD5_STEP0(MD5_I , d, a, b, c, MD5C31, MD5S31);
453 MD5_STEP (MD5_I , c, d, a, b, r_14, MD5C32, MD5S32);
454 MD5_STEP0(MD5_I , b, c, d, a, MD5C33, MD5S33);
455 MD5_STEP0(MD5_I , a, b, c, d, MD5C34, MD5S30);
456 MD5_STEP0(MD5_I , d, a, b, c, MD5C35, MD5S31);
457 MD5_STEP0(MD5_I , c, d, a, b, MD5C36, MD5S32);
458 MD5_STEP0(MD5_I , b, c, d, a, MD5C37, MD5S33);
459 MD5_STEP0(MD5_I , a, b, c, d, MD5C38, MD5S30);
460 MD5_STEP0(MD5_I , d, a, b, c, MD5C39, MD5S31);
461 MD5_STEP0(MD5_I , c, d, a, b, MD5C3a, MD5S32);
462 MD5_STEP0(MD5_I , b, c, d, a, MD5C3b, MD5S33);
463 MD5_STEP0(MD5_I , a, b, c, d, MD5C3c, MD5S30);
464 MD5_STEP0(MD5_I , d, a, b, c, MD5C3d, MD5S31);
465 MD5_STEP0(MD5_I , c, d, a, b, MD5C3e, MD5S32);
466 MD5_STEP0(MD5_I , b, c, d, a, MD5C3f, MD5S33);
478 #include VECT_COMPARE_M
482 extern "C" __global__ void __launch_bounds__ (256, 1) m02710_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)
486 extern "C" __global__ void __launch_bounds__ (256, 1) m02710_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)
490 extern "C" __global__ void __launch_bounds__ (256, 1) m02710_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)
496 const u32 lid = threadIdx.x;
502 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
506 wordl0[0] = pws[gid].i[ 0];
507 wordl0[1] = pws[gid].i[ 1];
508 wordl0[2] = pws[gid].i[ 2];
509 wordl0[3] = pws[gid].i[ 3];
513 wordl1[0] = pws[gid].i[ 4];
514 wordl1[1] = pws[gid].i[ 5];
515 wordl1[2] = pws[gid].i[ 6];
516 wordl1[3] = pws[gid].i[ 7];
532 const u32 pw_l_len = pws[gid].pw_len;
534 if (combs_mode == COMBINATOR_MODE_BASE_RIGHT)
536 append_0x80_2 (wordl0, wordl1, pw_l_len);
538 switch_buffer_by_offset (wordl0, wordl1, wordl2, wordl3, c_combs[0].pw_len);
547 s[0] = salt_bufs[salt_pos].salt_buf[0];
548 s[1] = salt_bufs[salt_pos].salt_buf[1];
549 s[2] = salt_bufs[salt_pos].salt_buf[2];
550 s[3] = salt_bufs[salt_pos].salt_buf[3];
551 s[4] = salt_bufs[salt_pos].salt_buf[4];
552 s[5] = salt_bufs[salt_pos].salt_buf[5];
553 s[6] = salt_bufs[salt_pos].salt_buf[6];
554 s[7] = salt_bufs[salt_pos].salt_buf[7];
556 const u32 salt_len = salt_bufs[salt_pos].salt_len;
558 const u32 r_14 = (32 + salt_len) * 8;
564 const u32 search[4] =
566 digests_buf[digests_offset].digest_buf[DGST_R0],
567 digests_buf[digests_offset].digest_buf[DGST_R1],
568 digests_buf[digests_offset].digest_buf[DGST_R2],
569 digests_buf[digests_offset].digest_buf[DGST_R3]
576 l_bin2asc[lid] = c_bin2asc[(lid >> 0) & 15] << 8
577 | c_bin2asc[(lid >> 4) & 15] << 0;
581 if (gid >= gid_max) return;
587 for (u32 il_pos = 0; il_pos < combs_cnt; il_pos++)
589 const u32 pw_r_len = c_combs[il_pos].pw_len;
591 const u32 pw_len = pw_l_len + pw_r_len;
595 wordr0[0] = c_combs[il_pos].i[0];
596 wordr0[1] = c_combs[il_pos].i[1];
597 wordr0[2] = c_combs[il_pos].i[2];
598 wordr0[3] = c_combs[il_pos].i[3];
602 wordr1[0] = c_combs[il_pos].i[4];
603 wordr1[1] = c_combs[il_pos].i[5];
604 wordr1[2] = c_combs[il_pos].i[6];
605 wordr1[3] = c_combs[il_pos].i[7];
621 if (combs_mode == COMBINATOR_MODE_BASE_LEFT)
623 switch_buffer_by_offset (wordr0, wordr1, wordr2, wordr3, pw_l_len);
628 w0[0] = wordl0[0] | wordr0[0];
629 w0[1] = wordl0[1] | wordr0[1];
630 w0[2] = wordl0[2] | wordr0[2];
631 w0[3] = wordl0[3] | wordr0[3];
635 w1[0] = wordl1[0] | wordr1[0];
636 w1[1] = wordl1[1] | wordr1[1];
637 w1[2] = wordl1[2] | wordr1[2];
638 w1[3] = wordl1[3] | wordr1[3];
642 w2[0] = wordl2[0] | wordr2[0];
643 w2[1] = wordl2[1] | wordr2[1];
644 w2[2] = wordl2[2] | wordr2[2];
645 w2[3] = wordl2[3] | wordr2[3];
649 w3[0] = wordl3[0] | wordr3[0];
650 w3[1] = wordl3[1] | wordr3[1];
659 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
660 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
661 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
662 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
663 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
664 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
665 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
666 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
667 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
668 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
669 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
670 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
671 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
672 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
673 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
674 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
676 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
677 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
678 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
679 MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
680 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
681 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
682 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
683 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
684 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
685 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
686 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
687 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
688 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
689 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
690 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
691 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
693 MD5_STEP (MD5_H , a, b, c, d, w1[1], MD5C20, MD5S20);
694 MD5_STEP (MD5_H , d, a, b, c, w2[0], MD5C21, MD5S21);
695 MD5_STEP (MD5_H , c, d, a, b, w2[3], MD5C22, MD5S22);
696 MD5_STEP (MD5_H , b, c, d, a, w3[2], MD5C23, MD5S23);
697 MD5_STEP (MD5_H , a, b, c, d, w0[1], MD5C24, MD5S20);
698 MD5_STEP (MD5_H , d, a, b, c, w1[0], MD5C25, MD5S21);
699 MD5_STEP (MD5_H , c, d, a, b, w1[3], MD5C26, MD5S22);
700 MD5_STEP (MD5_H , b, c, d, a, w2[2], MD5C27, MD5S23);
701 MD5_STEP (MD5_H , a, b, c, d, w3[1], MD5C28, MD5S20);
702 MD5_STEP (MD5_H , d, a, b, c, w0[0], MD5C29, MD5S21);
703 MD5_STEP (MD5_H , c, d, a, b, w0[3], MD5C2a, MD5S22);
704 MD5_STEP (MD5_H , b, c, d, a, w1[2], MD5C2b, MD5S23);
705 MD5_STEP (MD5_H , a, b, c, d, w2[1], MD5C2c, MD5S20);
706 MD5_STEP (MD5_H , d, a, b, c, w3[0], MD5C2d, MD5S21);
707 MD5_STEP (MD5_H , c, d, a, b, w3[3], MD5C2e, MD5S22);
708 MD5_STEP (MD5_H , b, c, d, a, w0[2], MD5C2f, MD5S23);
710 MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
711 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
712 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
713 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
714 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
715 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
716 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
717 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
718 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
719 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
720 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
721 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
722 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
723 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
724 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
725 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
732 const u32x w0_t = uint_to_hex_lower8 ((a >> 0) & 255) << 0
733 | uint_to_hex_lower8 ((a >> 8) & 255) << 16;
734 const u32x w1_t = uint_to_hex_lower8 ((a >> 16) & 255) << 0
735 | uint_to_hex_lower8 ((a >> 24) & 255) << 16;
736 const u32x w2_t = uint_to_hex_lower8 ((b >> 0) & 255) << 0
737 | uint_to_hex_lower8 ((b >> 8) & 255) << 16;
738 const u32x w3_t = uint_to_hex_lower8 ((b >> 16) & 255) << 0
739 | uint_to_hex_lower8 ((b >> 24) & 255) << 16;
740 const u32x w4_t = uint_to_hex_lower8 ((c >> 0) & 255) << 0
741 | uint_to_hex_lower8 ((c >> 8) & 255) << 16;
742 const u32x w5_t = uint_to_hex_lower8 ((c >> 16) & 255) << 0
743 | uint_to_hex_lower8 ((c >> 24) & 255) << 16;
744 const u32x w6_t = uint_to_hex_lower8 ((d >> 0) & 255) << 0
745 | uint_to_hex_lower8 ((d >> 8) & 255) << 16;
746 const u32x w7_t = uint_to_hex_lower8 ((d >> 16) & 255) << 0
747 | uint_to_hex_lower8 ((d >> 24) & 255) << 16;
749 const u32 w8_t = s[0];
750 const u32 w9_t = s[1];
751 const u32 wa_t = s[2];
752 const u32 wb_t = s[3];
753 const u32 wc_t = s[4];
754 const u32 wd_t = s[5];
755 const u32 we_t = s[6];
756 const u32 wf_t = s[7];
763 MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00);
764 MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01);
765 MD5_STEP (MD5_Fo, c, d, a, b, w2_t, MD5C02, MD5S02);
766 MD5_STEP (MD5_Fo, b, c, d, a, w3_t, MD5C03, MD5S03);
767 MD5_STEP (MD5_Fo, a, b, c, d, w4_t, MD5C04, MD5S00);
768 MD5_STEP (MD5_Fo, d, a, b, c, w5_t, MD5C05, MD5S01);
769 MD5_STEP (MD5_Fo, c, d, a, b, w6_t, MD5C06, MD5S02);
770 MD5_STEP (MD5_Fo, b, c, d, a, w7_t, MD5C07, MD5S03);
771 MD5_STEP (MD5_Fo, a, b, c, d, w8_t, MD5C08, MD5S00);
772 MD5_STEP (MD5_Fo, d, a, b, c, w9_t, MD5C09, MD5S01);
773 MD5_STEP (MD5_Fo, c, d, a, b, wa_t, MD5C0a, MD5S02);
774 MD5_STEP (MD5_Fo, b, c, d, a, wb_t, MD5C0b, MD5S03);
775 MD5_STEP (MD5_Fo, a, b, c, d, wc_t, MD5C0c, MD5S00);
776 MD5_STEP (MD5_Fo, d, a, b, c, wd_t, MD5C0d, MD5S01);
777 MD5_STEP (MD5_Fo, c, d, a, b, we_t, MD5C0e, MD5S02);
778 MD5_STEP (MD5_Fo, b, c, d, a, wf_t, MD5C0f, MD5S03);
780 MD5_STEP (MD5_Go, a, b, c, d, w1_t, MD5C10, MD5S10);
781 MD5_STEP (MD5_Go, d, a, b, c, w6_t, MD5C11, MD5S11);
782 MD5_STEP (MD5_Go, c, d, a, b, wb_t, MD5C12, MD5S12);
783 MD5_STEP (MD5_Go, b, c, d, a, w0_t, MD5C13, MD5S13);
784 MD5_STEP (MD5_Go, a, b, c, d, w5_t, MD5C14, MD5S10);
785 MD5_STEP (MD5_Go, d, a, b, c, wa_t, MD5C15, MD5S11);
786 MD5_STEP (MD5_Go, c, d, a, b, wf_t, MD5C16, MD5S12);
787 MD5_STEP (MD5_Go, b, c, d, a, w4_t, MD5C17, MD5S13);
788 MD5_STEP (MD5_Go, a, b, c, d, w9_t, MD5C18, MD5S10);
789 MD5_STEP (MD5_Go, d, a, b, c, we_t, MD5C19, MD5S11);
790 MD5_STEP (MD5_Go, c, d, a, b, w3_t, MD5C1a, MD5S12);
791 MD5_STEP (MD5_Go, b, c, d, a, w8_t, MD5C1b, MD5S13);
792 MD5_STEP (MD5_Go, a, b, c, d, wd_t, MD5C1c, MD5S10);
793 MD5_STEP (MD5_Go, d, a, b, c, w2_t, MD5C1d, MD5S11);
794 MD5_STEP (MD5_Go, c, d, a, b, w7_t, MD5C1e, MD5S12);
795 MD5_STEP (MD5_Go, b, c, d, a, wc_t, MD5C1f, MD5S13);
797 MD5_STEP (MD5_H , a, b, c, d, w5_t, MD5C20, MD5S20);
798 MD5_STEP (MD5_H , d, a, b, c, w8_t, MD5C21, MD5S21);
799 MD5_STEP (MD5_H , c, d, a, b, wb_t, MD5C22, MD5S22);
800 MD5_STEP (MD5_H , b, c, d, a, we_t, MD5C23, MD5S23);
801 MD5_STEP (MD5_H , a, b, c, d, w1_t, MD5C24, MD5S20);
802 MD5_STEP (MD5_H , d, a, b, c, w4_t, MD5C25, MD5S21);
803 MD5_STEP (MD5_H , c, d, a, b, w7_t, MD5C26, MD5S22);
804 MD5_STEP (MD5_H , b, c, d, a, wa_t, MD5C27, MD5S23);
805 MD5_STEP (MD5_H , a, b, c, d, wd_t, MD5C28, MD5S20);
806 MD5_STEP (MD5_H , d, a, b, c, w0_t, MD5C29, MD5S21);
807 MD5_STEP (MD5_H , c, d, a, b, w3_t, MD5C2a, MD5S22);
808 MD5_STEP (MD5_H , b, c, d, a, w6_t, MD5C2b, MD5S23);
809 MD5_STEP (MD5_H , a, b, c, d, w9_t, MD5C2c, MD5S20);
810 MD5_STEP (MD5_H , d, a, b, c, wc_t, MD5C2d, MD5S21);
811 MD5_STEP (MD5_H , c, d, a, b, wf_t, MD5C2e, MD5S22);
812 MD5_STEP (MD5_H , b, c, d, a, w2_t, MD5C2f, MD5S23);
814 MD5_STEP (MD5_I , a, b, c, d, w0_t, MD5C30, MD5S30);
815 MD5_STEP (MD5_I , d, a, b, c, w7_t, MD5C31, MD5S31);
816 MD5_STEP (MD5_I , c, d, a, b, we_t, MD5C32, MD5S32);
817 MD5_STEP (MD5_I , b, c, d, a, w5_t, MD5C33, MD5S33);
818 MD5_STEP (MD5_I , a, b, c, d, wc_t, MD5C34, MD5S30);
819 MD5_STEP (MD5_I , d, a, b, c, w3_t, MD5C35, MD5S31);
820 MD5_STEP (MD5_I , c, d, a, b, wa_t, MD5C36, MD5S32);
821 MD5_STEP (MD5_I , b, c, d, a, w1_t, MD5C37, MD5S33);
822 MD5_STEP (MD5_I , a, b, c, d, w8_t, MD5C38, MD5S30);
823 MD5_STEP (MD5_I , d, a, b, c, wf_t, MD5C39, MD5S31);
824 MD5_STEP (MD5_I , c, d, a, b, w6_t, MD5C3a, MD5S32);
825 MD5_STEP (MD5_I , b, c, d, a, wd_t, MD5C3b, MD5S33);
826 MD5_STEP (MD5_I , a, b, c, d, w4_t, MD5C3c, MD5S30);
827 MD5_STEP (MD5_I , d, a, b, c, wb_t, MD5C3d, MD5S31);
828 MD5_STEP (MD5_I , c, d, a, b, w2_t, MD5C3e, MD5S32);
829 MD5_STEP (MD5_I , b, c, d, a, w9_t, MD5C3f, MD5S33);
831 const u32x r_a = a + MD5M_A;
832 const u32x r_b = b + MD5M_B;
833 const u32x r_c = c + MD5M_C;
834 const u32x r_d = d + MD5M_D;
841 MD5_STEP0(MD5_Fo, a, b, c, d, MD5C00, MD5S00);
842 MD5_STEP0(MD5_Fo, d, a, b, c, MD5C01, MD5S01);
843 MD5_STEP0(MD5_Fo, c, d, a, b, MD5C02, MD5S02);
844 MD5_STEP0(MD5_Fo, b, c, d, a, MD5C03, MD5S03);
845 MD5_STEP0(MD5_Fo, a, b, c, d, MD5C04, MD5S00);
846 MD5_STEP0(MD5_Fo, d, a, b, c, MD5C05, MD5S01);
847 MD5_STEP0(MD5_Fo, c, d, a, b, MD5C06, MD5S02);
848 MD5_STEP0(MD5_Fo, b, c, d, a, MD5C07, MD5S03);
849 MD5_STEP0(MD5_Fo, a, b, c, d, MD5C08, MD5S00);
850 MD5_STEP0(MD5_Fo, d, a, b, c, MD5C09, MD5S01);
851 MD5_STEP0(MD5_Fo, c, d, a, b, MD5C0a, MD5S02);
852 MD5_STEP0(MD5_Fo, b, c, d, a, MD5C0b, MD5S03);
853 MD5_STEP0(MD5_Fo, a, b, c, d, MD5C0c, MD5S00);
854 MD5_STEP0(MD5_Fo, d, a, b, c, MD5C0d, MD5S01);
855 MD5_STEP (MD5_Fo, c, d, a, b, r_14, MD5C0e, MD5S02);
856 MD5_STEP0(MD5_Fo, b, c, d, a, MD5C0f, MD5S03);
858 MD5_STEP0(MD5_Go, a, b, c, d, MD5C10, MD5S10);
859 MD5_STEP0(MD5_Go, d, a, b, c, MD5C11, MD5S11);
860 MD5_STEP0(MD5_Go, c, d, a, b, MD5C12, MD5S12);
861 MD5_STEP0(MD5_Go, b, c, d, a, MD5C13, MD5S13);
862 MD5_STEP0(MD5_Go, a, b, c, d, MD5C14, MD5S10);
863 MD5_STEP0(MD5_Go, d, a, b, c, MD5C15, MD5S11);
864 MD5_STEP0(MD5_Go, c, d, a, b, MD5C16, MD5S12);
865 MD5_STEP0(MD5_Go, b, c, d, a, MD5C17, MD5S13);
866 MD5_STEP0(MD5_Go, a, b, c, d, MD5C18, MD5S10);
867 MD5_STEP (MD5_Go, d, a, b, c, r_14, MD5C19, MD5S11);
868 MD5_STEP0(MD5_Go, c, d, a, b, MD5C1a, MD5S12);
869 MD5_STEP0(MD5_Go, b, c, d, a, MD5C1b, MD5S13);
870 MD5_STEP0(MD5_Go, a, b, c, d, MD5C1c, MD5S10);
871 MD5_STEP0(MD5_Go, d, a, b, c, MD5C1d, MD5S11);
872 MD5_STEP0(MD5_Go, c, d, a, b, MD5C1e, MD5S12);
873 MD5_STEP0(MD5_Go, b, c, d, a, MD5C1f, MD5S13);
875 MD5_STEP0(MD5_H , a, b, c, d, MD5C20, MD5S20);
876 MD5_STEP0(MD5_H , d, a, b, c, MD5C21, MD5S21);
877 MD5_STEP0(MD5_H , c, d, a, b, MD5C22, MD5S22);
878 MD5_STEP (MD5_H , b, c, d, a, r_14, MD5C23, MD5S23);
879 MD5_STEP0(MD5_H , a, b, c, d, MD5C24, MD5S20);
880 MD5_STEP0(MD5_H , d, a, b, c, MD5C25, MD5S21);
881 MD5_STEP0(MD5_H , c, d, a, b, MD5C26, MD5S22);
882 MD5_STEP0(MD5_H , b, c, d, a, MD5C27, MD5S23);
883 MD5_STEP0(MD5_H , a, b, c, d, MD5C28, MD5S20);
884 MD5_STEP0(MD5_H , d, a, b, c, MD5C29, MD5S21);
885 MD5_STEP0(MD5_H , c, d, a, b, MD5C2a, MD5S22);
886 MD5_STEP0(MD5_H , b, c, d, a, MD5C2b, MD5S23);
887 MD5_STEP0(MD5_H , a, b, c, d, MD5C2c, MD5S20);
888 MD5_STEP0(MD5_H , d, a, b, c, MD5C2d, MD5S21);
889 MD5_STEP0(MD5_H , c, d, a, b, MD5C2e, MD5S22);
890 MD5_STEP0(MD5_H , b, c, d, a, MD5C2f, MD5S23);
892 MD5_STEP0(MD5_I , a, b, c, d, MD5C30, MD5S30);
893 MD5_STEP0(MD5_I , d, a, b, c, MD5C31, MD5S31);
894 MD5_STEP (MD5_I , c, d, a, b, r_14, MD5C32, MD5S32);
895 MD5_STEP0(MD5_I , b, c, d, a, MD5C33, MD5S33);
896 MD5_STEP0(MD5_I , a, b, c, d, MD5C34, MD5S30);
897 MD5_STEP0(MD5_I , d, a, b, c, MD5C35, MD5S31);
898 MD5_STEP0(MD5_I , c, d, a, b, MD5C36, MD5S32);
899 MD5_STEP0(MD5_I , b, c, d, a, MD5C37, MD5S33);
900 MD5_STEP0(MD5_I , a, b, c, d, MD5C38, MD5S30);
901 MD5_STEP0(MD5_I , d, a, b, c, MD5C39, MD5S31);
902 MD5_STEP0(MD5_I , c, d, a, b, MD5C3a, MD5S32);
903 MD5_STEP0(MD5_I , b, c, d, a, MD5C3b, MD5S33);
904 MD5_STEP0(MD5_I , a, b, c, d, MD5C3c, MD5S30);
906 if ((a + r_a) != search[0]) continue;
908 MD5_STEP0(MD5_I , d, a, b, c, MD5C3d, MD5S31);
909 MD5_STEP0(MD5_I , c, d, a, b, MD5C3e, MD5S32);
910 MD5_STEP0(MD5_I , b, c, d, a, MD5C3f, MD5S33);
922 #include VECT_COMPARE_S
926 extern "C" __global__ void __launch_bounds__ (256, 1) m02710_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)
930 extern "C" __global__ void __launch_bounds__ (256, 1) m02710_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)