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 m04800m (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_len, __global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __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);
32 salt_buf[0] = salt_bufs[salt_pos].salt_buf[0];
33 salt_buf[1] = salt_bufs[salt_pos].salt_buf[1];
34 salt_buf[2] = salt_bufs[salt_pos].salt_buf[2];
35 salt_buf[3] = salt_bufs[salt_pos].salt_buf[3];
36 salt_buf[4] = salt_bufs[salt_pos].salt_buf[4];
38 const u32 salt_len = salt_bufs[salt_pos].salt_len;
40 const u32 pw_salt_len = pw_len + salt_len;
64 switch_buffer_by_offset_le_S (s0, s1, s2, s3, pw_len);
83 switch_buffer_by_offset_le_S (w0, w1, w2, w3, 1);
87 const u32 w0l = w0[0];
88 const u32 w1l = w0[1];
90 w3[2] = pw_salt_len * 8;
97 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
99 const u32x w0r = ix_create_bft (bfs_buf, il_pos);
101 const u32x w0lr = w0l | w0r;
103 u32x w0_t = w0l | (w0r << 8);
104 u32x w1_t = w1l | (w0r >> 24);
129 MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00);
130 MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01);
131 MD5_STEP (MD5_Fo, c, d, a, b, w2_t, MD5C02, MD5S02);
132 MD5_STEP (MD5_Fo, b, c, d, a, w3_t, MD5C03, MD5S03);
133 MD5_STEP (MD5_Fo, a, b, c, d, w4_t, MD5C04, MD5S00);
134 MD5_STEP (MD5_Fo, d, a, b, c, w5_t, MD5C05, MD5S01);
135 MD5_STEP (MD5_Fo, c, d, a, b, w6_t, MD5C06, MD5S02);
136 MD5_STEP (MD5_Fo, b, c, d, a, w7_t, MD5C07, MD5S03);
137 MD5_STEP (MD5_Fo, a, b, c, d, w8_t, MD5C08, MD5S00);
138 MD5_STEP (MD5_Fo, d, a, b, c, w9_t, MD5C09, MD5S01);
139 MD5_STEP (MD5_Fo, c, d, a, b, wa_t, MD5C0a, MD5S02);
140 MD5_STEP (MD5_Fo, b, c, d, a, wb_t, MD5C0b, MD5S03);
141 MD5_STEP (MD5_Fo, a, b, c, d, wc_t, MD5C0c, MD5S00);
142 MD5_STEP (MD5_Fo, d, a, b, c, wd_t, MD5C0d, MD5S01);
143 MD5_STEP (MD5_Fo, c, d, a, b, we_t, MD5C0e, MD5S02);
144 MD5_STEP (MD5_Fo, b, c, d, a, wf_t, MD5C0f, MD5S03);
146 MD5_STEP (MD5_Go, a, b, c, d, w1_t, MD5C10, MD5S10);
147 MD5_STEP (MD5_Go, d, a, b, c, w6_t, MD5C11, MD5S11);
148 MD5_STEP (MD5_Go, c, d, a, b, wb_t, MD5C12, MD5S12);
149 MD5_STEP (MD5_Go, b, c, d, a, w0_t, MD5C13, MD5S13);
150 MD5_STEP (MD5_Go, a, b, c, d, w5_t, MD5C14, MD5S10);
151 MD5_STEP (MD5_Go, d, a, b, c, wa_t, MD5C15, MD5S11);
152 MD5_STEP (MD5_Go, c, d, a, b, wf_t, MD5C16, MD5S12);
153 MD5_STEP (MD5_Go, b, c, d, a, w4_t, MD5C17, MD5S13);
154 MD5_STEP (MD5_Go, a, b, c, d, w9_t, MD5C18, MD5S10);
155 MD5_STEP (MD5_Go, d, a, b, c, we_t, MD5C19, MD5S11);
156 MD5_STEP (MD5_Go, c, d, a, b, w3_t, MD5C1a, MD5S12);
157 MD5_STEP (MD5_Go, b, c, d, a, w8_t, MD5C1b, MD5S13);
158 MD5_STEP (MD5_Go, a, b, c, d, wd_t, MD5C1c, MD5S10);
159 MD5_STEP (MD5_Go, d, a, b, c, w2_t, MD5C1d, MD5S11);
160 MD5_STEP (MD5_Go, c, d, a, b, w7_t, MD5C1e, MD5S12);
161 MD5_STEP (MD5_Go, b, c, d, a, wc_t, MD5C1f, MD5S13);
163 MD5_STEP (MD5_H , a, b, c, d, w5_t, MD5C20, MD5S20);
164 MD5_STEP (MD5_H , d, a, b, c, w8_t, MD5C21, MD5S21);
165 MD5_STEP (MD5_H , c, d, a, b, wb_t, MD5C22, MD5S22);
166 MD5_STEP (MD5_H , b, c, d, a, we_t, MD5C23, MD5S23);
167 MD5_STEP (MD5_H , a, b, c, d, w1_t, MD5C24, MD5S20);
168 MD5_STEP (MD5_H , d, a, b, c, w4_t, MD5C25, MD5S21);
169 MD5_STEP (MD5_H , c, d, a, b, w7_t, MD5C26, MD5S22);
170 MD5_STEP (MD5_H , b, c, d, a, wa_t, MD5C27, MD5S23);
171 MD5_STEP (MD5_H , a, b, c, d, wd_t, MD5C28, MD5S20);
172 MD5_STEP (MD5_H , d, a, b, c, w0_t, MD5C29, MD5S21);
173 MD5_STEP (MD5_H , c, d, a, b, w3_t, MD5C2a, MD5S22);
174 MD5_STEP (MD5_H , b, c, d, a, w6_t, MD5C2b, MD5S23);
175 MD5_STEP (MD5_H , a, b, c, d, w9_t, MD5C2c, MD5S20);
176 MD5_STEP (MD5_H , d, a, b, c, wc_t, MD5C2d, MD5S21);
177 MD5_STEP (MD5_H , c, d, a, b, wf_t, MD5C2e, MD5S22);
178 MD5_STEP (MD5_H , b, c, d, a, w2_t, MD5C2f, MD5S23);
180 MD5_STEP (MD5_I , a, b, c, d, w0_t, MD5C30, MD5S30);
181 MD5_STEP (MD5_I , d, a, b, c, w7_t, MD5C31, MD5S31);
182 MD5_STEP (MD5_I , c, d, a, b, we_t, MD5C32, MD5S32);
183 MD5_STEP (MD5_I , b, c, d, a, w5_t, MD5C33, MD5S33);
184 MD5_STEP (MD5_I , a, b, c, d, wc_t, MD5C34, MD5S30);
185 MD5_STEP (MD5_I , d, a, b, c, w3_t, MD5C35, MD5S31);
186 MD5_STEP (MD5_I , c, d, a, b, wa_t, MD5C36, MD5S32);
187 MD5_STEP (MD5_I , b, c, d, a, w1_t, MD5C37, MD5S33);
188 MD5_STEP (MD5_I , a, b, c, d, w8_t, MD5C38, MD5S30);
189 MD5_STEP (MD5_I , d, a, b, c, wf_t, MD5C39, MD5S31);
190 MD5_STEP (MD5_I , c, d, a, b, w6_t, MD5C3a, MD5S32);
191 MD5_STEP (MD5_I , b, c, d, a, wd_t, MD5C3b, MD5S33);
192 MD5_STEP (MD5_I , a, b, c, d, w4_t, MD5C3c, MD5S30);
193 MD5_STEP (MD5_I , d, a, b, c, wb_t, MD5C3d, MD5S31);
194 MD5_STEP (MD5_I , c, d, a, b, w2_t, MD5C3e, MD5S32);
195 MD5_STEP (MD5_I , b, c, d, a, w9_t, MD5C3f, MD5S33);
197 COMPARE_M_SIMD (a, d, c, b);
201 void m04800s (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_len, __global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __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)
207 const u32 gid = get_global_id (0);
208 const u32 lid = get_local_id (0);
216 salt_buf[0] = salt_bufs[salt_pos].salt_buf[0];
217 salt_buf[1] = salt_bufs[salt_pos].salt_buf[1];
218 salt_buf[2] = salt_bufs[salt_pos].salt_buf[2];
219 salt_buf[3] = salt_bufs[salt_pos].salt_buf[3];
220 salt_buf[4] = salt_bufs[salt_pos].salt_buf[4];
222 const u32 salt_len = salt_bufs[salt_pos].salt_len;
224 const u32 pw_salt_len = pw_len + salt_len;
248 switch_buffer_by_offset_le_S (s0, s1, s2, s3, pw_len);
267 switch_buffer_by_offset_le_S (w0, w1, w2, w3, 1);
269 w0[0] |= salt_buf[4];
271 const u32 w0l = w0[0];
272 const u32 w1l = w0[1];
274 w3[2] = pw_salt_len * 8;
281 const u32 search[4] =
283 digests_buf[digests_offset].digest_buf[DGST_R0],
284 digests_buf[digests_offset].digest_buf[DGST_R1],
285 digests_buf[digests_offset].digest_buf[DGST_R2],
286 digests_buf[digests_offset].digest_buf[DGST_R3]
293 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
295 const u32x w0r = ix_create_bft (bfs_buf, il_pos);
297 const u32x w0lr = w0l | w0r;
299 u32x w0_t = w0l | (w0r << 8);
300 u32x w1_t = w1l | (w0r >> 24);
325 MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00);
326 MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01);
327 MD5_STEP (MD5_Fo, c, d, a, b, w2_t, MD5C02, MD5S02);
328 MD5_STEP (MD5_Fo, b, c, d, a, w3_t, MD5C03, MD5S03);
329 MD5_STEP (MD5_Fo, a, b, c, d, w4_t, MD5C04, MD5S00);
330 MD5_STEP (MD5_Fo, d, a, b, c, w5_t, MD5C05, MD5S01);
331 MD5_STEP (MD5_Fo, c, d, a, b, w6_t, MD5C06, MD5S02);
332 MD5_STEP (MD5_Fo, b, c, d, a, w7_t, MD5C07, MD5S03);
333 MD5_STEP (MD5_Fo, a, b, c, d, w8_t, MD5C08, MD5S00);
334 MD5_STEP (MD5_Fo, d, a, b, c, w9_t, MD5C09, MD5S01);
335 MD5_STEP (MD5_Fo, c, d, a, b, wa_t, MD5C0a, MD5S02);
336 MD5_STEP (MD5_Fo, b, c, d, a, wb_t, MD5C0b, MD5S03);
337 MD5_STEP (MD5_Fo, a, b, c, d, wc_t, MD5C0c, MD5S00);
338 MD5_STEP (MD5_Fo, d, a, b, c, wd_t, MD5C0d, MD5S01);
339 MD5_STEP (MD5_Fo, c, d, a, b, we_t, MD5C0e, MD5S02);
340 MD5_STEP (MD5_Fo, b, c, d, a, wf_t, MD5C0f, MD5S03);
342 MD5_STEP (MD5_Go, a, b, c, d, w1_t, MD5C10, MD5S10);
343 MD5_STEP (MD5_Go, d, a, b, c, w6_t, MD5C11, MD5S11);
344 MD5_STEP (MD5_Go, c, d, a, b, wb_t, MD5C12, MD5S12);
345 MD5_STEP (MD5_Go, b, c, d, a, w0_t, MD5C13, MD5S13);
346 MD5_STEP (MD5_Go, a, b, c, d, w5_t, MD5C14, MD5S10);
347 MD5_STEP (MD5_Go, d, a, b, c, wa_t, MD5C15, MD5S11);
348 MD5_STEP (MD5_Go, c, d, a, b, wf_t, MD5C16, MD5S12);
349 MD5_STEP (MD5_Go, b, c, d, a, w4_t, MD5C17, MD5S13);
350 MD5_STEP (MD5_Go, a, b, c, d, w9_t, MD5C18, MD5S10);
351 MD5_STEP (MD5_Go, d, a, b, c, we_t, MD5C19, MD5S11);
352 MD5_STEP (MD5_Go, c, d, a, b, w3_t, MD5C1a, MD5S12);
353 MD5_STEP (MD5_Go, b, c, d, a, w8_t, MD5C1b, MD5S13);
354 MD5_STEP (MD5_Go, a, b, c, d, wd_t, MD5C1c, MD5S10);
355 MD5_STEP (MD5_Go, d, a, b, c, w2_t, MD5C1d, MD5S11);
356 MD5_STEP (MD5_Go, c, d, a, b, w7_t, MD5C1e, MD5S12);
357 MD5_STEP (MD5_Go, b, c, d, a, wc_t, MD5C1f, MD5S13);
359 MD5_STEP (MD5_H , a, b, c, d, w5_t, MD5C20, MD5S20);
360 MD5_STEP (MD5_H , d, a, b, c, w8_t, MD5C21, MD5S21);
361 MD5_STEP (MD5_H , c, d, a, b, wb_t, MD5C22, MD5S22);
362 MD5_STEP (MD5_H , b, c, d, a, we_t, MD5C23, MD5S23);
363 MD5_STEP (MD5_H , a, b, c, d, w1_t, MD5C24, MD5S20);
364 MD5_STEP (MD5_H , d, a, b, c, w4_t, MD5C25, MD5S21);
365 MD5_STEP (MD5_H , c, d, a, b, w7_t, MD5C26, MD5S22);
366 MD5_STEP (MD5_H , b, c, d, a, wa_t, MD5C27, MD5S23);
367 MD5_STEP (MD5_H , a, b, c, d, wd_t, MD5C28, MD5S20);
368 MD5_STEP (MD5_H , d, a, b, c, w0_t, MD5C29, MD5S21);
369 MD5_STEP (MD5_H , c, d, a, b, w3_t, MD5C2a, MD5S22);
370 MD5_STEP (MD5_H , b, c, d, a, w6_t, MD5C2b, MD5S23);
371 MD5_STEP (MD5_H , a, b, c, d, w9_t, MD5C2c, MD5S20);
372 MD5_STEP (MD5_H , d, a, b, c, wc_t, MD5C2d, MD5S21);
373 MD5_STEP (MD5_H , c, d, a, b, wf_t, MD5C2e, MD5S22);
374 MD5_STEP (MD5_H , b, c, d, a, w2_t, MD5C2f, MD5S23);
376 MD5_STEP (MD5_I , a, b, c, d, w0_t, MD5C30, MD5S30);
377 MD5_STEP (MD5_I , d, a, b, c, w7_t, MD5C31, MD5S31);
378 MD5_STEP (MD5_I , c, d, a, b, we_t, MD5C32, MD5S32);
379 MD5_STEP (MD5_I , b, c, d, a, w5_t, MD5C33, MD5S33);
380 MD5_STEP (MD5_I , a, b, c, d, wc_t, MD5C34, MD5S30);
381 MD5_STEP (MD5_I , d, a, b, c, w3_t, MD5C35, MD5S31);
382 MD5_STEP (MD5_I , c, d, a, b, wa_t, MD5C36, MD5S32);
383 MD5_STEP (MD5_I , b, c, d, a, w1_t, MD5C37, MD5S33);
384 MD5_STEP (MD5_I , a, b, c, d, w8_t, MD5C38, MD5S30);
385 MD5_STEP (MD5_I , d, a, b, c, wf_t, MD5C39, MD5S31);
386 MD5_STEP (MD5_I , c, d, a, b, w6_t, MD5C3a, MD5S32);
387 MD5_STEP (MD5_I , b, c, d, a, wd_t, MD5C3b, MD5S33);
388 MD5_STEP (MD5_I , a, b, c, d, w4_t, MD5C3c, MD5S30);
390 if (MATCHES_NONE_VS (a, search[0])) continue;
392 MD5_STEP (MD5_I , d, a, b, c, wb_t, MD5C3d, MD5S31);
393 MD5_STEP (MD5_I , c, d, a, b, w2_t, MD5C3e, MD5S32);
394 MD5_STEP (MD5_I , b, c, d, a, w9_t, MD5C3f, MD5S33);
396 COMPARE_S_SIMD (a, d, c, b);
400 __kernel void m04800_m04 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __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)
406 const u32 gid = get_global_id (0);
408 if (gid >= gid_max) return;
414 const u32 lid = get_local_id (0);
419 w0[0] = pws[gid].i[ 0];
420 w0[1] = pws[gid].i[ 1];
421 w0[2] = pws[gid].i[ 2];
422 w0[3] = pws[gid].i[ 3];
445 const u32 pw_len = pws[gid].pw_len;
451 m04800m (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_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);
454 __kernel void m04800_m08 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __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)
460 const u32 gid = get_global_id (0);
462 if (gid >= gid_max) return;
468 const u32 lid = get_local_id (0);
472 w0[0] = pws[gid].i[ 0];
473 w0[1] = pws[gid].i[ 1];
474 w0[2] = pws[gid].i[ 2];
475 w0[3] = pws[gid].i[ 3];
479 w1[0] = pws[gid].i[ 4];
480 w1[1] = pws[gid].i[ 5];
481 w1[2] = pws[gid].i[ 6];
482 w1[3] = pws[gid].i[ 7];
498 const u32 pw_len = pws[gid].pw_len;
504 m04800m (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_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);
507 __kernel void m04800_m16 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __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)
513 const u32 gid = get_global_id (0);
515 if (gid >= gid_max) return;
521 const u32 lid = get_local_id (0);
525 w0[0] = pws[gid].i[ 0];
526 w0[1] = pws[gid].i[ 1];
527 w0[2] = pws[gid].i[ 2];
528 w0[3] = pws[gid].i[ 3];
532 w1[0] = pws[gid].i[ 4];
533 w1[1] = pws[gid].i[ 5];
534 w1[2] = pws[gid].i[ 6];
535 w1[3] = pws[gid].i[ 7];
539 w2[0] = pws[gid].i[ 8];
540 w2[1] = pws[gid].i[ 9];
541 w2[2] = pws[gid].i[10];
542 w2[3] = pws[gid].i[11];
546 w3[0] = pws[gid].i[12];
547 w3[1] = pws[gid].i[13];
548 w3[2] = pws[gid].i[14];
549 w3[3] = pws[gid].i[15];
551 const u32 pw_len = pws[gid].pw_len;
557 m04800m (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_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);
560 __kernel void m04800_s04 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __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)
566 const u32 gid = get_global_id (0);
568 if (gid >= gid_max) return;
574 const u32 lid = get_local_id (0);
578 w0[0] = pws[gid].i[ 0];
579 w0[1] = pws[gid].i[ 1];
580 w0[2] = pws[gid].i[ 2];
581 w0[3] = pws[gid].i[ 3];
604 const u32 pw_len = pws[gid].pw_len;
610 m04800s (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_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);
613 __kernel void m04800_s08 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __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)
619 const u32 gid = get_global_id (0);
621 if (gid >= gid_max) return;
627 const u32 lid = get_local_id (0);
631 w0[0] = pws[gid].i[ 0];
632 w0[1] = pws[gid].i[ 1];
633 w0[2] = pws[gid].i[ 2];
634 w0[3] = pws[gid].i[ 3];
638 w1[0] = pws[gid].i[ 4];
639 w1[1] = pws[gid].i[ 5];
640 w1[2] = pws[gid].i[ 6];
641 w1[3] = pws[gid].i[ 7];
657 const u32 pw_len = pws[gid].pw_len;
663 m04800s (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_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 m04800_s16 (__global pw_t *pws, __global kernel_rule_t *rules_buf, __global comb_t *combs_buf, __global bf_t *bfs_buf, __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;
680 const u32 lid = get_local_id (0);
684 w0[0] = pws[gid].i[ 0];
685 w0[1] = pws[gid].i[ 1];
686 w0[2] = pws[gid].i[ 2];
687 w0[3] = pws[gid].i[ 3];
691 w1[0] = pws[gid].i[ 4];
692 w1[1] = pws[gid].i[ 5];
693 w1[2] = pws[gid].i[ 6];
694 w1[3] = pws[gid].i[ 7];
698 w2[0] = pws[gid].i[ 8];
699 w2[1] = pws[gid].i[ 9];
700 w2[2] = pws[gid].i[10];
701 w2[3] = pws[gid].i[11];
705 w3[0] = pws[gid].i[12];
706 w3[1] = pws[gid].i[13];
707 w3[2] = pws[gid].i[14];
708 w3[3] = pws[gid].i[15];
710 const u32 pw_len = pws[gid].pw_len;
716 m04800s (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_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);