2 * Author......: Jens Steube <jens.steube@gmail.com>
10 #include "inc_vendor.cl"
11 #include "inc_hash_constants.h"
12 #include "inc_hash_functions.cl"
13 #include "inc_types.cl"
14 #include "inc_common.cl"
15 #include "inc_simd.cl"
17 void m09900m (u32 w[16], const u32 pw_len, __global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * 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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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 il_cnt, const u32 digests_cnt, const u32 digests_offset)
23 const u32 gid = get_global_id (0);
24 const u32 lid = get_local_id (0);
30 const u32 F_w0c00 = 0 + MD5C00;
31 const u32 F_w1c01 = w[ 1] + MD5C01;
32 const u32 F_w2c02 = w[ 2] + MD5C02;
33 const u32 F_w3c03 = w[ 3] + MD5C03;
34 const u32 F_w4c04 = w[ 4] + MD5C04;
35 const u32 F_w5c05 = w[ 5] + MD5C05;
36 const u32 F_w6c06 = w[ 6] + MD5C06;
37 const u32 F_w7c07 = w[ 7] + MD5C07;
38 const u32 F_w8c08 = w[ 8] + MD5C08;
39 const u32 F_w9c09 = w[ 9] + MD5C09;
40 const u32 F_wac0a = w[10] + MD5C0a;
41 const u32 F_wbc0b = w[11] + MD5C0b;
42 const u32 F_wcc0c = w[12] + MD5C0c;
43 const u32 F_wdc0d = w[13] + MD5C0d;
44 const u32 F_wec0e = w[14] + MD5C0e;
45 const u32 F_wfc0f = w[15] + MD5C0f;
47 const u32 G_w1c10 = w[ 1] + MD5C10;
48 const u32 G_w6c11 = w[ 6] + MD5C11;
49 const u32 G_wbc12 = w[11] + MD5C12;
50 const u32 G_w0c13 = 0 + MD5C13;
51 const u32 G_w5c14 = w[ 5] + MD5C14;
52 const u32 G_wac15 = w[10] + MD5C15;
53 const u32 G_wfc16 = w[15] + MD5C16;
54 const u32 G_w4c17 = w[ 4] + MD5C17;
55 const u32 G_w9c18 = w[ 9] + MD5C18;
56 const u32 G_wec19 = w[14] + MD5C19;
57 const u32 G_w3c1a = w[ 3] + MD5C1a;
58 const u32 G_w8c1b = w[ 8] + MD5C1b;
59 const u32 G_wdc1c = w[13] + MD5C1c;
60 const u32 G_w2c1d = w[ 2] + MD5C1d;
61 const u32 G_w7c1e = w[ 7] + MD5C1e;
62 const u32 G_wcc1f = w[12] + MD5C1f;
64 const u32 H_w5c20 = w[ 5] + MD5C20;
65 const u32 H_w8c21 = w[ 8] + MD5C21;
66 const u32 H_wbc22 = w[11] + MD5C22;
67 const u32 H_wec23 = w[14] + MD5C23;
68 const u32 H_w1c24 = w[ 1] + MD5C24;
69 const u32 H_w4c25 = w[ 4] + MD5C25;
70 const u32 H_w7c26 = w[ 7] + MD5C26;
71 const u32 H_wac27 = w[10] + MD5C27;
72 const u32 H_wdc28 = w[13] + MD5C28;
73 const u32 H_w0c29 = 0 + MD5C29;
74 const u32 H_w3c2a = w[ 3] + MD5C2a;
75 const u32 H_w6c2b = w[ 6] + MD5C2b;
76 const u32 H_w9c2c = w[ 9] + MD5C2c;
77 const u32 H_wcc2d = w[12] + MD5C2d;
78 const u32 H_wfc2e = w[15] + MD5C2e;
79 const u32 H_w2c2f = w[ 2] + MD5C2f;
81 const u32 I_w0c30 = 0 + MD5C30;
82 const u32 I_w7c31 = w[ 7] + MD5C31;
83 const u32 I_wec32 = w[14] + MD5C32;
84 const u32 I_w5c33 = w[ 5] + MD5C33;
85 const u32 I_wcc34 = w[12] + MD5C34;
86 const u32 I_w3c35 = w[ 3] + MD5C35;
87 const u32 I_wac36 = w[10] + MD5C36;
88 const u32 I_w1c37 = w[ 1] + MD5C37;
89 const u32 I_w8c38 = w[ 8] + MD5C38;
90 const u32 I_wfc39 = w[15] + MD5C39;
91 const u32 I_w6c3a = w[ 6] + MD5C3a;
92 const u32 I_wdc3b = w[13] + MD5C3b;
93 const u32 I_w4c3c = w[ 4] + MD5C3c;
94 const u32 I_wbc3d = w[11] + MD5C3d;
95 const u32 I_w2c3e = w[ 2] + MD5C3e;
96 const u32 I_w9c3f = w[ 9] + MD5C3f;
130 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
132 const u32x w0r = words_buf_r[il_pos / VECT_SIZE];
134 const u32x w0 = w0l | w0r;
141 MD5_STEP (MD5_Fo, a, b, c, d, w0, F_w0c00, MD5S00);
142 MD5_STEP0(MD5_Fo, d, a, b, c, F_w1c01, MD5S01);
143 MD5_STEP0(MD5_Fo, c, d, a, b, F_w2c02, MD5S02);
144 MD5_STEP0(MD5_Fo, b, c, d, a, F_w3c03, MD5S03);
145 MD5_STEP0(MD5_Fo, a, b, c, d, F_w4c04, MD5S00);
146 MD5_STEP0(MD5_Fo, d, a, b, c, F_w5c05, MD5S01);
147 MD5_STEP0(MD5_Fo, c, d, a, b, F_w6c06, MD5S02);
148 MD5_STEP0(MD5_Fo, b, c, d, a, F_w7c07, MD5S03);
149 MD5_STEP0(MD5_Fo, a, b, c, d, F_w8c08, MD5S00);
150 MD5_STEP0(MD5_Fo, d, a, b, c, F_w9c09, MD5S01);
151 MD5_STEP0(MD5_Fo, c, d, a, b, F_wac0a, MD5S02);
152 MD5_STEP0(MD5_Fo, b, c, d, a, F_wbc0b, MD5S03);
153 MD5_STEP0(MD5_Fo, a, b, c, d, F_wcc0c, MD5S00);
154 MD5_STEP0(MD5_Fo, d, a, b, c, F_wdc0d, MD5S01);
155 MD5_STEP0(MD5_Fo, c, d, a, b, F_wec0e, MD5S02);
156 MD5_STEP0(MD5_Fo, b, c, d, a, F_wfc0f, MD5S03);
158 MD5_STEP0(MD5_Go, a, b, c, d, G_w1c10, MD5S10);
159 MD5_STEP0(MD5_Go, d, a, b, c, G_w6c11, MD5S11);
160 MD5_STEP0(MD5_Go, c, d, a, b, G_wbc12, MD5S12);
161 MD5_STEP (MD5_Go, b, c, d, a, w0, G_w0c13, MD5S13);
162 MD5_STEP0(MD5_Go, a, b, c, d, G_w5c14, MD5S10);
163 MD5_STEP0(MD5_Go, d, a, b, c, G_wac15, MD5S11);
164 MD5_STEP0(MD5_Go, c, d, a, b, G_wfc16, MD5S12);
165 MD5_STEP0(MD5_Go, b, c, d, a, G_w4c17, MD5S13);
166 MD5_STEP0(MD5_Go, a, b, c, d, G_w9c18, MD5S10);
167 MD5_STEP0(MD5_Go, d, a, b, c, G_wec19, MD5S11);
168 MD5_STEP0(MD5_Go, c, d, a, b, G_w3c1a, MD5S12);
169 MD5_STEP0(MD5_Go, b, c, d, a, G_w8c1b, MD5S13);
170 MD5_STEP0(MD5_Go, a, b, c, d, G_wdc1c, MD5S10);
171 MD5_STEP0(MD5_Go, d, a, b, c, G_w2c1d, MD5S11);
172 MD5_STEP0(MD5_Go, c, d, a, b, G_w7c1e, MD5S12);
173 MD5_STEP0(MD5_Go, b, c, d, a, G_wcc1f, MD5S13);
175 MD5_STEP0(MD5_H , a, b, c, d, H_w5c20, MD5S20);
176 MD5_STEP0(MD5_H , d, a, b, c, H_w8c21, MD5S21);
177 MD5_STEP0(MD5_H , c, d, a, b, H_wbc22, MD5S22);
178 MD5_STEP0(MD5_H , b, c, d, a, H_wec23, MD5S23);
179 MD5_STEP0(MD5_H , a, b, c, d, H_w1c24, MD5S20);
180 MD5_STEP0(MD5_H , d, a, b, c, H_w4c25, MD5S21);
181 MD5_STEP0(MD5_H , c, d, a, b, H_w7c26, MD5S22);
182 MD5_STEP0(MD5_H , b, c, d, a, H_wac27, MD5S23);
183 MD5_STEP0(MD5_H , a, b, c, d, H_wdc28, MD5S20);
184 MD5_STEP (MD5_H , d, a, b, c, w0, H_w0c29, MD5S21);
185 MD5_STEP0(MD5_H , c, d, a, b, H_w3c2a, MD5S22);
186 MD5_STEP0(MD5_H , b, c, d, a, H_w6c2b, MD5S23);
187 MD5_STEP0(MD5_H , a, b, c, d, H_w9c2c, MD5S20);
188 MD5_STEP0(MD5_H , d, a, b, c, H_wcc2d, MD5S21);
189 MD5_STEP0(MD5_H , c, d, a, b, H_wfc2e, MD5S22);
190 MD5_STEP0(MD5_H , b, c, d, a, H_w2c2f, MD5S23);
192 MD5_STEP (MD5_I , a, b, c, d, w0, I_w0c30, MD5S30);
193 MD5_STEP0(MD5_I , d, a, b, c, I_w7c31, MD5S31);
194 MD5_STEP0(MD5_I , c, d, a, b, I_wec32, MD5S32);
195 MD5_STEP0(MD5_I , b, c, d, a, I_w5c33, MD5S33);
196 MD5_STEP0(MD5_I , a, b, c, d, I_wcc34, MD5S30);
197 MD5_STEP0(MD5_I , d, a, b, c, I_w3c35, MD5S31);
198 MD5_STEP0(MD5_I , c, d, a, b, I_wac36, MD5S32);
199 MD5_STEP0(MD5_I , b, c, d, a, I_w1c37, MD5S33);
200 MD5_STEP0(MD5_I , a, b, c, d, I_w8c38, MD5S30);
201 MD5_STEP0(MD5_I , d, a, b, c, I_wfc39, MD5S31);
202 MD5_STEP0(MD5_I , c, d, a, b, I_w6c3a, MD5S32);
203 MD5_STEP0(MD5_I , b, c, d, a, I_wdc3b, MD5S33);
204 MD5_STEP0(MD5_I , a, b, c, d, I_w4c3c, MD5S30);
205 MD5_STEP0(MD5_I , d, a, b, c, I_wbc3d, MD5S31);
206 MD5_STEP0(MD5_I , c, d, a, b, I_w2c3e, MD5S32);
207 MD5_STEP0(MD5_I , b, c, d, a, I_w9c3f, MD5S33);
219 MD5_STEP (MD5_Fo, a, b, c, d, t0[0], MD5C00, MD5S00);
220 MD5_STEP (MD5_Fo, d, a, b, c, t0[1], MD5C01, MD5S01);
221 MD5_STEP (MD5_Fo, c, d, a, b, t0[2], MD5C02, MD5S02);
222 MD5_STEP (MD5_Fo, b, c, d, a, t0[3], MD5C03, MD5S03);
223 MD5_STEP (MD5_Fo, a, b, c, d, t1[0], MD5C04, MD5S00);
224 MD5_STEP (MD5_Fo, d, a, b, c, t1[1], MD5C05, MD5S01);
225 MD5_STEP (MD5_Fo, c, d, a, b, t1[2], MD5C06, MD5S02);
226 MD5_STEP (MD5_Fo, b, c, d, a, t1[3], MD5C07, MD5S03);
227 MD5_STEP (MD5_Fo, a, b, c, d, t2[0], MD5C08, MD5S00);
228 MD5_STEP (MD5_Fo, d, a, b, c, t2[1], MD5C09, MD5S01);
229 MD5_STEP (MD5_Fo, c, d, a, b, t2[2], MD5C0a, MD5S02);
230 MD5_STEP (MD5_Fo, b, c, d, a, t2[3], MD5C0b, MD5S03);
231 MD5_STEP (MD5_Fo, a, b, c, d, t3[0], MD5C0c, MD5S00);
232 MD5_STEP (MD5_Fo, d, a, b, c, t3[1], MD5C0d, MD5S01);
233 MD5_STEP (MD5_Fo, c, d, a, b, t3[2], MD5C0e, MD5S02);
234 MD5_STEP (MD5_Fo, b, c, d, a, t3[3], MD5C0f, MD5S03);
236 MD5_STEP (MD5_Go, a, b, c, d, t0[1], MD5C10, MD5S10);
237 MD5_STEP (MD5_Go, d, a, b, c, t1[2], MD5C11, MD5S11);
238 MD5_STEP (MD5_Go, c, d, a, b, t2[3], MD5C12, MD5S12);
239 MD5_STEP (MD5_Go, b, c, d, a, t0[0], MD5C13, MD5S13);
240 MD5_STEP (MD5_Go, a, b, c, d, t1[1], MD5C14, MD5S10);
241 MD5_STEP (MD5_Go, d, a, b, c, t2[2], MD5C15, MD5S11);
242 MD5_STEP (MD5_Go, c, d, a, b, t3[3], MD5C16, MD5S12);
243 MD5_STEP (MD5_Go, b, c, d, a, t1[0], MD5C17, MD5S13);
244 MD5_STEP (MD5_Go, a, b, c, d, t2[1], MD5C18, MD5S10);
245 MD5_STEP (MD5_Go, d, a, b, c, t3[2], MD5C19, MD5S11);
246 MD5_STEP (MD5_Go, c, d, a, b, t0[3], MD5C1a, MD5S12);
247 MD5_STEP (MD5_Go, b, c, d, a, t2[0], MD5C1b, MD5S13);
248 MD5_STEP (MD5_Go, a, b, c, d, t3[1], MD5C1c, MD5S10);
249 MD5_STEP (MD5_Go, d, a, b, c, t0[2], MD5C1d, MD5S11);
250 MD5_STEP (MD5_Go, c, d, a, b, t1[3], MD5C1e, MD5S12);
251 MD5_STEP (MD5_Go, b, c, d, a, t3[0], MD5C1f, MD5S13);
253 MD5_STEP (MD5_H , a, b, c, d, t1[1], MD5C20, MD5S20);
254 MD5_STEP (MD5_H , d, a, b, c, t2[0], MD5C21, MD5S21);
255 MD5_STEP (MD5_H , c, d, a, b, t2[3], MD5C22, MD5S22);
256 MD5_STEP (MD5_H , b, c, d, a, t3[2], MD5C23, MD5S23);
257 MD5_STEP (MD5_H , a, b, c, d, t0[1], MD5C24, MD5S20);
258 MD5_STEP (MD5_H , d, a, b, c, t1[0], MD5C25, MD5S21);
259 MD5_STEP (MD5_H , c, d, a, b, t1[3], MD5C26, MD5S22);
260 MD5_STEP (MD5_H , b, c, d, a, t2[2], MD5C27, MD5S23);
261 MD5_STEP (MD5_H , a, b, c, d, t3[1], MD5C28, MD5S20);
262 MD5_STEP (MD5_H , d, a, b, c, t0[0], MD5C29, MD5S21);
263 MD5_STEP (MD5_H , c, d, a, b, t0[3], MD5C2a, MD5S22);
264 MD5_STEP (MD5_H , b, c, d, a, t1[2], MD5C2b, MD5S23);
265 MD5_STEP (MD5_H , a, b, c, d, t2[1], MD5C2c, MD5S20);
266 MD5_STEP (MD5_H , d, a, b, c, t3[0], MD5C2d, MD5S21);
267 MD5_STEP (MD5_H , c, d, a, b, t3[3], MD5C2e, MD5S22);
268 MD5_STEP (MD5_H , b, c, d, a, t0[2], MD5C2f, MD5S23);
270 MD5_STEP (MD5_I , a, b, c, d, t0[0], MD5C30, MD5S30);
271 MD5_STEP (MD5_I , d, a, b, c, t1[3], MD5C31, MD5S31);
272 MD5_STEP (MD5_I , c, d, a, b, t3[2], MD5C32, MD5S32);
273 MD5_STEP (MD5_I , b, c, d, a, t1[1], MD5C33, MD5S33);
274 MD5_STEP (MD5_I , a, b, c, d, t3[0], MD5C34, MD5S30);
275 MD5_STEP (MD5_I , d, a, b, c, t0[3], MD5C35, MD5S31);
276 MD5_STEP (MD5_I , c, d, a, b, t2[2], MD5C36, MD5S32);
277 MD5_STEP (MD5_I , b, c, d, a, t0[1], MD5C37, MD5S33);
278 MD5_STEP (MD5_I , a, b, c, d, t2[0], MD5C38, MD5S30);
279 MD5_STEP (MD5_I , d, a, b, c, t3[3], MD5C39, MD5S31);
280 MD5_STEP (MD5_I , c, d, a, b, t1[2], MD5C3a, MD5S32);
281 MD5_STEP (MD5_I , b, c, d, a, t3[1], MD5C3b, MD5S33);
282 MD5_STEP (MD5_I , a, b, c, d, t1[0], MD5C3c, MD5S30);
283 MD5_STEP (MD5_I , d, a, b, c, t2[3], MD5C3d, MD5S31);
284 MD5_STEP (MD5_I , c, d, a, b, t0[2], MD5C3e, MD5S32);
285 MD5_STEP (MD5_I , b, c, d, a, t2[1], MD5C3f, MD5S33);
292 COMPARE_M_SIMD (a, d, c, b);
296 void m09900s (u32 w[16], const u32 pw_len, __global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * 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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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 il_cnt, const u32 digests_cnt, const u32 digests_offset)
302 const u32 gid = get_global_id (0);
303 const u32 lid = get_local_id (0);
309 const u32 F_w0c00 = 0 + MD5C00;
310 const u32 F_w1c01 = w[ 1] + MD5C01;
311 const u32 F_w2c02 = w[ 2] + MD5C02;
312 const u32 F_w3c03 = w[ 3] + MD5C03;
313 const u32 F_w4c04 = w[ 4] + MD5C04;
314 const u32 F_w5c05 = w[ 5] + MD5C05;
315 const u32 F_w6c06 = w[ 6] + MD5C06;
316 const u32 F_w7c07 = w[ 7] + MD5C07;
317 const u32 F_w8c08 = w[ 8] + MD5C08;
318 const u32 F_w9c09 = w[ 9] + MD5C09;
319 const u32 F_wac0a = w[10] + MD5C0a;
320 const u32 F_wbc0b = w[11] + MD5C0b;
321 const u32 F_wcc0c = w[12] + MD5C0c;
322 const u32 F_wdc0d = w[13] + MD5C0d;
323 const u32 F_wec0e = w[14] + MD5C0e;
324 const u32 F_wfc0f = w[15] + MD5C0f;
326 const u32 G_w1c10 = w[ 1] + MD5C10;
327 const u32 G_w6c11 = w[ 6] + MD5C11;
328 const u32 G_wbc12 = w[11] + MD5C12;
329 const u32 G_w0c13 = 0 + MD5C13;
330 const u32 G_w5c14 = w[ 5] + MD5C14;
331 const u32 G_wac15 = w[10] + MD5C15;
332 const u32 G_wfc16 = w[15] + MD5C16;
333 const u32 G_w4c17 = w[ 4] + MD5C17;
334 const u32 G_w9c18 = w[ 9] + MD5C18;
335 const u32 G_wec19 = w[14] + MD5C19;
336 const u32 G_w3c1a = w[ 3] + MD5C1a;
337 const u32 G_w8c1b = w[ 8] + MD5C1b;
338 const u32 G_wdc1c = w[13] + MD5C1c;
339 const u32 G_w2c1d = w[ 2] + MD5C1d;
340 const u32 G_w7c1e = w[ 7] + MD5C1e;
341 const u32 G_wcc1f = w[12] + MD5C1f;
343 const u32 H_w5c20 = w[ 5] + MD5C20;
344 const u32 H_w8c21 = w[ 8] + MD5C21;
345 const u32 H_wbc22 = w[11] + MD5C22;
346 const u32 H_wec23 = w[14] + MD5C23;
347 const u32 H_w1c24 = w[ 1] + MD5C24;
348 const u32 H_w4c25 = w[ 4] + MD5C25;
349 const u32 H_w7c26 = w[ 7] + MD5C26;
350 const u32 H_wac27 = w[10] + MD5C27;
351 const u32 H_wdc28 = w[13] + MD5C28;
352 const u32 H_w0c29 = 0 + MD5C29;
353 const u32 H_w3c2a = w[ 3] + MD5C2a;
354 const u32 H_w6c2b = w[ 6] + MD5C2b;
355 const u32 H_w9c2c = w[ 9] + MD5C2c;
356 const u32 H_wcc2d = w[12] + MD5C2d;
357 const u32 H_wfc2e = w[15] + MD5C2e;
358 const u32 H_w2c2f = w[ 2] + MD5C2f;
360 const u32 I_w0c30 = 0 + MD5C30;
361 const u32 I_w7c31 = w[ 7] + MD5C31;
362 const u32 I_wec32 = w[14] + MD5C32;
363 const u32 I_w5c33 = w[ 5] + MD5C33;
364 const u32 I_wcc34 = w[12] + MD5C34;
365 const u32 I_w3c35 = w[ 3] + MD5C35;
366 const u32 I_wac36 = w[10] + MD5C36;
367 const u32 I_w1c37 = w[ 1] + MD5C37;
368 const u32 I_w8c38 = w[ 8] + MD5C38;
369 const u32 I_wfc39 = w[15] + MD5C39;
370 const u32 I_w6c3a = w[ 6] + MD5C3a;
371 const u32 I_wdc3b = w[13] + MD5C3b;
372 const u32 I_w4c3c = w[ 4] + MD5C3c;
373 const u32 I_wbc3d = w[11] + MD5C3d;
374 const u32 I_w2c3e = w[ 2] + MD5C3e;
375 const u32 I_w9c3f = w[ 9] + MD5C3f;
407 const u32 search[4] =
409 digests_buf[digests_offset].digest_buf[DGST_R0],
410 digests_buf[digests_offset].digest_buf[DGST_R1],
411 digests_buf[digests_offset].digest_buf[DGST_R2],
412 digests_buf[digests_offset].digest_buf[DGST_R3]
421 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
423 const u32x w0r = words_buf_r[il_pos / VECT_SIZE];
425 const u32x w0 = w0l | w0r;
432 MD5_STEP (MD5_Fo, a, b, c, d, w0, F_w0c00, MD5S00);
433 MD5_STEP0(MD5_Fo, d, a, b, c, F_w1c01, MD5S01);
434 MD5_STEP0(MD5_Fo, c, d, a, b, F_w2c02, MD5S02);
435 MD5_STEP0(MD5_Fo, b, c, d, a, F_w3c03, MD5S03);
436 MD5_STEP0(MD5_Fo, a, b, c, d, F_w4c04, MD5S00);
437 MD5_STEP0(MD5_Fo, d, a, b, c, F_w5c05, MD5S01);
438 MD5_STEP0(MD5_Fo, c, d, a, b, F_w6c06, MD5S02);
439 MD5_STEP0(MD5_Fo, b, c, d, a, F_w7c07, MD5S03);
440 MD5_STEP0(MD5_Fo, a, b, c, d, F_w8c08, MD5S00);
441 MD5_STEP0(MD5_Fo, d, a, b, c, F_w9c09, MD5S01);
442 MD5_STEP0(MD5_Fo, c, d, a, b, F_wac0a, MD5S02);
443 MD5_STEP0(MD5_Fo, b, c, d, a, F_wbc0b, MD5S03);
444 MD5_STEP0(MD5_Fo, a, b, c, d, F_wcc0c, MD5S00);
445 MD5_STEP0(MD5_Fo, d, a, b, c, F_wdc0d, MD5S01);
446 MD5_STEP0(MD5_Fo, c, d, a, b, F_wec0e, MD5S02);
447 MD5_STEP0(MD5_Fo, b, c, d, a, F_wfc0f, MD5S03);
449 MD5_STEP0(MD5_Go, a, b, c, d, G_w1c10, MD5S10);
450 MD5_STEP0(MD5_Go, d, a, b, c, G_w6c11, MD5S11);
451 MD5_STEP0(MD5_Go, c, d, a, b, G_wbc12, MD5S12);
452 MD5_STEP (MD5_Go, b, c, d, a, w0, G_w0c13, MD5S13);
453 MD5_STEP0(MD5_Go, a, b, c, d, G_w5c14, MD5S10);
454 MD5_STEP0(MD5_Go, d, a, b, c, G_wac15, MD5S11);
455 MD5_STEP0(MD5_Go, c, d, a, b, G_wfc16, MD5S12);
456 MD5_STEP0(MD5_Go, b, c, d, a, G_w4c17, MD5S13);
457 MD5_STEP0(MD5_Go, a, b, c, d, G_w9c18, MD5S10);
458 MD5_STEP0(MD5_Go, d, a, b, c, G_wec19, MD5S11);
459 MD5_STEP0(MD5_Go, c, d, a, b, G_w3c1a, MD5S12);
460 MD5_STEP0(MD5_Go, b, c, d, a, G_w8c1b, MD5S13);
461 MD5_STEP0(MD5_Go, a, b, c, d, G_wdc1c, MD5S10);
462 MD5_STEP0(MD5_Go, d, a, b, c, G_w2c1d, MD5S11);
463 MD5_STEP0(MD5_Go, c, d, a, b, G_w7c1e, MD5S12);
464 MD5_STEP0(MD5_Go, b, c, d, a, G_wcc1f, MD5S13);
466 MD5_STEP0(MD5_H , a, b, c, d, H_w5c20, MD5S20);
467 MD5_STEP0(MD5_H , d, a, b, c, H_w8c21, MD5S21);
468 MD5_STEP0(MD5_H , c, d, a, b, H_wbc22, MD5S22);
469 MD5_STEP0(MD5_H , b, c, d, a, H_wec23, MD5S23);
470 MD5_STEP0(MD5_H , a, b, c, d, H_w1c24, MD5S20);
471 MD5_STEP0(MD5_H , d, a, b, c, H_w4c25, MD5S21);
472 MD5_STEP0(MD5_H , c, d, a, b, H_w7c26, MD5S22);
473 MD5_STEP0(MD5_H , b, c, d, a, H_wac27, MD5S23);
474 MD5_STEP0(MD5_H , a, b, c, d, H_wdc28, MD5S20);
475 MD5_STEP (MD5_H , d, a, b, c, w0, H_w0c29, MD5S21);
476 MD5_STEP0(MD5_H , c, d, a, b, H_w3c2a, MD5S22);
477 MD5_STEP0(MD5_H , b, c, d, a, H_w6c2b, MD5S23);
478 MD5_STEP0(MD5_H , a, b, c, d, H_w9c2c, MD5S20);
479 MD5_STEP0(MD5_H , d, a, b, c, H_wcc2d, MD5S21);
480 MD5_STEP0(MD5_H , c, d, a, b, H_wfc2e, MD5S22);
481 MD5_STEP0(MD5_H , b, c, d, a, H_w2c2f, MD5S23);
483 MD5_STEP (MD5_I , a, b, c, d, w0, I_w0c30, MD5S30);
484 MD5_STEP0(MD5_I , d, a, b, c, I_w7c31, MD5S31);
485 MD5_STEP0(MD5_I , c, d, a, b, I_wec32, MD5S32);
486 MD5_STEP0(MD5_I , b, c, d, a, I_w5c33, MD5S33);
487 MD5_STEP0(MD5_I , a, b, c, d, I_wcc34, MD5S30);
488 MD5_STEP0(MD5_I , d, a, b, c, I_w3c35, MD5S31);
489 MD5_STEP0(MD5_I , c, d, a, b, I_wac36, MD5S32);
490 MD5_STEP0(MD5_I , b, c, d, a, I_w1c37, MD5S33);
491 MD5_STEP0(MD5_I , a, b, c, d, I_w8c38, MD5S30);
492 MD5_STEP0(MD5_I , d, a, b, c, I_wfc39, MD5S31);
493 MD5_STEP0(MD5_I , c, d, a, b, I_w6c3a, MD5S32);
494 MD5_STEP0(MD5_I , b, c, d, a, I_wdc3b, MD5S33);
495 MD5_STEP0(MD5_I , a, b, c, d, I_w4c3c, MD5S30);
496 MD5_STEP0(MD5_I , d, a, b, c, I_wbc3d, MD5S31);
497 MD5_STEP0(MD5_I , c, d, a, b, I_w2c3e, MD5S32);
498 MD5_STEP0(MD5_I , b, c, d, a, I_w9c3f, MD5S33);
510 MD5_STEP (MD5_Fo, a, b, c, d, t0[0], MD5C00, MD5S00);
511 MD5_STEP (MD5_Fo, d, a, b, c, t0[1], MD5C01, MD5S01);
512 MD5_STEP (MD5_Fo, c, d, a, b, t0[2], MD5C02, MD5S02);
513 MD5_STEP (MD5_Fo, b, c, d, a, t0[3], MD5C03, MD5S03);
514 MD5_STEP (MD5_Fo, a, b, c, d, t1[0], MD5C04, MD5S00);
515 MD5_STEP (MD5_Fo, d, a, b, c, t1[1], MD5C05, MD5S01);
516 MD5_STEP (MD5_Fo, c, d, a, b, t1[2], MD5C06, MD5S02);
517 MD5_STEP (MD5_Fo, b, c, d, a, t1[3], MD5C07, MD5S03);
518 MD5_STEP (MD5_Fo, a, b, c, d, t2[0], MD5C08, MD5S00);
519 MD5_STEP (MD5_Fo, d, a, b, c, t2[1], MD5C09, MD5S01);
520 MD5_STEP (MD5_Fo, c, d, a, b, t2[2], MD5C0a, MD5S02);
521 MD5_STEP (MD5_Fo, b, c, d, a, t2[3], MD5C0b, MD5S03);
522 MD5_STEP (MD5_Fo, a, b, c, d, t3[0], MD5C0c, MD5S00);
523 MD5_STEP (MD5_Fo, d, a, b, c, t3[1], MD5C0d, MD5S01);
524 MD5_STEP (MD5_Fo, c, d, a, b, t3[2], MD5C0e, MD5S02);
525 MD5_STEP (MD5_Fo, b, c, d, a, t3[3], MD5C0f, MD5S03);
527 MD5_STEP (MD5_Go, a, b, c, d, t0[1], MD5C10, MD5S10);
528 MD5_STEP (MD5_Go, d, a, b, c, t1[2], MD5C11, MD5S11);
529 MD5_STEP (MD5_Go, c, d, a, b, t2[3], MD5C12, MD5S12);
530 MD5_STEP (MD5_Go, b, c, d, a, t0[0], MD5C13, MD5S13);
531 MD5_STEP (MD5_Go, a, b, c, d, t1[1], MD5C14, MD5S10);
532 MD5_STEP (MD5_Go, d, a, b, c, t2[2], MD5C15, MD5S11);
533 MD5_STEP (MD5_Go, c, d, a, b, t3[3], MD5C16, MD5S12);
534 MD5_STEP (MD5_Go, b, c, d, a, t1[0], MD5C17, MD5S13);
535 MD5_STEP (MD5_Go, a, b, c, d, t2[1], MD5C18, MD5S10);
536 MD5_STEP (MD5_Go, d, a, b, c, t3[2], MD5C19, MD5S11);
537 MD5_STEP (MD5_Go, c, d, a, b, t0[3], MD5C1a, MD5S12);
538 MD5_STEP (MD5_Go, b, c, d, a, t2[0], MD5C1b, MD5S13);
539 MD5_STEP (MD5_Go, a, b, c, d, t3[1], MD5C1c, MD5S10);
540 MD5_STEP (MD5_Go, d, a, b, c, t0[2], MD5C1d, MD5S11);
541 MD5_STEP (MD5_Go, c, d, a, b, t1[3], MD5C1e, MD5S12);
542 MD5_STEP (MD5_Go, b, c, d, a, t3[0], MD5C1f, MD5S13);
544 MD5_STEP (MD5_H , a, b, c, d, t1[1], MD5C20, MD5S20);
545 MD5_STEP (MD5_H , d, a, b, c, t2[0], MD5C21, MD5S21);
546 MD5_STEP (MD5_H , c, d, a, b, t2[3], MD5C22, MD5S22);
547 MD5_STEP (MD5_H , b, c, d, a, t3[2], MD5C23, MD5S23);
548 MD5_STEP (MD5_H , a, b, c, d, t0[1], MD5C24, MD5S20);
549 MD5_STEP (MD5_H , d, a, b, c, t1[0], MD5C25, MD5S21);
550 MD5_STEP (MD5_H , c, d, a, b, t1[3], MD5C26, MD5S22);
551 MD5_STEP (MD5_H , b, c, d, a, t2[2], MD5C27, MD5S23);
552 MD5_STEP (MD5_H , a, b, c, d, t3[1], MD5C28, MD5S20);
553 MD5_STEP (MD5_H , d, a, b, c, t0[0], MD5C29, MD5S21);
554 MD5_STEP (MD5_H , c, d, a, b, t0[3], MD5C2a, MD5S22);
555 MD5_STEP (MD5_H , b, c, d, a, t1[2], MD5C2b, MD5S23);
556 MD5_STEP (MD5_H , a, b, c, d, t2[1], MD5C2c, MD5S20);
557 MD5_STEP (MD5_H , d, a, b, c, t3[0], MD5C2d, MD5S21);
558 MD5_STEP (MD5_H , c, d, a, b, t3[3], MD5C2e, MD5S22);
559 MD5_STEP (MD5_H , b, c, d, a, t0[2], MD5C2f, MD5S23);
561 MD5_STEP (MD5_I , a, b, c, d, t0[0], MD5C30, MD5S30);
562 MD5_STEP (MD5_I , d, a, b, c, t1[3], MD5C31, MD5S31);
563 MD5_STEP (MD5_I , c, d, a, b, t3[2], MD5C32, MD5S32);
564 MD5_STEP (MD5_I , b, c, d, a, t1[1], MD5C33, MD5S33);
565 MD5_STEP (MD5_I , a, b, c, d, t3[0], MD5C34, MD5S30);
566 MD5_STEP (MD5_I , d, a, b, c, t0[3], MD5C35, MD5S31);
567 MD5_STEP (MD5_I , c, d, a, b, t2[2], MD5C36, MD5S32);
568 MD5_STEP (MD5_I , b, c, d, a, t0[1], MD5C37, MD5S33);
569 MD5_STEP (MD5_I , a, b, c, d, t2[0], MD5C38, MD5S30);
570 MD5_STEP (MD5_I , d, a, b, c, t3[3], MD5C39, MD5S31);
571 MD5_STEP (MD5_I , c, d, a, b, t1[2], MD5C3a, MD5S32);
572 MD5_STEP (MD5_I , b, c, d, a, t3[1], MD5C3b, MD5S33);
573 MD5_STEP (MD5_I , a, b, c, d, t1[0], MD5C3c, MD5S30);
575 if (MATCHES_NONE_VS ((a + r_a), search[0])) continue;
577 MD5_STEP (MD5_I , d, a, b, c, t2[3], MD5C3d, MD5S31);
578 MD5_STEP (MD5_I , c, d, a, b, t0[2], MD5C3e, MD5S32);
579 MD5_STEP (MD5_I , b, c, d, a, t2[1], MD5C3f, MD5S33);
586 COMPARE_S_SIMD (a, d, c, b);
590 __kernel void m09900_m04 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * 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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
596 const u32 gid = get_global_id (0);
598 if (gid >= gid_max) return;
602 w[ 0] = pws[gid].i[ 0];
603 w[ 1] = pws[gid].i[ 1];
604 w[ 2] = pws[gid].i[ 2];
605 w[ 3] = pws[gid].i[ 3];
619 const u32 pw_len = pws[gid].pw_len;
625 m09900m (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_scryptV0_buf, d_scryptV1_buf, d_scryptV2_buf, d_scryptV3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
628 __kernel void m09900_m08 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * 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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
634 const u32 gid = get_global_id (0);
636 if (gid >= gid_max) return;
640 w[ 0] = pws[gid].i[ 0];
641 w[ 1] = pws[gid].i[ 1];
642 w[ 2] = pws[gid].i[ 2];
643 w[ 3] = pws[gid].i[ 3];
644 w[ 4] = pws[gid].i[ 4];
645 w[ 5] = pws[gid].i[ 5];
646 w[ 6] = pws[gid].i[ 6];
647 w[ 7] = pws[gid].i[ 7];
657 const u32 pw_len = pws[gid].pw_len;
663 m09900m (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_scryptV0_buf, d_scryptV1_buf, d_scryptV2_buf, d_scryptV3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
666 __kernel void m09900_m16 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * 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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
672 const u32 gid = get_global_id (0);
674 if (gid >= gid_max) return;
678 w[ 0] = pws[gid].i[ 0];
679 w[ 1] = pws[gid].i[ 1];
680 w[ 2] = pws[gid].i[ 2];
681 w[ 3] = pws[gid].i[ 3];
682 w[ 4] = pws[gid].i[ 4];
683 w[ 5] = pws[gid].i[ 5];
684 w[ 6] = pws[gid].i[ 6];
685 w[ 7] = pws[gid].i[ 7];
686 w[ 8] = pws[gid].i[ 8];
687 w[ 9] = pws[gid].i[ 9];
688 w[10] = pws[gid].i[10];
689 w[11] = pws[gid].i[11];
690 w[12] = pws[gid].i[12];
691 w[13] = pws[gid].i[13];
692 w[14] = pws[gid].i[14];
693 w[15] = pws[gid].i[15];
695 const u32 pw_len = pws[gid].pw_len;
701 m09900m (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_scryptV0_buf, d_scryptV1_buf, d_scryptV2_buf, d_scryptV3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
704 __kernel void m09900_s04 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * 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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
710 const u32 gid = get_global_id (0);
712 if (gid >= gid_max) return;
716 w[ 0] = pws[gid].i[ 0];
717 w[ 1] = pws[gid].i[ 1];
718 w[ 2] = pws[gid].i[ 2];
719 w[ 3] = pws[gid].i[ 3];
733 const u32 pw_len = pws[gid].pw_len;
739 m09900s (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_scryptV0_buf, d_scryptV1_buf, d_scryptV2_buf, d_scryptV3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
742 __kernel void m09900_s08 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * 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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
748 const u32 gid = get_global_id (0);
750 if (gid >= gid_max) return;
754 w[ 0] = pws[gid].i[ 0];
755 w[ 1] = pws[gid].i[ 1];
756 w[ 2] = pws[gid].i[ 2];
757 w[ 3] = pws[gid].i[ 3];
758 w[ 4] = pws[gid].i[ 4];
759 w[ 5] = pws[gid].i[ 5];
760 w[ 6] = pws[gid].i[ 6];
761 w[ 7] = pws[gid].i[ 7];
771 const u32 pw_len = pws[gid].pw_len;
777 m09900s (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_scryptV0_buf, d_scryptV1_buf, d_scryptV2_buf, d_scryptV3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
780 __kernel void m09900_s16 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __constant u32x * 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_scryptV0_buf, __global u32 *d_scryptV1_buf, __global u32 *d_scryptV2_buf, __global u32 *d_scryptV3_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
786 const u32 gid = get_global_id (0);
788 if (gid >= gid_max) return;
792 w[ 0] = pws[gid].i[ 0];
793 w[ 1] = pws[gid].i[ 1];
794 w[ 2] = pws[gid].i[ 2];
795 w[ 3] = pws[gid].i[ 3];
796 w[ 4] = pws[gid].i[ 4];
797 w[ 5] = pws[gid].i[ 5];
798 w[ 6] = pws[gid].i[ 6];
799 w[ 7] = pws[gid].i[ 7];
800 w[ 8] = pws[gid].i[ 8];
801 w[ 9] = pws[gid].i[ 9];
802 w[10] = pws[gid].i[10];
803 w[11] = pws[gid].i[11];
804 w[12] = pws[gid].i[12];
805 w[13] = pws[gid].i[13];
806 w[14] = pws[gid].i[14];
807 w[15] = pws[gid].i[15];
809 const u32 pw_len = pws[gid].pw_len;
815 m09900s (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_scryptV0_buf, d_scryptV1_buf, d_scryptV2_buf, d_scryptV3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);