1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 08:38:09 +00:00
hashcat/OpenCL/amp_a0.cl

28 lines
746 B
Common Lisp
Raw Normal View History

2015-12-04 14:47:52 +00:00
/**
* Author......: See docs/credits.txt
2015-12-04 14:47:52 +00:00
* License.....: MIT
*/
#ifdef KERNEL_STATIC
#include "inc_vendor.h"
#include "inc_types.h"
2019-03-22 14:44:21 +00:00
#include "inc_common.cl"
#include "inc_rp.h"
#include "inc_rp.cl"
#endif
2015-12-04 14:47:52 +00:00
KERNEL_FQ void amp (GLOBAL_AS pw_t * restrict pws, GLOBAL_AS pw_t * restrict pws_amp, CONSTANT_AS const kernel_rule_t * restrict rules_buf, GLOBAL_AS const pw_t * restrict combs_buf, GLOBAL_AS const bf_t * restrict bfs_buf, const u32 combs_mode, const u64 gid_max)
2015-12-04 14:47:52 +00:00
{
const u64 gid = get_global_id (0);
2015-12-04 14:47:52 +00:00
if (gid >= gid_max) return;
if (rules_buf[0].cmds[0] == RULE_OP_MANGLE_NOOP && rules_buf[0].cmds[1] == 0) return;
pw_t pw = pws_amp[gid];
pw.pw_len = apply_rules (rules_buf[0].cmds, pw.i, pw.pw_len);
pws[gid] = pw;
2015-12-04 14:47:52 +00:00
}