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 m05100m (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);
44 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
46 const u32x w0r = ix_create_bft (bfs_buf, il_pos);
48 const u32x w0lr = w0l | w0r;
55 MD5_STEP (MD5_Fo, a, b, c, d, w0lr, MD5C00, MD5S00);
56 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
57 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
58 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
59 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
60 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
61 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
62 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
63 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
64 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
65 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
66 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
67 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
68 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
69 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
70 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
72 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
73 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
74 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
75 MD5_STEP (MD5_Go, b, c, d, a, w0lr, MD5C13, MD5S13);
76 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
77 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
78 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
79 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
80 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
81 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
82 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
83 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
84 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
85 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
86 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
87 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
89 MD5_STEP (MD5_H , a, b, c, d, w1[1], MD5C20, MD5S20);
90 MD5_STEP (MD5_H , d, a, b, c, w2[0], MD5C21, MD5S21);
91 MD5_STEP (MD5_H , c, d, a, b, w2[3], MD5C22, MD5S22);
92 MD5_STEP (MD5_H , b, c, d, a, w3[2], MD5C23, MD5S23);
93 MD5_STEP (MD5_H , a, b, c, d, w0[1], MD5C24, MD5S20);
94 MD5_STEP (MD5_H , d, a, b, c, w1[0], MD5C25, MD5S21);
95 MD5_STEP (MD5_H , c, d, a, b, w1[3], MD5C26, MD5S22);
96 MD5_STEP (MD5_H , b, c, d, a, w2[2], MD5C27, MD5S23);
97 MD5_STEP (MD5_H , a, b, c, d, w3[1], MD5C28, MD5S20);
98 MD5_STEP (MD5_H , d, a, b, c, w0lr, MD5C29, MD5S21);
99 MD5_STEP (MD5_H , c, d, a, b, w0[3], MD5C2a, MD5S22);
100 MD5_STEP (MD5_H , b, c, d, a, w1[2], MD5C2b, MD5S23);
101 MD5_STEP (MD5_H , a, b, c, d, w2[1], MD5C2c, MD5S20);
102 MD5_STEP (MD5_H , d, a, b, c, w3[0], MD5C2d, MD5S21);
103 MD5_STEP (MD5_H , c, d, a, b, w3[3], MD5C2e, MD5S22);
104 MD5_STEP (MD5_H , b, c, d, a, w0[2], MD5C2f, MD5S23);
106 MD5_STEP (MD5_I , a, b, c, d, w0lr, MD5C30, MD5S30);
107 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
108 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
109 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
110 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
111 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
112 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
113 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
114 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
115 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
116 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
117 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
118 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
119 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
120 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
121 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
131 COMPARE_M_SIMD (a, b, e, f);
133 COMPARE_M_SIMD (b, c, e, f);
135 COMPARE_M_SIMD (c, d, e, f);
139 static void m05100s (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)
145 const u32 gid = get_global_id (0);
146 const u32 lid = get_local_id (0);
158 const u32 search[4] =
160 digests_buf[digests_offset].digest_buf[DGST_R0],
161 digests_buf[digests_offset].digest_buf[DGST_R1],
162 digests_buf[digests_offset].digest_buf[DGST_R2],
163 digests_buf[digests_offset].digest_buf[DGST_R3]
172 for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
174 const u32x w0r = ix_create_bft (bfs_buf, il_pos);
176 const u32x w0lr = w0l | w0r;
183 MD5_STEP (MD5_Fo, a, b, c, d, w0lr, MD5C00, MD5S00);
184 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
185 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
186 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
187 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
188 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
189 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
190 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
191 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
192 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
193 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
194 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
195 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
196 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
197 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
198 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
200 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
201 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
202 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
203 MD5_STEP (MD5_Go, b, c, d, a, w0lr, MD5C13, MD5S13);
204 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
205 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
206 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
207 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
208 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
209 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
210 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
211 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
212 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
213 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
214 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
215 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
217 MD5_STEP (MD5_H , a, b, c, d, w1[1], MD5C20, MD5S20);
218 MD5_STEP (MD5_H , d, a, b, c, w2[0], MD5C21, MD5S21);
219 MD5_STEP (MD5_H , c, d, a, b, w2[3], MD5C22, MD5S22);
220 MD5_STEP (MD5_H , b, c, d, a, w3[2], MD5C23, MD5S23);
221 MD5_STEP (MD5_H , a, b, c, d, w0[1], MD5C24, MD5S20);
222 MD5_STEP (MD5_H , d, a, b, c, w1[0], MD5C25, MD5S21);
223 MD5_STEP (MD5_H , c, d, a, b, w1[3], MD5C26, MD5S22);
224 MD5_STEP (MD5_H , b, c, d, a, w2[2], MD5C27, MD5S23);
225 MD5_STEP (MD5_H , a, b, c, d, w3[1], MD5C28, MD5S20);
226 MD5_STEP (MD5_H , d, a, b, c, w0lr, MD5C29, MD5S21);
227 MD5_STEP (MD5_H , c, d, a, b, w0[3], MD5C2a, MD5S22);
228 MD5_STEP (MD5_H , b, c, d, a, w1[2], MD5C2b, MD5S23);
229 MD5_STEP (MD5_H , a, b, c, d, w2[1], MD5C2c, MD5S20);
230 MD5_STEP (MD5_H , d, a, b, c, w3[0], MD5C2d, MD5S21);
231 MD5_STEP (MD5_H , c, d, a, b, w3[3], MD5C2e, MD5S22);
232 MD5_STEP (MD5_H , b, c, d, a, w0[2], MD5C2f, MD5S23);
234 MD5_STEP (MD5_I , a, b, c, d, w0lr, MD5C30, MD5S30);
235 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
236 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
237 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
238 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
239 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
240 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
241 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
242 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
243 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
244 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
245 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
246 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
247 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
248 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
249 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
259 COMPARE_S_SIMD (a, b, e, f);
261 COMPARE_S_SIMD (b, c, e, f);
263 COMPARE_S_SIMD (c, d, e, f);
267 __kernel void m05100_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)
273 const u32 gid = get_global_id (0);
275 if (gid >= gid_max) return;
279 w0[0] = pws[gid].i[ 0];
280 w0[1] = pws[gid].i[ 1];
281 w0[2] = pws[gid].i[ 2];
282 w0[3] = pws[gid].i[ 3];
305 const u32 pw_len = pws[gid].pw_len;
311 m05100m (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);
314 __kernel void m05100_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)
320 const u32 gid = get_global_id (0);
322 if (gid >= gid_max) return;
326 w0[0] = pws[gid].i[ 0];
327 w0[1] = pws[gid].i[ 1];
328 w0[2] = pws[gid].i[ 2];
329 w0[3] = pws[gid].i[ 3];
333 w1[0] = pws[gid].i[ 4];
334 w1[1] = pws[gid].i[ 5];
335 w1[2] = pws[gid].i[ 6];
336 w1[3] = pws[gid].i[ 7];
352 const u32 pw_len = pws[gid].pw_len;
358 m05100m (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);
361 __kernel void m05100_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)
367 const u32 gid = get_global_id (0);
369 if (gid >= gid_max) return;
373 w0[0] = pws[gid].i[ 0];
374 w0[1] = pws[gid].i[ 1];
375 w0[2] = pws[gid].i[ 2];
376 w0[3] = pws[gid].i[ 3];
380 w1[0] = pws[gid].i[ 4];
381 w1[1] = pws[gid].i[ 5];
382 w1[2] = pws[gid].i[ 6];
383 w1[3] = pws[gid].i[ 7];
387 w2[0] = pws[gid].i[ 8];
388 w2[1] = pws[gid].i[ 9];
389 w2[2] = pws[gid].i[10];
390 w2[3] = pws[gid].i[11];
394 w3[0] = pws[gid].i[12];
395 w3[1] = pws[gid].i[13];
399 const u32 pw_len = pws[gid].pw_len;
405 m05100m (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);
408 __kernel void m05100_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)
414 const u32 gid = get_global_id (0);
416 if (gid >= gid_max) return;
420 w0[0] = pws[gid].i[ 0];
421 w0[1] = pws[gid].i[ 1];
422 w0[2] = pws[gid].i[ 2];
423 w0[3] = pws[gid].i[ 3];
446 const u32 pw_len = pws[gid].pw_len;
452 m05100s (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);
455 __kernel void m05100_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)
461 const u32 gid = get_global_id (0);
463 if (gid >= gid_max) return;
467 w0[0] = pws[gid].i[ 0];
468 w0[1] = pws[gid].i[ 1];
469 w0[2] = pws[gid].i[ 2];
470 w0[3] = pws[gid].i[ 3];
474 w1[0] = pws[gid].i[ 4];
475 w1[1] = pws[gid].i[ 5];
476 w1[2] = pws[gid].i[ 6];
477 w1[3] = pws[gid].i[ 7];
493 const u32 pw_len = pws[gid].pw_len;
499 m05100s (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);
502 __kernel void m05100_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)
508 const u32 gid = get_global_id (0);
510 if (gid >= gid_max) return;
514 w0[0] = pws[gid].i[ 0];
515 w0[1] = pws[gid].i[ 1];
516 w0[2] = pws[gid].i[ 2];
517 w0[3] = pws[gid].i[ 3];
521 w1[0] = pws[gid].i[ 4];
522 w1[1] = pws[gid].i[ 5];
523 w1[2] = pws[gid].i[ 6];
524 w1[3] = pws[gid].i[ 7];
528 w2[0] = pws[gid].i[ 8];
529 w2[1] = pws[gid].i[ 9];
530 w2[2] = pws[gid].i[10];
531 w2[3] = pws[gid].i[11];
535 w3[0] = pws[gid].i[12];
536 w3[1] = pws[gid].i[13];
540 const u32 pw_len = pws[gid].pw_len;
546 m05100s (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);