1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-29 19:38:18 +00:00
hashcat/OpenCL/amp_a0.cl

33 lines
719 B
Common Lisp

/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#define XSTR(x) #x
#define STR(x) XSTR(x)
#ifdef KERNEL_STATIC
#include STR(INCLUDE_PATH/inc_vendor.h)
#include STR(INCLUDE_PATH/inc_types.h)
#include STR(INCLUDE_PATH/inc_platform.cl)
#include STR(INCLUDE_PATH/inc_common.cl)
#include STR(INCLUDE_PATH/inc_rp.h)
#include STR(INCLUDE_PATH/inc_rp.cl)
#include STR(INCLUDE_PATH/inc_amp.h)
#endif
KERNEL_FQ void amp (KERN_ATTR_AMP)
{
const u64 gid = get_global_id (0);
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;
}