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"
44 #define uint_to_hex_lower8(i) l_bin2asc[(i)]
48 #define uint_to_hex_lower8(i) u32x (l_bin2asc[(i).x], l_bin2asc[(i).y])
52 #define uint_to_hex_lower8(i) u32x (l_bin2asc[(i).x], l_bin2asc[(i).y], l_bin2asc[(i).z], l_bin2asc[(i).w])
55 __device__ __constant__ char c_bin2asc[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
57 __device__ __shared__ short l_bin2asc[256];
59 __device__ __constant__ bf_t c_bfs[1024];
61 __device__ static void m11100m (u32x w0[4], u32x w1[4], u32x w2[4], u32x w3[4], const u32 pw_len, 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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset)
67 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
68 const u32 lid = threadIdx.x;
76 challenge = salt_bufs[salt_pos].salt_buf[0];
84 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 1]; // not a bug
85 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 2];
86 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 3];
87 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 4];
91 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 5];
92 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 6];
93 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 7];
94 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 8];
110 const u32 salt_len = salt_bufs[salt_pos].salt_len - 4;
112 switch_buffer_by_offset (salt_buf0, salt_buf1, salt_buf2, salt_buf3, pw_len);
114 const u32 pw_salt_len = pw_len + salt_len;
122 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
124 const u32 w0r = c_bfs[il_pos].i;
130 w0_t[0] = w0[0] | salt_buf0[0];
131 w0_t[1] = w0[1] | salt_buf0[1];
132 w0_t[2] = w0[2] | salt_buf0[2];
133 w0_t[3] = w0[3] | salt_buf0[3];
137 w1_t[0] = w1[0] | salt_buf1[0];
138 w1_t[1] = w1[1] | salt_buf1[1];
139 w1_t[2] = w1[2] | salt_buf1[2];
140 w1_t[3] = w1[3] | salt_buf1[3];
144 w2_t[0] = w2[0] | salt_buf2[0];
145 w2_t[1] = w2[1] | salt_buf2[1];
146 w2_t[2] = w2[2] | salt_buf2[2];
147 w2_t[3] = w2[3] | salt_buf2[3];
151 w3_t[0] = w3[0] | salt_buf3[0];
152 w3_t[1] = w3[1] | salt_buf3[1];
153 w3_t[2] = pw_salt_len * 8;
165 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
166 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
167 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
168 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
169 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
170 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
171 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
172 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
173 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
174 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
175 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
176 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
177 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
178 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
179 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
180 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
182 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
183 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
184 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
185 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
186 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
187 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
188 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
189 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
190 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
191 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
192 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
193 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
194 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
195 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
196 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
197 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
199 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
200 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
201 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
202 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
203 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
204 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
205 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
206 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
207 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
208 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
209 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
210 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
211 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
212 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
213 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
214 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
216 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
217 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
218 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
219 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
220 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
221 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
222 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
223 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
224 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
225 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
226 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
227 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
228 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
229 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
230 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
231 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
238 w0_t[0] = uint_to_hex_lower8 ((a >> 0) & 255) << 0
239 | uint_to_hex_lower8 ((a >> 8) & 255) << 16;
240 w0_t[1] = uint_to_hex_lower8 ((a >> 16) & 255) << 0
241 | uint_to_hex_lower8 ((a >> 24) & 255) << 16;
242 w0_t[2] = uint_to_hex_lower8 ((b >> 0) & 255) << 0
243 | uint_to_hex_lower8 ((b >> 8) & 255) << 16;
244 w0_t[3] = uint_to_hex_lower8 ((b >> 16) & 255) << 0
245 | uint_to_hex_lower8 ((b >> 24) & 255) << 16;
246 w1_t[0] = uint_to_hex_lower8 ((c >> 0) & 255) << 0
247 | uint_to_hex_lower8 ((c >> 8) & 255) << 16;
248 w1_t[1] = uint_to_hex_lower8 ((c >> 16) & 255) << 0
249 | uint_to_hex_lower8 ((c >> 24) & 255) << 16;
250 w1_t[2] = uint_to_hex_lower8 ((d >> 0) & 255) << 0
251 | uint_to_hex_lower8 ((d >> 8) & 255) << 16;
252 w1_t[3] = uint_to_hex_lower8 ((d >> 16) & 255) << 0
253 | uint_to_hex_lower8 ((d >> 24) & 255) << 16;
255 // add the 4 byte challenge here
258 w2_t[1] = 0x00000080;
264 w3_t[2] = (32 + 4) * 8;
268 * md5 ($hash.$challenge)
276 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
277 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
278 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
279 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
280 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
281 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
282 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
283 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
284 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
285 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
286 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
287 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
288 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
289 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
290 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
291 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
293 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
294 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
295 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
296 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
297 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
298 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
299 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
300 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
301 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
302 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
303 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
304 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
305 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
306 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
307 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
308 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
310 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
311 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
312 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
313 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
314 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
315 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
316 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
317 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
318 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
319 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
320 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
321 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
322 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
323 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
324 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
325 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
327 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
328 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
329 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
330 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
331 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
332 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
333 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
334 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
335 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
336 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
337 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
338 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
339 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
340 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
341 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
342 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
349 #include VECT_COMPARE_M
353 __device__ static void m11100s (u32x w0[4], u32x w1[4], u32x w2[4], u32x w3[4], const u32 pw_len, 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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset)
359 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
360 const u32 lid = threadIdx.x;
366 const u32 search[4] =
368 digests_buf[digests_offset].digest_buf[DGST_R0],
369 digests_buf[digests_offset].digest_buf[DGST_R1],
370 digests_buf[digests_offset].digest_buf[DGST_R2],
371 digests_buf[digests_offset].digest_buf[DGST_R3]
380 challenge = salt_bufs[salt_pos].salt_buf[0];
388 salt_buf0[0] = salt_bufs[salt_pos].salt_buf[ 1]; // not a bug
389 salt_buf0[1] = salt_bufs[salt_pos].salt_buf[ 2];
390 salt_buf0[2] = salt_bufs[salt_pos].salt_buf[ 3];
391 salt_buf0[3] = salt_bufs[salt_pos].salt_buf[ 4];
395 salt_buf1[0] = salt_bufs[salt_pos].salt_buf[ 5];
396 salt_buf1[1] = salt_bufs[salt_pos].salt_buf[ 6];
397 salt_buf1[2] = salt_bufs[salt_pos].salt_buf[ 7];
398 salt_buf1[3] = salt_bufs[salt_pos].salt_buf[ 8];
414 const u32 salt_len = salt_bufs[salt_pos].salt_len - 4;
416 switch_buffer_by_offset (salt_buf0, salt_buf1, salt_buf2, salt_buf3, pw_len);
418 const u32 pw_salt_len = pw_len + salt_len;
426 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
428 const u32 w0r = c_bfs[il_pos].i;
434 w0_t[0] = w0[0] | salt_buf0[0];
435 w0_t[1] = w0[1] | salt_buf0[1];
436 w0_t[2] = w0[2] | salt_buf0[2];
437 w0_t[3] = w0[3] | salt_buf0[3];
441 w1_t[0] = w1[0] | salt_buf1[0];
442 w1_t[1] = w1[1] | salt_buf1[1];
443 w1_t[2] = w1[2] | salt_buf1[2];
444 w1_t[3] = w1[3] | salt_buf1[3];
448 w2_t[0] = w2[0] | salt_buf2[0];
449 w2_t[1] = w2[1] | salt_buf2[1];
450 w2_t[2] = w2[2] | salt_buf2[2];
451 w2_t[3] = w2[3] | salt_buf2[3];
455 w3_t[0] = w3[0] | salt_buf3[0];
456 w3_t[1] = w3[1] | salt_buf3[1];
457 w3_t[2] = pw_salt_len * 8;
469 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
470 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
471 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
472 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
473 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
474 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
475 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
476 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
477 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
478 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
479 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
480 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
481 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
482 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
483 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
484 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
486 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
487 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
488 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
489 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
490 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
491 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
492 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
493 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
494 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
495 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
496 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
497 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
498 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
499 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
500 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
501 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
503 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
504 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
505 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
506 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
507 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
508 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
509 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
510 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
511 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
512 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
513 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
514 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
515 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
516 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
517 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
518 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
520 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
521 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
522 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
523 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
524 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
525 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
526 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
527 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
528 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
529 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
530 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
531 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
532 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
533 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
534 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
535 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
542 w0_t[0] = uint_to_hex_lower8 ((a >> 0) & 255) << 0
543 | uint_to_hex_lower8 ((a >> 8) & 255) << 16;
544 w0_t[1] = uint_to_hex_lower8 ((a >> 16) & 255) << 0
545 | uint_to_hex_lower8 ((a >> 24) & 255) << 16;
546 w0_t[2] = uint_to_hex_lower8 ((b >> 0) & 255) << 0
547 | uint_to_hex_lower8 ((b >> 8) & 255) << 16;
548 w0_t[3] = uint_to_hex_lower8 ((b >> 16) & 255) << 0
549 | uint_to_hex_lower8 ((b >> 24) & 255) << 16;
550 w1_t[0] = uint_to_hex_lower8 ((c >> 0) & 255) << 0
551 | uint_to_hex_lower8 ((c >> 8) & 255) << 16;
552 w1_t[1] = uint_to_hex_lower8 ((c >> 16) & 255) << 0
553 | uint_to_hex_lower8 ((c >> 24) & 255) << 16;
554 w1_t[2] = uint_to_hex_lower8 ((d >> 0) & 255) << 0
555 | uint_to_hex_lower8 ((d >> 8) & 255) << 16;
556 w1_t[3] = uint_to_hex_lower8 ((d >> 16) & 255) << 0
557 | uint_to_hex_lower8 ((d >> 24) & 255) << 16;
559 // add the 4 byte challenge here
562 w2_t[1] = 0x00000080;
568 w3_t[2] = (32 + 4) * 8;
572 * md5 ($hash.$challenge)
580 MD5_STEP (MD5_Fo, a, b, c, d, w0_t[0], MD5C00, MD5S00);
581 MD5_STEP (MD5_Fo, d, a, b, c, w0_t[1], MD5C01, MD5S01);
582 MD5_STEP (MD5_Fo, c, d, a, b, w0_t[2], MD5C02, MD5S02);
583 MD5_STEP (MD5_Fo, b, c, d, a, w0_t[3], MD5C03, MD5S03);
584 MD5_STEP (MD5_Fo, a, b, c, d, w1_t[0], MD5C04, MD5S00);
585 MD5_STEP (MD5_Fo, d, a, b, c, w1_t[1], MD5C05, MD5S01);
586 MD5_STEP (MD5_Fo, c, d, a, b, w1_t[2], MD5C06, MD5S02);
587 MD5_STEP (MD5_Fo, b, c, d, a, w1_t[3], MD5C07, MD5S03);
588 MD5_STEP (MD5_Fo, a, b, c, d, w2_t[0], MD5C08, MD5S00);
589 MD5_STEP (MD5_Fo, d, a, b, c, w2_t[1], MD5C09, MD5S01);
590 MD5_STEP (MD5_Fo, c, d, a, b, w2_t[2], MD5C0a, MD5S02);
591 MD5_STEP (MD5_Fo, b, c, d, a, w2_t[3], MD5C0b, MD5S03);
592 MD5_STEP (MD5_Fo, a, b, c, d, w3_t[0], MD5C0c, MD5S00);
593 MD5_STEP (MD5_Fo, d, a, b, c, w3_t[1], MD5C0d, MD5S01);
594 MD5_STEP (MD5_Fo, c, d, a, b, w3_t[2], MD5C0e, MD5S02);
595 MD5_STEP (MD5_Fo, b, c, d, a, w3_t[3], MD5C0f, MD5S03);
597 MD5_STEP (MD5_Go, a, b, c, d, w0_t[1], MD5C10, MD5S10);
598 MD5_STEP (MD5_Go, d, a, b, c, w1_t[2], MD5C11, MD5S11);
599 MD5_STEP (MD5_Go, c, d, a, b, w2_t[3], MD5C12, MD5S12);
600 MD5_STEP (MD5_Go, b, c, d, a, w0_t[0], MD5C13, MD5S13);
601 MD5_STEP (MD5_Go, a, b, c, d, w1_t[1], MD5C14, MD5S10);
602 MD5_STEP (MD5_Go, d, a, b, c, w2_t[2], MD5C15, MD5S11);
603 MD5_STEP (MD5_Go, c, d, a, b, w3_t[3], MD5C16, MD5S12);
604 MD5_STEP (MD5_Go, b, c, d, a, w1_t[0], MD5C17, MD5S13);
605 MD5_STEP (MD5_Go, a, b, c, d, w2_t[1], MD5C18, MD5S10);
606 MD5_STEP (MD5_Go, d, a, b, c, w3_t[2], MD5C19, MD5S11);
607 MD5_STEP (MD5_Go, c, d, a, b, w0_t[3], MD5C1a, MD5S12);
608 MD5_STEP (MD5_Go, b, c, d, a, w2_t[0], MD5C1b, MD5S13);
609 MD5_STEP (MD5_Go, a, b, c, d, w3_t[1], MD5C1c, MD5S10);
610 MD5_STEP (MD5_Go, d, a, b, c, w0_t[2], MD5C1d, MD5S11);
611 MD5_STEP (MD5_Go, c, d, a, b, w1_t[3], MD5C1e, MD5S12);
612 MD5_STEP (MD5_Go, b, c, d, a, w3_t[0], MD5C1f, MD5S13);
614 MD5_STEP (MD5_H , a, b, c, d, w1_t[1], MD5C20, MD5S20);
615 MD5_STEP (MD5_H , d, a, b, c, w2_t[0], MD5C21, MD5S21);
616 MD5_STEP (MD5_H , c, d, a, b, w2_t[3], MD5C22, MD5S22);
617 MD5_STEP (MD5_H , b, c, d, a, w3_t[2], MD5C23, MD5S23);
618 MD5_STEP (MD5_H , a, b, c, d, w0_t[1], MD5C24, MD5S20);
619 MD5_STEP (MD5_H , d, a, b, c, w1_t[0], MD5C25, MD5S21);
620 MD5_STEP (MD5_H , c, d, a, b, w1_t[3], MD5C26, MD5S22);
621 MD5_STEP (MD5_H , b, c, d, a, w2_t[2], MD5C27, MD5S23);
622 MD5_STEP (MD5_H , a, b, c, d, w3_t[1], MD5C28, MD5S20);
623 MD5_STEP (MD5_H , d, a, b, c, w0_t[0], MD5C29, MD5S21);
624 MD5_STEP (MD5_H , c, d, a, b, w0_t[3], MD5C2a, MD5S22);
625 MD5_STEP (MD5_H , b, c, d, a, w1_t[2], MD5C2b, MD5S23);
626 MD5_STEP (MD5_H , a, b, c, d, w2_t[1], MD5C2c, MD5S20);
627 MD5_STEP (MD5_H , d, a, b, c, w3_t[0], MD5C2d, MD5S21);
628 MD5_STEP (MD5_H , c, d, a, b, w3_t[3], MD5C2e, MD5S22);
629 MD5_STEP (MD5_H , b, c, d, a, w0_t[2], MD5C2f, MD5S23);
631 MD5_STEP (MD5_I , a, b, c, d, w0_t[0], MD5C30, MD5S30);
632 MD5_STEP (MD5_I , d, a, b, c, w1_t[3], MD5C31, MD5S31);
633 MD5_STEP (MD5_I , c, d, a, b, w3_t[2], MD5C32, MD5S32);
634 MD5_STEP (MD5_I , b, c, d, a, w1_t[1], MD5C33, MD5S33);
635 MD5_STEP (MD5_I , a, b, c, d, w3_t[0], MD5C34, MD5S30);
636 MD5_STEP (MD5_I , d, a, b, c, w0_t[3], MD5C35, MD5S31);
637 MD5_STEP (MD5_I , c, d, a, b, w2_t[2], MD5C36, MD5S32);
638 MD5_STEP (MD5_I , b, c, d, a, w0_t[1], MD5C37, MD5S33);
639 MD5_STEP (MD5_I , a, b, c, d, w2_t[0], MD5C38, MD5S30);
640 MD5_STEP (MD5_I , d, a, b, c, w3_t[3], MD5C39, MD5S31);
641 MD5_STEP (MD5_I , c, d, a, b, w1_t[2], MD5C3a, MD5S32);
642 MD5_STEP (MD5_I , b, c, d, a, w3_t[1], MD5C3b, MD5S33);
643 MD5_STEP (MD5_I , a, b, c, d, w1_t[0], MD5C3c, MD5S30);
644 MD5_STEP (MD5_I , d, a, b, c, w2_t[3], MD5C3d, MD5S31);
645 MD5_STEP (MD5_I , c, d, a, b, w0_t[2], MD5C3e, MD5S32);
646 MD5_STEP (MD5_I , b, c, d, a, w2_t[1], MD5C3f, MD5S33);
653 #include VECT_COMPARE_S
657 extern "C" __global__ void __launch_bounds__ (256, 1) m11100_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
663 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
669 const u32 lid = threadIdx.x;
673 w0[0] = pws[gid].i[ 0];
674 w0[1] = pws[gid].i[ 1];
675 w0[2] = pws[gid].i[ 2];
676 w0[3] = pws[gid].i[ 3];
696 w3[2] = pws[gid].i[14];
699 const u32 pw_len = pws[gid].pw_len;
705 l_bin2asc[lid] = c_bin2asc[(lid >> 0) & 15] << 8
706 | c_bin2asc[(lid >> 4) & 15] << 0;
710 if (gid >= gid_max) return;
716 m11100m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
719 extern "C" __global__ void __launch_bounds__ (256, 1) m11100_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
725 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
731 const u32 lid = threadIdx.x;
735 w0[0] = pws[gid].i[ 0];
736 w0[1] = pws[gid].i[ 1];
737 w0[2] = pws[gid].i[ 2];
738 w0[3] = pws[gid].i[ 3];
742 w1[0] = pws[gid].i[ 4];
743 w1[1] = pws[gid].i[ 5];
744 w1[2] = pws[gid].i[ 6];
745 w1[3] = pws[gid].i[ 7];
758 w3[2] = pws[gid].i[14];
761 const u32 pw_len = pws[gid].pw_len;
767 l_bin2asc[lid] = c_bin2asc[(lid >> 0) & 15] << 8
768 | c_bin2asc[(lid >> 4) & 15] << 0;
772 if (gid >= gid_max) return;
778 m11100m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
781 extern "C" __global__ void __launch_bounds__ (256, 1) m11100_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
787 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
793 const u32 lid = threadIdx.x;
797 w0[0] = pws[gid].i[ 0];
798 w0[1] = pws[gid].i[ 1];
799 w0[2] = pws[gid].i[ 2];
800 w0[3] = pws[gid].i[ 3];
804 w1[0] = pws[gid].i[ 4];
805 w1[1] = pws[gid].i[ 5];
806 w1[2] = pws[gid].i[ 6];
807 w1[3] = pws[gid].i[ 7];
811 w2[0] = pws[gid].i[ 8];
812 w2[1] = pws[gid].i[ 9];
813 w2[2] = pws[gid].i[10];
814 w2[3] = pws[gid].i[11];
818 w3[0] = pws[gid].i[12];
819 w3[1] = pws[gid].i[13];
820 w3[2] = pws[gid].i[14];
821 w3[3] = pws[gid].i[15];
823 const u32 pw_len = pws[gid].pw_len;
829 l_bin2asc[lid] = c_bin2asc[(lid >> 0) & 15] << 8
830 | c_bin2asc[(lid >> 4) & 15] << 0;
834 if (gid >= gid_max) return;
840 m11100m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
843 extern "C" __global__ void __launch_bounds__ (256, 1) m11100_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
849 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
855 const u32 lid = threadIdx.x;
859 w0[0] = pws[gid].i[ 0];
860 w0[1] = pws[gid].i[ 1];
861 w0[2] = pws[gid].i[ 2];
862 w0[3] = pws[gid].i[ 3];
882 w3[2] = pws[gid].i[14];
885 const u32 pw_len = pws[gid].pw_len;
891 l_bin2asc[lid] = c_bin2asc[(lid >> 0) & 15] << 8
892 | c_bin2asc[(lid >> 4) & 15] << 0;
896 if (gid >= gid_max) return;
902 m11100s (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
905 extern "C" __global__ void __launch_bounds__ (256, 1) m11100_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
911 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
917 const u32 lid = threadIdx.x;
921 w0[0] = pws[gid].i[ 0];
922 w0[1] = pws[gid].i[ 1];
923 w0[2] = pws[gid].i[ 2];
924 w0[3] = pws[gid].i[ 3];
928 w1[0] = pws[gid].i[ 4];
929 w1[1] = pws[gid].i[ 5];
930 w1[2] = pws[gid].i[ 6];
931 w1[3] = pws[gid].i[ 7];
944 w3[2] = pws[gid].i[14];
947 const u32 pw_len = pws[gid].pw_len;
953 l_bin2asc[lid] = c_bin2asc[(lid >> 0) & 15] << 8
954 | c_bin2asc[(lid >> 4) & 15] << 0;
958 if (gid >= gid_max) return;
964 m11100s (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);
967 extern "C" __global__ void __launch_bounds__ (256, 1) m11100_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
973 const u32 gid = (blockIdx.x * blockDim.x) + threadIdx.x;
979 const u32 lid = threadIdx.x;
983 w0[0] = pws[gid].i[ 0];
984 w0[1] = pws[gid].i[ 1];
985 w0[2] = pws[gid].i[ 2];
986 w0[3] = pws[gid].i[ 3];
990 w1[0] = pws[gid].i[ 4];
991 w1[1] = pws[gid].i[ 5];
992 w1[2] = pws[gid].i[ 6];
993 w1[3] = pws[gid].i[ 7];
997 w2[0] = pws[gid].i[ 8];
998 w2[1] = pws[gid].i[ 9];
999 w2[2] = pws[gid].i[10];
1000 w2[3] = pws[gid].i[11];
1004 w3[0] = pws[gid].i[12];
1005 w3[1] = pws[gid].i[13];
1006 w3[2] = pws[gid].i[14];
1007 w3[3] = pws[gid].i[15];
1009 const u32 pw_len = pws[gid].pw_len;
1015 l_bin2asc[lid] = c_bin2asc[(lid >> 0) & 15] << 8
1016 | c_bin2asc[(lid >> 4) & 15] << 0;
1020 if (gid >= gid_max) return;
1026 m11100s (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, bfs_cnt, digests_cnt, digests_offset);