2 * Author......: Jens Steube <jens.steube@gmail.com>
10 #include "include/constants.h"
11 #include "include/kernel_vendor.h"
18 #include "include/kernel_functions.c"
19 #include "OpenCL/types_ocl.c"
20 #include "OpenCL/common.c"
21 #include "OpenCL/simd.c"
23 static 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_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 il_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);
38 salt_buf[0] = salt_bufs[salt_pos].salt_buf[0];
39 salt_buf[1] = salt_bufs[salt_pos].salt_buf[1];
40 salt_buf[2] = salt_bufs[salt_pos].salt_buf[2];
41 salt_buf[3] = salt_bufs[salt_pos].salt_buf[3];
42 salt_buf[4] = salt_bufs[salt_pos].salt_buf[4];
44 const u32 salt_len = salt_bufs[salt_pos].salt_len;
46 const u32 pw_salt_len = pw_len + salt_len;
70 switch_buffer_by_offset_le_S (s0, s1, s2, s3, pw_len);
89 switch_buffer_by_offset_le_S (w0, w1, w2, w3, 1);
93 const u32 w0l = w0[0];
94 const u32 w1l = w0[1];
96 w3[2] = pw_salt_len * 8;
103 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
105 const u32x w0r = ix_create_bft (bfs_buf, il_pos);
107 const u32x w0lr = w0l | w0r;
109 u32x w0_t = w0l | (w0r << 8);
110 u32x w1_t = w1l | (w0r >> 24);
135 MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00);
136 MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01);
137 MD5_STEP (MD5_Fo, c, d, a, b, w2_t, MD5C02, MD5S02);
138 MD5_STEP (MD5_Fo, b, c, d, a, w3_t, MD5C03, MD5S03);
139 MD5_STEP (MD5_Fo, a, b, c, d, w4_t, MD5C04, MD5S00);
140 MD5_STEP (MD5_Fo, d, a, b, c, w5_t, MD5C05, MD5S01);
141 MD5_STEP (MD5_Fo, c, d, a, b, w6_t, MD5C06, MD5S02);
142 MD5_STEP (MD5_Fo, b, c, d, a, w7_t, MD5C07, MD5S03);
143 MD5_STEP (MD5_Fo, a, b, c, d, w8_t, MD5C08, MD5S00);
144 MD5_STEP (MD5_Fo, d, a, b, c, w9_t, MD5C09, MD5S01);
145 MD5_STEP (MD5_Fo, c, d, a, b, wa_t, MD5C0a, MD5S02);
146 MD5_STEP (MD5_Fo, b, c, d, a, wb_t, MD5C0b, MD5S03);
147 MD5_STEP (MD5_Fo, a, b, c, d, wc_t, MD5C0c, MD5S00);
148 MD5_STEP (MD5_Fo, d, a, b, c, wd_t, MD5C0d, MD5S01);
149 MD5_STEP (MD5_Fo, c, d, a, b, we_t, MD5C0e, MD5S02);
150 MD5_STEP (MD5_Fo, b, c, d, a, wf_t, MD5C0f, MD5S03);
152 MD5_STEP (MD5_Go, a, b, c, d, w1_t, MD5C10, MD5S10);
153 MD5_STEP (MD5_Go, d, a, b, c, w6_t, MD5C11, MD5S11);
154 MD5_STEP (MD5_Go, c, d, a, b, wb_t, MD5C12, MD5S12);
155 MD5_STEP (MD5_Go, b, c, d, a, w0_t, MD5C13, MD5S13);
156 MD5_STEP (MD5_Go, a, b, c, d, w5_t, MD5C14, MD5S10);
157 MD5_STEP (MD5_Go, d, a, b, c, wa_t, MD5C15, MD5S11);
158 MD5_STEP (MD5_Go, c, d, a, b, wf_t, MD5C16, MD5S12);
159 MD5_STEP (MD5_Go, b, c, d, a, w4_t, MD5C17, MD5S13);
160 MD5_STEP (MD5_Go, a, b, c, d, w9_t, MD5C18, MD5S10);
161 MD5_STEP (MD5_Go, d, a, b, c, we_t, MD5C19, MD5S11);
162 MD5_STEP (MD5_Go, c, d, a, b, w3_t, MD5C1a, MD5S12);
163 MD5_STEP (MD5_Go, b, c, d, a, w8_t, MD5C1b, MD5S13);
164 MD5_STEP (MD5_Go, a, b, c, d, wd_t, MD5C1c, MD5S10);
165 MD5_STEP (MD5_Go, d, a, b, c, w2_t, MD5C1d, MD5S11);
166 MD5_STEP (MD5_Go, c, d, a, b, w7_t, MD5C1e, MD5S12);
167 MD5_STEP (MD5_Go, b, c, d, a, wc_t, MD5C1f, MD5S13);
169 MD5_STEP (MD5_H , a, b, c, d, w5_t, MD5C20, MD5S20);
170 MD5_STEP (MD5_H , d, a, b, c, w8_t, MD5C21, MD5S21);
171 MD5_STEP (MD5_H , c, d, a, b, wb_t, MD5C22, MD5S22);
172 MD5_STEP (MD5_H , b, c, d, a, we_t, MD5C23, MD5S23);
173 MD5_STEP (MD5_H , a, b, c, d, w1_t, MD5C24, MD5S20);
174 MD5_STEP (MD5_H , d, a, b, c, w4_t, MD5C25, MD5S21);
175 MD5_STEP (MD5_H , c, d, a, b, w7_t, MD5C26, MD5S22);
176 MD5_STEP (MD5_H , b, c, d, a, wa_t, MD5C27, MD5S23);
177 MD5_STEP (MD5_H , a, b, c, d, wd_t, MD5C28, MD5S20);
178 MD5_STEP (MD5_H , d, a, b, c, w0_t, MD5C29, MD5S21);
179 MD5_STEP (MD5_H , c, d, a, b, w3_t, MD5C2a, MD5S22);
180 MD5_STEP (MD5_H , b, c, d, a, w6_t, MD5C2b, MD5S23);
181 MD5_STEP (MD5_H , a, b, c, d, w9_t, MD5C2c, MD5S20);
182 MD5_STEP (MD5_H , d, a, b, c, wc_t, MD5C2d, MD5S21);
183 MD5_STEP (MD5_H , c, d, a, b, wf_t, MD5C2e, MD5S22);
184 MD5_STEP (MD5_H , b, c, d, a, w2_t, MD5C2f, MD5S23);
186 MD5_STEP (MD5_I , a, b, c, d, w0_t, MD5C30, MD5S30);
187 MD5_STEP (MD5_I , d, a, b, c, w7_t, MD5C31, MD5S31);
188 MD5_STEP (MD5_I , c, d, a, b, we_t, MD5C32, MD5S32);
189 MD5_STEP (MD5_I , b, c, d, a, w5_t, MD5C33, MD5S33);
190 MD5_STEP (MD5_I , a, b, c, d, wc_t, MD5C34, MD5S30);
191 MD5_STEP (MD5_I , d, a, b, c, w3_t, MD5C35, MD5S31);
192 MD5_STEP (MD5_I , c, d, a, b, wa_t, MD5C36, MD5S32);
193 MD5_STEP (MD5_I , b, c, d, a, w1_t, MD5C37, MD5S33);
194 MD5_STEP (MD5_I , a, b, c, d, w8_t, MD5C38, MD5S30);
195 MD5_STEP (MD5_I , d, a, b, c, wf_t, MD5C39, MD5S31);
196 MD5_STEP (MD5_I , c, d, a, b, w6_t, MD5C3a, MD5S32);
197 MD5_STEP (MD5_I , b, c, d, a, wd_t, MD5C3b, MD5S33);
198 MD5_STEP (MD5_I , a, b, c, d, w4_t, MD5C3c, MD5S30);
199 MD5_STEP (MD5_I , d, a, b, c, wb_t, MD5C3d, MD5S31);
200 MD5_STEP (MD5_I , c, d, a, b, w2_t, MD5C3e, MD5S32);
201 MD5_STEP (MD5_I , b, c, d, a, w9_t, MD5C3f, MD5S33);
203 COMPARE_M_SIMD (a, d, c, b);
207 static 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_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 il_cnt, const u32 digests_cnt, const u32 digests_offset)
213 const u32 gid = get_global_id (0);
214 const u32 lid = get_local_id (0);
222 salt_buf[0] = salt_bufs[salt_pos].salt_buf[0];
223 salt_buf[1] = salt_bufs[salt_pos].salt_buf[1];
224 salt_buf[2] = salt_bufs[salt_pos].salt_buf[2];
225 salt_buf[3] = salt_bufs[salt_pos].salt_buf[3];
226 salt_buf[4] = salt_bufs[salt_pos].salt_buf[4];
228 const u32 salt_len = salt_bufs[salt_pos].salt_len;
230 const u32 pw_salt_len = pw_len + salt_len;
254 switch_buffer_by_offset_le_S (s0, s1, s2, s3, pw_len);
273 switch_buffer_by_offset_le_S (w0, w1, w2, w3, 1);
275 w0[0] |= salt_buf[4];
277 const u32 w0l = w0[0];
278 const u32 w1l = w0[1];
280 w3[2] = pw_salt_len * 8;
287 const u32 search[4] =
289 digests_buf[digests_offset].digest_buf[DGST_R0],
290 digests_buf[digests_offset].digest_buf[DGST_R1],
291 digests_buf[digests_offset].digest_buf[DGST_R2],
292 digests_buf[digests_offset].digest_buf[DGST_R3]
299 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
301 const u32x w0r = ix_create_bft (bfs_buf, il_pos);
303 const u32x w0lr = w0l | w0r;
305 u32x w0_t = w0l | (w0r << 8);
306 u32x w1_t = w1l | (w0r >> 24);
331 MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00);
332 MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01);
333 MD5_STEP (MD5_Fo, c, d, a, b, w2_t, MD5C02, MD5S02);
334 MD5_STEP (MD5_Fo, b, c, d, a, w3_t, MD5C03, MD5S03);
335 MD5_STEP (MD5_Fo, a, b, c, d, w4_t, MD5C04, MD5S00);
336 MD5_STEP (MD5_Fo, d, a, b, c, w5_t, MD5C05, MD5S01);
337 MD5_STEP (MD5_Fo, c, d, a, b, w6_t, MD5C06, MD5S02);
338 MD5_STEP (MD5_Fo, b, c, d, a, w7_t, MD5C07, MD5S03);
339 MD5_STEP (MD5_Fo, a, b, c, d, w8_t, MD5C08, MD5S00);
340 MD5_STEP (MD5_Fo, d, a, b, c, w9_t, MD5C09, MD5S01);
341 MD5_STEP (MD5_Fo, c, d, a, b, wa_t, MD5C0a, MD5S02);
342 MD5_STEP (MD5_Fo, b, c, d, a, wb_t, MD5C0b, MD5S03);
343 MD5_STEP (MD5_Fo, a, b, c, d, wc_t, MD5C0c, MD5S00);
344 MD5_STEP (MD5_Fo, d, a, b, c, wd_t, MD5C0d, MD5S01);
345 MD5_STEP (MD5_Fo, c, d, a, b, we_t, MD5C0e, MD5S02);
346 MD5_STEP (MD5_Fo, b, c, d, a, wf_t, MD5C0f, MD5S03);
348 MD5_STEP (MD5_Go, a, b, c, d, w1_t, MD5C10, MD5S10);
349 MD5_STEP (MD5_Go, d, a, b, c, w6_t, MD5C11, MD5S11);
350 MD5_STEP (MD5_Go, c, d, a, b, wb_t, MD5C12, MD5S12);
351 MD5_STEP (MD5_Go, b, c, d, a, w0_t, MD5C13, MD5S13);
352 MD5_STEP (MD5_Go, a, b, c, d, w5_t, MD5C14, MD5S10);
353 MD5_STEP (MD5_Go, d, a, b, c, wa_t, MD5C15, MD5S11);
354 MD5_STEP (MD5_Go, c, d, a, b, wf_t, MD5C16, MD5S12);
355 MD5_STEP (MD5_Go, b, c, d, a, w4_t, MD5C17, MD5S13);
356 MD5_STEP (MD5_Go, a, b, c, d, w9_t, MD5C18, MD5S10);
357 MD5_STEP (MD5_Go, d, a, b, c, we_t, MD5C19, MD5S11);
358 MD5_STEP (MD5_Go, c, d, a, b, w3_t, MD5C1a, MD5S12);
359 MD5_STEP (MD5_Go, b, c, d, a, w8_t, MD5C1b, MD5S13);
360 MD5_STEP (MD5_Go, a, b, c, d, wd_t, MD5C1c, MD5S10);
361 MD5_STEP (MD5_Go, d, a, b, c, w2_t, MD5C1d, MD5S11);
362 MD5_STEP (MD5_Go, c, d, a, b, w7_t, MD5C1e, MD5S12);
363 MD5_STEP (MD5_Go, b, c, d, a, wc_t, MD5C1f, MD5S13);
365 MD5_STEP (MD5_H , a, b, c, d, w5_t, MD5C20, MD5S20);
366 MD5_STEP (MD5_H , d, a, b, c, w8_t, MD5C21, MD5S21);
367 MD5_STEP (MD5_H , c, d, a, b, wb_t, MD5C22, MD5S22);
368 MD5_STEP (MD5_H , b, c, d, a, we_t, MD5C23, MD5S23);
369 MD5_STEP (MD5_H , a, b, c, d, w1_t, MD5C24, MD5S20);
370 MD5_STEP (MD5_H , d, a, b, c, w4_t, MD5C25, MD5S21);
371 MD5_STEP (MD5_H , c, d, a, b, w7_t, MD5C26, MD5S22);
372 MD5_STEP (MD5_H , b, c, d, a, wa_t, MD5C27, MD5S23);
373 MD5_STEP (MD5_H , a, b, c, d, wd_t, MD5C28, MD5S20);
374 MD5_STEP (MD5_H , d, a, b, c, w0_t, MD5C29, MD5S21);
375 MD5_STEP (MD5_H , c, d, a, b, w3_t, MD5C2a, MD5S22);
376 MD5_STEP (MD5_H , b, c, d, a, w6_t, MD5C2b, MD5S23);
377 MD5_STEP (MD5_H , a, b, c, d, w9_t, MD5C2c, MD5S20);
378 MD5_STEP (MD5_H , d, a, b, c, wc_t, MD5C2d, MD5S21);
379 MD5_STEP (MD5_H , c, d, a, b, wf_t, MD5C2e, MD5S22);
380 MD5_STEP (MD5_H , b, c, d, a, w2_t, MD5C2f, MD5S23);
382 MD5_STEP (MD5_I , a, b, c, d, w0_t, MD5C30, MD5S30);
383 MD5_STEP (MD5_I , d, a, b, c, w7_t, MD5C31, MD5S31);
384 MD5_STEP (MD5_I , c, d, a, b, we_t, MD5C32, MD5S32);
385 MD5_STEP (MD5_I , b, c, d, a, w5_t, MD5C33, MD5S33);
386 MD5_STEP (MD5_I , a, b, c, d, wc_t, MD5C34, MD5S30);
387 MD5_STEP (MD5_I , d, a, b, c, w3_t, MD5C35, MD5S31);
388 MD5_STEP (MD5_I , c, d, a, b, wa_t, MD5C36, MD5S32);
389 MD5_STEP (MD5_I , b, c, d, a, w1_t, MD5C37, MD5S33);
390 MD5_STEP (MD5_I , a, b, c, d, w8_t, MD5C38, MD5S30);
391 MD5_STEP (MD5_I , d, a, b, c, wf_t, MD5C39, MD5S31);
392 MD5_STEP (MD5_I , c, d, a, b, w6_t, MD5C3a, MD5S32);
393 MD5_STEP (MD5_I , b, c, d, a, wd_t, MD5C3b, MD5S33);
394 MD5_STEP (MD5_I , a, b, c, d, w4_t, MD5C3c, MD5S30);
396 if (MATCHES_NONE_VS (a, search[0])) continue;
398 MD5_STEP (MD5_I , d, a, b, c, wb_t, MD5C3d, MD5S31);
399 MD5_STEP (MD5_I , c, d, a, b, w2_t, MD5C3e, MD5S32);
400 MD5_STEP (MD5_I , b, c, d, a, w9_t, MD5C3f, MD5S33);
402 COMPARE_S_SIMD (a, d, c, b);
406 __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_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
412 const u32 gid = get_global_id (0);
414 if (gid >= gid_max) return;
420 const u32 lid = get_local_id (0);
425 w0[0] = pws[gid].i[ 0];
426 w0[1] = pws[gid].i[ 1];
427 w0[2] = pws[gid].i[ 2];
428 w0[3] = pws[gid].i[ 3];
451 const u32 pw_len = pws[gid].pw_len;
457 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_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
460 __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_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
466 const u32 gid = get_global_id (0);
468 if (gid >= gid_max) return;
474 const u32 lid = get_local_id (0);
478 w0[0] = pws[gid].i[ 0];
479 w0[1] = pws[gid].i[ 1];
480 w0[2] = pws[gid].i[ 2];
481 w0[3] = pws[gid].i[ 3];
485 w1[0] = pws[gid].i[ 4];
486 w1[1] = pws[gid].i[ 5];
487 w1[2] = pws[gid].i[ 6];
488 w1[3] = pws[gid].i[ 7];
504 const u32 pw_len = pws[gid].pw_len;
510 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_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
513 __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_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
519 const u32 gid = get_global_id (0);
521 if (gid >= gid_max) return;
527 const u32 lid = get_local_id (0);
531 w0[0] = pws[gid].i[ 0];
532 w0[1] = pws[gid].i[ 1];
533 w0[2] = pws[gid].i[ 2];
534 w0[3] = pws[gid].i[ 3];
538 w1[0] = pws[gid].i[ 4];
539 w1[1] = pws[gid].i[ 5];
540 w1[2] = pws[gid].i[ 6];
541 w1[3] = pws[gid].i[ 7];
545 w2[0] = pws[gid].i[ 8];
546 w2[1] = pws[gid].i[ 9];
547 w2[2] = pws[gid].i[10];
548 w2[3] = pws[gid].i[11];
552 w3[0] = pws[gid].i[12];
553 w3[1] = pws[gid].i[13];
554 w3[2] = pws[gid].i[14];
555 w3[3] = pws[gid].i[15];
557 const u32 pw_len = pws[gid].pw_len;
563 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_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
566 __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_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
572 const u32 gid = get_global_id (0);
574 if (gid >= gid_max) return;
580 const u32 lid = get_local_id (0);
584 w0[0] = pws[gid].i[ 0];
585 w0[1] = pws[gid].i[ 1];
586 w0[2] = pws[gid].i[ 2];
587 w0[3] = pws[gid].i[ 3];
610 const u32 pw_len = pws[gid].pw_len;
616 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_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
619 __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_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
625 const u32 gid = get_global_id (0);
627 if (gid >= gid_max) return;
633 const u32 lid = get_local_id (0);
637 w0[0] = pws[gid].i[ 0];
638 w0[1] = pws[gid].i[ 1];
639 w0[2] = pws[gid].i[ 2];
640 w0[3] = pws[gid].i[ 3];
644 w1[0] = pws[gid].i[ 4];
645 w1[1] = pws[gid].i[ 5];
646 w1[2] = pws[gid].i[ 6];
647 w1[3] = pws[gid].i[ 7];
663 const u32 pw_len = pws[gid].pw_len;
669 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_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);
672 __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_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 il_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
678 const u32 gid = get_global_id (0);
680 if (gid >= gid_max) return;
686 const u32 lid = get_local_id (0);
690 w0[0] = pws[gid].i[ 0];
691 w0[1] = pws[gid].i[ 1];
692 w0[2] = pws[gid].i[ 2];
693 w0[3] = pws[gid].i[ 3];
697 w1[0] = pws[gid].i[ 4];
698 w1[1] = pws[gid].i[ 5];
699 w1[2] = pws[gid].i[ 6];
700 w1[3] = pws[gid].i[ 7];
704 w2[0] = pws[gid].i[ 8];
705 w2[1] = pws[gid].i[ 9];
706 w2[2] = pws[gid].i[10];
707 w2[3] = pws[gid].i[11];
711 w3[0] = pws[gid].i[12];
712 w3[1] = pws[gid].i[13];
713 w3[2] = pws[gid].i[14];
714 w3[3] = pws[gid].i[15];
716 const u32 pw_len = pws[gid].pw_len;
722 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_scryptV_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset);