2 * Author......: Jens Steube <jens.steube@gmail.com>
8 #include "include/constants.h"
9 #include "include/kernel_vendor.h"
16 #include "include/kernel_functions.c"
17 #include "types_ocl.c"
20 #define COMPARE_S "check_single_comp4.c"
21 #define COMPARE_M "check_multi_comp4.c"
23 static void m05100m (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_len, __global pw_t *pws, __global gpu_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset)
29 const u32 gid = get_global_id (0);
30 const u32 lid = get_local_id (0);
44 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
46 const u32 w0r = bfs_buf[il_pos].i;
55 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], 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, w0[0], 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, w0[0], 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, w0[0], 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);
157 static void m05100s (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_len, __global pw_t *pws, __global gpu_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset)
163 const u32 gid = get_global_id (0);
164 const u32 lid = get_local_id (0);
176 const u32 search[4] =
178 digests_buf[digests_offset].digest_buf[DGST_R0],
179 digests_buf[digests_offset].digest_buf[DGST_R1],
180 digests_buf[digests_offset].digest_buf[DGST_R2],
181 digests_buf[digests_offset].digest_buf[DGST_R3]
190 for (u32 il_pos = 0; il_pos < bfs_cnt; il_pos++)
192 const u32 w0r = bfs_buf[il_pos].i;
201 MD5_STEP (MD5_Fo, a, b, c, d, w0[0], MD5C00, MD5S00);
202 MD5_STEP (MD5_Fo, d, a, b, c, w0[1], MD5C01, MD5S01);
203 MD5_STEP (MD5_Fo, c, d, a, b, w0[2], MD5C02, MD5S02);
204 MD5_STEP (MD5_Fo, b, c, d, a, w0[3], MD5C03, MD5S03);
205 MD5_STEP (MD5_Fo, a, b, c, d, w1[0], MD5C04, MD5S00);
206 MD5_STEP (MD5_Fo, d, a, b, c, w1[1], MD5C05, MD5S01);
207 MD5_STEP (MD5_Fo, c, d, a, b, w1[2], MD5C06, MD5S02);
208 MD5_STEP (MD5_Fo, b, c, d, a, w1[3], MD5C07, MD5S03);
209 MD5_STEP (MD5_Fo, a, b, c, d, w2[0], MD5C08, MD5S00);
210 MD5_STEP (MD5_Fo, d, a, b, c, w2[1], MD5C09, MD5S01);
211 MD5_STEP (MD5_Fo, c, d, a, b, w2[2], MD5C0a, MD5S02);
212 MD5_STEP (MD5_Fo, b, c, d, a, w2[3], MD5C0b, MD5S03);
213 MD5_STEP (MD5_Fo, a, b, c, d, w3[0], MD5C0c, MD5S00);
214 MD5_STEP (MD5_Fo, d, a, b, c, w3[1], MD5C0d, MD5S01);
215 MD5_STEP (MD5_Fo, c, d, a, b, w3[2], MD5C0e, MD5S02);
216 MD5_STEP (MD5_Fo, b, c, d, a, w3[3], MD5C0f, MD5S03);
218 MD5_STEP (MD5_Go, a, b, c, d, w0[1], MD5C10, MD5S10);
219 MD5_STEP (MD5_Go, d, a, b, c, w1[2], MD5C11, MD5S11);
220 MD5_STEP (MD5_Go, c, d, a, b, w2[3], MD5C12, MD5S12);
221 MD5_STEP (MD5_Go, b, c, d, a, w0[0], MD5C13, MD5S13);
222 MD5_STEP (MD5_Go, a, b, c, d, w1[1], MD5C14, MD5S10);
223 MD5_STEP (MD5_Go, d, a, b, c, w2[2], MD5C15, MD5S11);
224 MD5_STEP (MD5_Go, c, d, a, b, w3[3], MD5C16, MD5S12);
225 MD5_STEP (MD5_Go, b, c, d, a, w1[0], MD5C17, MD5S13);
226 MD5_STEP (MD5_Go, a, b, c, d, w2[1], MD5C18, MD5S10);
227 MD5_STEP (MD5_Go, d, a, b, c, w3[2], MD5C19, MD5S11);
228 MD5_STEP (MD5_Go, c, d, a, b, w0[3], MD5C1a, MD5S12);
229 MD5_STEP (MD5_Go, b, c, d, a, w2[0], MD5C1b, MD5S13);
230 MD5_STEP (MD5_Go, a, b, c, d, w3[1], MD5C1c, MD5S10);
231 MD5_STEP (MD5_Go, d, a, b, c, w0[2], MD5C1d, MD5S11);
232 MD5_STEP (MD5_Go, c, d, a, b, w1[3], MD5C1e, MD5S12);
233 MD5_STEP (MD5_Go, b, c, d, a, w3[0], MD5C1f, MD5S13);
235 MD5_STEP (MD5_H , a, b, c, d, w1[1], MD5C20, MD5S20);
236 MD5_STEP (MD5_H , d, a, b, c, w2[0], MD5C21, MD5S21);
237 MD5_STEP (MD5_H , c, d, a, b, w2[3], MD5C22, MD5S22);
238 MD5_STEP (MD5_H , b, c, d, a, w3[2], MD5C23, MD5S23);
239 MD5_STEP (MD5_H , a, b, c, d, w0[1], MD5C24, MD5S20);
240 MD5_STEP (MD5_H , d, a, b, c, w1[0], MD5C25, MD5S21);
241 MD5_STEP (MD5_H , c, d, a, b, w1[3], MD5C26, MD5S22);
242 MD5_STEP (MD5_H , b, c, d, a, w2[2], MD5C27, MD5S23);
243 MD5_STEP (MD5_H , a, b, c, d, w3[1], MD5C28, MD5S20);
244 MD5_STEP (MD5_H , d, a, b, c, w0[0], MD5C29, MD5S21);
245 MD5_STEP (MD5_H , c, d, a, b, w0[3], MD5C2a, MD5S22);
246 MD5_STEP (MD5_H , b, c, d, a, w1[2], MD5C2b, MD5S23);
247 MD5_STEP (MD5_H , a, b, c, d, w2[1], MD5C2c, MD5S20);
248 MD5_STEP (MD5_H , d, a, b, c, w3[0], MD5C2d, MD5S21);
249 MD5_STEP (MD5_H , c, d, a, b, w3[3], MD5C2e, MD5S22);
250 MD5_STEP (MD5_H , b, c, d, a, w0[2], MD5C2f, MD5S23);
252 MD5_STEP (MD5_I , a, b, c, d, w0[0], MD5C30, MD5S30);
253 MD5_STEP (MD5_I , d, a, b, c, w1[3], MD5C31, MD5S31);
254 MD5_STEP (MD5_I , c, d, a, b, w3[2], MD5C32, MD5S32);
255 MD5_STEP (MD5_I , b, c, d, a, w1[1], MD5C33, MD5S33);
256 MD5_STEP (MD5_I , a, b, c, d, w3[0], MD5C34, MD5S30);
257 MD5_STEP (MD5_I , d, a, b, c, w0[3], MD5C35, MD5S31);
258 MD5_STEP (MD5_I , c, d, a, b, w2[2], MD5C36, MD5S32);
259 MD5_STEP (MD5_I , b, c, d, a, w0[1], MD5C37, MD5S33);
260 MD5_STEP (MD5_I , a, b, c, d, w2[0], MD5C38, MD5S30);
261 MD5_STEP (MD5_I , d, a, b, c, w3[3], MD5C39, MD5S31);
262 MD5_STEP (MD5_I , c, d, a, b, w1[2], MD5C3a, MD5S32);
263 MD5_STEP (MD5_I , b, c, d, a, w3[1], MD5C3b, MD5S33);
264 MD5_STEP (MD5_I , a, b, c, d, w1[0], MD5C3c, MD5S30);
265 MD5_STEP (MD5_I , d, a, b, c, w2[3], MD5C3d, MD5S31);
266 MD5_STEP (MD5_I , c, d, a, b, w0[2], MD5C3e, MD5S32);
267 MD5_STEP (MD5_I , b, c, d, a, w2[1], MD5C3f, MD5S33);
303 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05100_m04 (__global pw_t *pws, __global gpu_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
309 const u32 gid = get_global_id (0);
311 if (gid >= gid_max) return;
315 w0[0] = pws[gid].i[ 0];
316 w0[1] = pws[gid].i[ 1];
317 w0[2] = pws[gid].i[ 2];
318 w0[3] = pws[gid].i[ 3];
341 const u32 pw_len = pws[gid].pw_len;
347 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, bfs_cnt, digests_cnt, digests_offset);
350 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05100_m08 (__global pw_t *pws, __global gpu_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
356 const u32 gid = get_global_id (0);
358 if (gid >= gid_max) return;
362 w0[0] = pws[gid].i[ 0];
363 w0[1] = pws[gid].i[ 1];
364 w0[2] = pws[gid].i[ 2];
365 w0[3] = pws[gid].i[ 3];
369 w1[0] = pws[gid].i[ 4];
370 w1[1] = pws[gid].i[ 5];
371 w1[2] = pws[gid].i[ 6];
372 w1[3] = pws[gid].i[ 7];
388 const u32 pw_len = pws[gid].pw_len;
394 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, bfs_cnt, digests_cnt, digests_offset);
397 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05100_m16 (__global pw_t *pws, __global gpu_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
403 const u32 gid = get_global_id (0);
405 if (gid >= gid_max) return;
409 w0[0] = pws[gid].i[ 0];
410 w0[1] = pws[gid].i[ 1];
411 w0[2] = pws[gid].i[ 2];
412 w0[3] = pws[gid].i[ 3];
416 w1[0] = pws[gid].i[ 4];
417 w1[1] = pws[gid].i[ 5];
418 w1[2] = pws[gid].i[ 6];
419 w1[3] = pws[gid].i[ 7];
423 w2[0] = pws[gid].i[ 8];
424 w2[1] = pws[gid].i[ 9];
425 w2[2] = pws[gid].i[10];
426 w2[3] = pws[gid].i[11];
430 w3[0] = pws[gid].i[12];
431 w3[1] = pws[gid].i[13];
435 const u32 pw_len = pws[gid].pw_len;
441 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, bfs_cnt, digests_cnt, digests_offset);
444 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05100_s04 (__global pw_t *pws, __global gpu_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
450 const u32 gid = get_global_id (0);
452 if (gid >= gid_max) return;
456 w0[0] = pws[gid].i[ 0];
457 w0[1] = pws[gid].i[ 1];
458 w0[2] = pws[gid].i[ 2];
459 w0[3] = pws[gid].i[ 3];
482 const u32 pw_len = pws[gid].pw_len;
488 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, bfs_cnt, digests_cnt, digests_offset);
491 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05100_s08 (__global pw_t *pws, __global gpu_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
497 const u32 gid = get_global_id (0);
499 if (gid >= gid_max) return;
503 w0[0] = pws[gid].i[ 0];
504 w0[1] = pws[gid].i[ 1];
505 w0[2] = pws[gid].i[ 2];
506 w0[3] = pws[gid].i[ 3];
510 w1[0] = pws[gid].i[ 4];
511 w1[1] = pws[gid].i[ 5];
512 w1[2] = pws[gid].i[ 6];
513 w1[3] = pws[gid].i[ 7];
529 const u32 pw_len = pws[gid].pw_len;
535 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, bfs_cnt, digests_cnt, digests_offset);
538 __kernel void __attribute__((reqd_work_group_size (64, 1, 1))) m05100_s16 (__global pw_t *pws, __global gpu_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 bfs_cnt, const u32 digests_cnt, const u32 digests_offset, const u32 combs_mode, const u32 gid_max)
544 const u32 gid = get_global_id (0);
546 if (gid >= gid_max) return;
550 w0[0] = pws[gid].i[ 0];
551 w0[1] = pws[gid].i[ 1];
552 w0[2] = pws[gid].i[ 2];
553 w0[3] = pws[gid].i[ 3];
557 w1[0] = pws[gid].i[ 4];
558 w1[1] = pws[gid].i[ 5];
559 w1[2] = pws[gid].i[ 6];
560 w1[3] = pws[gid].i[ 7];
564 w2[0] = pws[gid].i[ 8];
565 w2[1] = pws[gid].i[ 9];
566 w2[2] = pws[gid].i[10];
567 w2[3] = pws[gid].i[11];
571 w3[0] = pws[gid].i[12];
572 w3[1] = pws[gid].i[13];
576 const u32 pw_len = pws[gid].pw_len;
582 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, bfs_cnt, digests_cnt, digests_offset);