2 * Author......: Jens Steube <jens.steube@gmail.com>
8 #include "include/constants.h"
9 #include "include/kernel_vendor.h"
16 #include "include/kernel_functions.c"
17 #include "types_ocl.c"
20 #define COMPARE_S "check_single_comp4.c"
21 #define COMPARE_M "check_multi_comp4.c"
23 static void m02400m (u32 w[16], const u32 pw_len, __global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32 * words_buf_r, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_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)
29 const u32 gid = get_global_id (0);
30 const u32 lid = get_local_id (0);
43 const u32 F_w0c00 = 0 + MD5C00;
44 const u32 F_w1c01 = w[ 1] + MD5C01;
45 const u32 F_w2c02 = w[ 2] + MD5C02;
46 const u32 F_w3c03 = w[ 3] + MD5C03;
47 const u32 F_w4c04 = w[ 4] + MD5C04;
48 const u32 F_w5c05 = w[ 5] + MD5C05;
49 const u32 F_w6c06 = w[ 6] + MD5C06;
50 const u32 F_w7c07 = w[ 7] + MD5C07;
51 const u32 F_w8c08 = w[ 8] + MD5C08;
52 const u32 F_w9c09 = w[ 9] + MD5C09;
53 const u32 F_wac0a = w[10] + MD5C0a;
54 const u32 F_wbc0b = w[11] + MD5C0b;
55 const u32 F_wcc0c = w[12] + MD5C0c;
56 const u32 F_wdc0d = w[13] + MD5C0d;
57 const u32 F_wec0e = w[14] + MD5C0e;
58 const u32 F_wfc0f = w[15] + MD5C0f;
60 const u32 G_w1c10 = w[ 1] + MD5C10;
61 const u32 G_w6c11 = w[ 6] + MD5C11;
62 const u32 G_wbc12 = w[11] + MD5C12;
63 const u32 G_w0c13 = 0 + MD5C13;
64 const u32 G_w5c14 = w[ 5] + MD5C14;
65 const u32 G_wac15 = w[10] + MD5C15;
66 const u32 G_wfc16 = w[15] + MD5C16;
67 const u32 G_w4c17 = w[ 4] + MD5C17;
68 const u32 G_w9c18 = w[ 9] + MD5C18;
69 const u32 G_wec19 = w[14] + MD5C19;
70 const u32 G_w3c1a = w[ 3] + MD5C1a;
71 const u32 G_w8c1b = w[ 8] + MD5C1b;
72 const u32 G_wdc1c = w[13] + MD5C1c;
73 const u32 G_w2c1d = w[ 2] + MD5C1d;
74 const u32 G_w7c1e = w[ 7] + MD5C1e;
75 const u32 G_wcc1f = w[12] + MD5C1f;
77 const u32 H_w5c20 = w[ 5] + MD5C20;
78 const u32 H_w8c21 = w[ 8] + MD5C21;
79 const u32 H_wbc22 = w[11] + MD5C22;
80 const u32 H_wec23 = w[14] + MD5C23;
81 const u32 H_w1c24 = w[ 1] + MD5C24;
82 const u32 H_w4c25 = w[ 4] + MD5C25;
83 const u32 H_w7c26 = w[ 7] + MD5C26;
84 const u32 H_wac27 = w[10] + MD5C27;
85 const u32 H_wdc28 = w[13] + MD5C28;
86 const u32 H_w0c29 = 0 + MD5C29;
87 const u32 H_w3c2a = w[ 3] + MD5C2a;
88 const u32 H_w6c2b = w[ 6] + MD5C2b;
89 const u32 H_w9c2c = w[ 9] + MD5C2c;
90 const u32 H_wcc2d = w[12] + MD5C2d;
91 const u32 H_wfc2e = w[15] + MD5C2e;
92 const u32 H_w2c2f = w[ 2] + MD5C2f;
94 const u32 I_w0c30 = 0 + MD5C30;
95 const u32 I_w7c31 = w[ 7] + MD5C31;
96 const u32 I_wec32 = w[14] + MD5C32;
97 const u32 I_w5c33 = w[ 5] + MD5C33;
98 const u32 I_wcc34 = w[12] + MD5C34;
99 const u32 I_w3c35 = w[ 3] + MD5C35;
100 const u32 I_wac36 = w[10] + MD5C36;
101 const u32 I_w1c37 = w[ 1] + MD5C37;
102 const u32 I_w8c38 = w[ 8] + MD5C38;
103 const u32 I_wfc39 = w[15] + MD5C39;
104 const u32 I_w6c3a = w[ 6] + MD5C3a;
105 const u32 I_wdc3b = w[13] + MD5C3b;
106 const u32 I_w4c3c = w[ 4] + MD5C3c;
107 const u32 I_wbc3d = w[11] + MD5C3d;
108 const u32 I_w2c3e = w[ 2] + MD5C3e;
109 const u32 I_w9c3f = w[ 9] + MD5C3f;
117 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
119 const u32 w0r = words_buf_r[il_pos];
121 const u32 w0 = w0l | w0r;
130 MD5_STEP (MD5_Fo, a, b, c, d, w0, F_w0c00, MD5S00);
131 MD5_STEP0(MD5_Fo, d, a, b, c, F_w1c01, MD5S01);
132 MD5_STEP0(MD5_Fo, c, d, a, b, F_w2c02, MD5S02);
133 MD5_STEP0(MD5_Fo, b, c, d, a, F_w3c03, MD5S03);
134 MD5_STEP0(MD5_Fo, a, b, c, d, F_w4c04, MD5S00);
135 MD5_STEP0(MD5_Fo, d, a, b, c, F_w5c05, MD5S01);
136 MD5_STEP0(MD5_Fo, c, d, a, b, F_w6c06, MD5S02);
137 MD5_STEP0(MD5_Fo, b, c, d, a, F_w7c07, MD5S03);
138 MD5_STEP0(MD5_Fo, a, b, c, d, F_w8c08, MD5S00);
139 MD5_STEP0(MD5_Fo, d, a, b, c, F_w9c09, MD5S01);
140 MD5_STEP0(MD5_Fo, c, d, a, b, F_wac0a, MD5S02);
141 MD5_STEP0(MD5_Fo, b, c, d, a, F_wbc0b, MD5S03);
142 MD5_STEP0(MD5_Fo, a, b, c, d, F_wcc0c, MD5S00);
143 MD5_STEP0(MD5_Fo, d, a, b, c, F_wdc0d, MD5S01);
144 MD5_STEP0(MD5_Fo, c, d, a, b, F_wec0e, MD5S02);
145 MD5_STEP0(MD5_Fo, b, c, d, a, F_wfc0f, MD5S03);
147 MD5_STEP0(MD5_Go, a, b, c, d, G_w1c10, MD5S10);
148 MD5_STEP0(MD5_Go, d, a, b, c, G_w6c11, MD5S11);
149 MD5_STEP0(MD5_Go, c, d, a, b, G_wbc12, MD5S12);
150 MD5_STEP (MD5_Go, b, c, d, a, w0, G_w0c13, MD5S13);
151 MD5_STEP0(MD5_Go, a, b, c, d, G_w5c14, MD5S10);
152 MD5_STEP0(MD5_Go, d, a, b, c, G_wac15, MD5S11);
153 MD5_STEP0(MD5_Go, c, d, a, b, G_wfc16, MD5S12);
154 MD5_STEP0(MD5_Go, b, c, d, a, G_w4c17, MD5S13);
155 MD5_STEP0(MD5_Go, a, b, c, d, G_w9c18, MD5S10);
156 MD5_STEP0(MD5_Go, d, a, b, c, G_wec19, MD5S11);
157 MD5_STEP0(MD5_Go, c, d, a, b, G_w3c1a, MD5S12);
158 MD5_STEP0(MD5_Go, b, c, d, a, G_w8c1b, MD5S13);
159 MD5_STEP0(MD5_Go, a, b, c, d, G_wdc1c, MD5S10);
160 MD5_STEP0(MD5_Go, d, a, b, c, G_w2c1d, MD5S11);
161 MD5_STEP0(MD5_Go, c, d, a, b, G_w7c1e, MD5S12);
162 MD5_STEP0(MD5_Go, b, c, d, a, G_wcc1f, MD5S13);
164 MD5_STEP0(MD5_H1, a, b, c, d, H_w5c20, MD5S20);
165 MD5_STEP0(MD5_H2, d, a, b, c, H_w8c21, MD5S21);
166 MD5_STEP0(MD5_H1, c, d, a, b, H_wbc22, MD5S22);
167 MD5_STEP0(MD5_H2, b, c, d, a, H_wec23, MD5S23);
168 MD5_STEP0(MD5_H1, a, b, c, d, H_w1c24, MD5S20);
169 MD5_STEP0(MD5_H2, d, a, b, c, H_w4c25, MD5S21);
170 MD5_STEP0(MD5_H1, c, d, a, b, H_w7c26, MD5S22);
171 MD5_STEP0(MD5_H2, b, c, d, a, H_wac27, MD5S23);
172 MD5_STEP0(MD5_H1, a, b, c, d, H_wdc28, MD5S20);
173 MD5_STEP (MD5_H2, d, a, b, c, w0, H_w0c29, MD5S21);
174 MD5_STEP0(MD5_H1, c, d, a, b, H_w3c2a, MD5S22);
175 MD5_STEP0(MD5_H2, b, c, d, a, H_w6c2b, MD5S23);
176 MD5_STEP0(MD5_H1, a, b, c, d, H_w9c2c, MD5S20);
177 MD5_STEP0(MD5_H2, d, a, b, c, H_wcc2d, MD5S21);
178 MD5_STEP0(MD5_H1, c, d, a, b, H_wfc2e, MD5S22);
179 MD5_STEP0(MD5_H2, b, c, d, a, H_w2c2f, MD5S23);
181 MD5_STEP (MD5_I , a, b, c, d, w0, I_w0c30, MD5S30);
182 MD5_STEP0(MD5_I , d, a, b, c, I_w7c31, MD5S31);
183 MD5_STEP0(MD5_I , c, d, a, b, I_wec32, MD5S32);
184 MD5_STEP0(MD5_I , b, c, d, a, I_w5c33, MD5S33);
185 MD5_STEP0(MD5_I , a, b, c, d, I_wcc34, MD5S30);
186 MD5_STEP0(MD5_I , d, a, b, c, I_w3c35, MD5S31);
187 MD5_STEP0(MD5_I , c, d, a, b, I_wac36, MD5S32);
188 MD5_STEP0(MD5_I , b, c, d, a, I_w1c37, MD5S33);
189 MD5_STEP0(MD5_I , a, b, c, d, I_w8c38, MD5S30);
190 MD5_STEP0(MD5_I , d, a, b, c, I_wfc39, MD5S31);
191 MD5_STEP0(MD5_I , c, d, a, b, I_w6c3a, MD5S32);
192 MD5_STEP0(MD5_I , b, c, d, a, I_wdc3b, MD5S33);
193 MD5_STEP0(MD5_I , a, b, c, d, I_w4c3c, MD5S30);
194 MD5_STEP0(MD5_I , d, a, b, c, I_wbc3d, MD5S31);
195 MD5_STEP0(MD5_I , c, d, a, b, I_w2c3e, MD5S32);
196 MD5_STEP0(MD5_I , b, c, d, a, I_w9c3f, MD5S33);
212 static void m02400s (u32 w[16], const u32 pw_len, __global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32 * words_buf_r, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_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)
218 const u32 gid = get_global_id (0);
219 const u32 lid = get_local_id (0);
232 const u32 F_w0c00 = 0 + MD5C00;
233 const u32 F_w1c01 = w[ 1] + MD5C01;
234 const u32 F_w2c02 = w[ 2] + MD5C02;
235 const u32 F_w3c03 = w[ 3] + MD5C03;
236 const u32 F_w4c04 = w[ 4] + MD5C04;
237 const u32 F_w5c05 = w[ 5] + MD5C05;
238 const u32 F_w6c06 = w[ 6] + MD5C06;
239 const u32 F_w7c07 = w[ 7] + MD5C07;
240 const u32 F_w8c08 = w[ 8] + MD5C08;
241 const u32 F_w9c09 = w[ 9] + MD5C09;
242 const u32 F_wac0a = w[10] + MD5C0a;
243 const u32 F_wbc0b = w[11] + MD5C0b;
244 const u32 F_wcc0c = w[12] + MD5C0c;
245 const u32 F_wdc0d = w[13] + MD5C0d;
246 const u32 F_wec0e = w[14] + MD5C0e;
247 const u32 F_wfc0f = w[15] + MD5C0f;
249 const u32 G_w1c10 = w[ 1] + MD5C10;
250 const u32 G_w6c11 = w[ 6] + MD5C11;
251 const u32 G_wbc12 = w[11] + MD5C12;
252 const u32 G_w0c13 = 0 + MD5C13;
253 const u32 G_w5c14 = w[ 5] + MD5C14;
254 const u32 G_wac15 = w[10] + MD5C15;
255 const u32 G_wfc16 = w[15] + MD5C16;
256 const u32 G_w4c17 = w[ 4] + MD5C17;
257 const u32 G_w9c18 = w[ 9] + MD5C18;
258 const u32 G_wec19 = w[14] + MD5C19;
259 const u32 G_w3c1a = w[ 3] + MD5C1a;
260 const u32 G_w8c1b = w[ 8] + MD5C1b;
261 const u32 G_wdc1c = w[13] + MD5C1c;
262 const u32 G_w2c1d = w[ 2] + MD5C1d;
263 const u32 G_w7c1e = w[ 7] + MD5C1e;
264 const u32 G_wcc1f = w[12] + MD5C1f;
266 const u32 H_w5c20 = w[ 5] + MD5C20;
267 const u32 H_w8c21 = w[ 8] + MD5C21;
268 const u32 H_wbc22 = w[11] + MD5C22;
269 const u32 H_wec23 = w[14] + MD5C23;
270 const u32 H_w1c24 = w[ 1] + MD5C24;
271 const u32 H_w4c25 = w[ 4] + MD5C25;
272 const u32 H_w7c26 = w[ 7] + MD5C26;
273 const u32 H_wac27 = w[10] + MD5C27;
274 const u32 H_wdc28 = w[13] + MD5C28;
275 const u32 H_w0c29 = 0 + MD5C29;
276 const u32 H_w3c2a = w[ 3] + MD5C2a;
277 const u32 H_w6c2b = w[ 6] + MD5C2b;
278 const u32 H_w9c2c = w[ 9] + MD5C2c;
279 const u32 H_wcc2d = w[12] + MD5C2d;
280 const u32 H_wfc2e = w[15] + MD5C2e;
281 const u32 H_w2c2f = w[ 2] + MD5C2f;
283 const u32 I_w0c30 = 0 + MD5C30;
284 const u32 I_w7c31 = w[ 7] + MD5C31;
285 const u32 I_wec32 = w[14] + MD5C32;
286 const u32 I_w5c33 = w[ 5] + MD5C33;
287 const u32 I_wcc34 = w[12] + MD5C34;
288 const u32 I_w3c35 = w[ 3] + MD5C35;
289 const u32 I_wac36 = w[10] + MD5C36;
290 const u32 I_w1c37 = w[ 1] + MD5C37;
291 const u32 I_w8c38 = w[ 8] + MD5C38;
292 const u32 I_wfc39 = w[15] + MD5C39;
293 const u32 I_w6c3a = w[ 6] + MD5C3a;
294 const u32 I_wdc3b = w[13] + MD5C3b;
295 const u32 I_w4c3c = w[ 4] + MD5C3c;
296 const u32 I_wbc3d = w[11] + MD5C3d;
297 const u32 I_w2c3e = w[ 2] + MD5C3e;
298 const u32 I_w9c3f = w[ 9] + MD5C3f;
304 const u32 search[4] =
306 digests_buf[digests_offset].digest_buf[DGST_R0],
307 digests_buf[digests_offset].digest_buf[DGST_R1],
308 digests_buf[digests_offset].digest_buf[DGST_R2],
309 digests_buf[digests_offset].digest_buf[DGST_R3]
318 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
320 const u32 w0r = words_buf_r[il_pos];
322 const u32 w0 = w0l | w0r;
331 MD5_STEP (MD5_Fo, a, b, c, d, w0, F_w0c00, MD5S00);
332 MD5_STEP0(MD5_Fo, d, a, b, c, F_w1c01, MD5S01);
333 MD5_STEP0(MD5_Fo, c, d, a, b, F_w2c02, MD5S02);
334 MD5_STEP0(MD5_Fo, b, c, d, a, F_w3c03, MD5S03);
335 MD5_STEP0(MD5_Fo, a, b, c, d, F_w4c04, MD5S00);
336 MD5_STEP0(MD5_Fo, d, a, b, c, F_w5c05, MD5S01);
337 MD5_STEP0(MD5_Fo, c, d, a, b, F_w6c06, MD5S02);
338 MD5_STEP0(MD5_Fo, b, c, d, a, F_w7c07, MD5S03);
339 MD5_STEP0(MD5_Fo, a, b, c, d, F_w8c08, MD5S00);
340 MD5_STEP0(MD5_Fo, d, a, b, c, F_w9c09, MD5S01);
341 MD5_STEP0(MD5_Fo, c, d, a, b, F_wac0a, MD5S02);
342 MD5_STEP0(MD5_Fo, b, c, d, a, F_wbc0b, MD5S03);
343 MD5_STEP0(MD5_Fo, a, b, c, d, F_wcc0c, MD5S00);
344 MD5_STEP0(MD5_Fo, d, a, b, c, F_wdc0d, MD5S01);
345 MD5_STEP0(MD5_Fo, c, d, a, b, F_wec0e, MD5S02);
346 MD5_STEP0(MD5_Fo, b, c, d, a, F_wfc0f, MD5S03);
348 MD5_STEP0(MD5_Go, a, b, c, d, G_w1c10, MD5S10);
349 MD5_STEP0(MD5_Go, d, a, b, c, G_w6c11, MD5S11);
350 MD5_STEP0(MD5_Go, c, d, a, b, G_wbc12, MD5S12);
351 MD5_STEP (MD5_Go, b, c, d, a, w0, G_w0c13, MD5S13);
352 MD5_STEP0(MD5_Go, a, b, c, d, G_w5c14, MD5S10);
353 MD5_STEP0(MD5_Go, d, a, b, c, G_wac15, MD5S11);
354 MD5_STEP0(MD5_Go, c, d, a, b, G_wfc16, MD5S12);
355 MD5_STEP0(MD5_Go, b, c, d, a, G_w4c17, MD5S13);
356 MD5_STEP0(MD5_Go, a, b, c, d, G_w9c18, MD5S10);
357 MD5_STEP0(MD5_Go, d, a, b, c, G_wec19, MD5S11);
358 MD5_STEP0(MD5_Go, c, d, a, b, G_w3c1a, MD5S12);
359 MD5_STEP0(MD5_Go, b, c, d, a, G_w8c1b, MD5S13);
360 MD5_STEP0(MD5_Go, a, b, c, d, G_wdc1c, MD5S10);
361 MD5_STEP0(MD5_Go, d, a, b, c, G_w2c1d, MD5S11);
362 MD5_STEP0(MD5_Go, c, d, a, b, G_w7c1e, MD5S12);
363 MD5_STEP0(MD5_Go, b, c, d, a, G_wcc1f, MD5S13);
365 MD5_STEP0(MD5_H1, a, b, c, d, H_w5c20, MD5S20);
366 MD5_STEP0(MD5_H2, d, a, b, c, H_w8c21, MD5S21);
367 MD5_STEP0(MD5_H1, c, d, a, b, H_wbc22, MD5S22);
368 MD5_STEP0(MD5_H2, b, c, d, a, H_wec23, MD5S23);
369 MD5_STEP0(MD5_H1, a, b, c, d, H_w1c24, MD5S20);
370 MD5_STEP0(MD5_H2, d, a, b, c, H_w4c25, MD5S21);
371 MD5_STEP0(MD5_H1, c, d, a, b, H_w7c26, MD5S22);
372 MD5_STEP0(MD5_H2, b, c, d, a, H_wac27, MD5S23);
373 MD5_STEP0(MD5_H1, a, b, c, d, H_wdc28, MD5S20);
374 MD5_STEP (MD5_H2, d, a, b, c, w0, H_w0c29, MD5S21);
375 MD5_STEP0(MD5_H1, c, d, a, b, H_w3c2a, MD5S22);
376 MD5_STEP0(MD5_H2, b, c, d, a, H_w6c2b, MD5S23);
377 MD5_STEP0(MD5_H1, a, b, c, d, H_w9c2c, MD5S20);
378 MD5_STEP0(MD5_H2, d, a, b, c, H_wcc2d, MD5S21);
379 MD5_STEP0(MD5_H1, c, d, a, b, H_wfc2e, MD5S22);
380 MD5_STEP0(MD5_H2, b, c, d, a, H_w2c2f, MD5S23);
382 MD5_STEP (MD5_I , a, b, c, d, w0, I_w0c30, MD5S30);
383 MD5_STEP0(MD5_I , d, a, b, c, I_w7c31, MD5S31);
384 MD5_STEP0(MD5_I , c, d, a, b, I_wec32, MD5S32);
385 MD5_STEP0(MD5_I , b, c, d, a, I_w5c33, MD5S33);
386 MD5_STEP0(MD5_I , a, b, c, d, I_wcc34, MD5S30);
387 MD5_STEP0(MD5_I , d, a, b, c, I_w3c35, MD5S31);
388 MD5_STEP0(MD5_I , c, d, a, b, I_wac36, MD5S32);
389 MD5_STEP0(MD5_I , b, c, d, a, I_w1c37, MD5S33);
390 MD5_STEP0(MD5_I , a, b, c, d, I_w8c38, MD5S30);
391 MD5_STEP0(MD5_I , d, a, b, c, I_wfc39, MD5S31);
392 MD5_STEP0(MD5_I , c, d, a, b, I_w6c3a, MD5S32);
393 MD5_STEP0(MD5_I , b, c, d, a, I_wdc3b, MD5S33);
394 MD5_STEP0(MD5_I , a, b, c, d, I_w4c3c, MD5S30);
396 bool q_cond = allx ((a & 0x00ffffff) != search[0]);
398 if (q_cond) continue;
400 MD5_STEP0(MD5_I , d, a, b, c, I_wbc3d, MD5S31);
401 MD5_STEP0(MD5_I , c, d, a, b, I_w2c3e, MD5S32);
402 MD5_STEP0(MD5_I , b, c, d, a, I_w9c3f, MD5S33);
418 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m02400_m04 (__global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32 * words_buf_r, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_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)
424 const u32 gid = get_global_id (0);
426 if (gid >= gid_max) return;
430 w[ 0] = pws[gid].i[ 0];
431 w[ 1] = pws[gid].i[ 1];
432 w[ 2] = pws[gid].i[ 2];
433 w[ 3] = pws[gid].i[ 3];
447 const u32 pw_len = pws[gid].pw_len;
453 m02400m (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, 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);
456 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m02400_m08 (__global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32 * words_buf_r, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_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)
460 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m02400_m16 (__global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32 * words_buf_r, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_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)
464 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m02400_s04 (__global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32 * words_buf_r, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_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)
470 const u32 gid = get_global_id (0);
472 if (gid >= gid_max) return;
476 w[ 0] = pws[gid].i[ 0];
477 w[ 1] = pws[gid].i[ 1];
478 w[ 2] = pws[gid].i[ 2];
479 w[ 3] = pws[gid].i[ 3];
493 const u32 pw_len = pws[gid].pw_len;
499 m02400s (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, 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);
502 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m02400_s08 (__global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32 * words_buf_r, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_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)
506 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m02400_s16 (__global pw_t *pws, __global gpu_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32 * words_buf_r, __global void *tmps, __global void *hooks, __global u32 *bitmaps_buf_s1_a, __global u32 *bitmaps_buf_s1_b, __global u32 *bitmaps_buf_s1_c, __global u32 *bitmaps_buf_s1_d, __global u32 *bitmaps_buf_s2_a, __global u32 *bitmaps_buf_s2_b, __global u32 *bitmaps_buf_s2_c, __global u32 *bitmaps_buf_s2_d, __global plain_t *plains_buf, __global digest_t *digests_buf, __global u32 *hashes_shown, __global salt_t *salt_bufs, __global void *esalt_bufs, __global u32 *d_return_buf, __global u32 *d_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)