From 5caf32447e08c88ceb55841845d3ce3575bddeb4 Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 19 Jul 2016 21:07:30 +0200 Subject: [PATCH] Some experiment. This should increase rule-based cracking on nvidia slightly --- OpenCL/inc_rp.cl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/OpenCL/inc_rp.cl b/OpenCL/inc_rp.cl index 3a93e199c..4d2d22c2d 100644 --- a/OpenCL/inc_rp.cl +++ b/OpenCL/inc_rp.cl @@ -5,6 +5,16 @@ * License.....: MIT */ +#define DO_NOT_USE_BYTE_PERM + +#ifdef DO_NOT_USE_BYTE_PERM +#ifdef IS_NV +#undef IS_NV +#define IS_GENERIC +#define RESTORE_NV +#endif +#endif + inline u32 apply_rule (const u32 name, const u32 p0, const u32 p1, u32 buf0[4], u32 buf1[4], const u32 in_len); inline u32 apply_rules (const __global u32 *cmds, u32 buf0[4], u32 buf1[4], const u32 len); inline u32x apply_rules_vect (const u32 pw_buf0[4], const u32 pw_buf1[4], const u32 pw_len, const __global kernel_rule_t *rules_buf, const u32 il_pos, u32x w0[4], u32x w1[4]); @@ -4355,3 +4365,11 @@ inline u32x apply_rules_vect (const u32 pw_buf0[4], const u32 pw_buf1[4], const #endif } + +#ifdef DO_NOT_USE_BYTE_PERM +#ifdef RESTORE_NV +#undef RESTORE_NV +#undef IS_GENERIC +#define IS_NV +#endif +#endif