1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 07:08:19 +00:00

Use apply_rules_vect_optimized() instead of apply_rules_vect() in -m 15400

This commit is contained in:
jsteube 2019-03-27 11:17:30 +01:00
parent 19a77c59f9
commit 2f972c0d36

View File

@ -213,9 +213,12 @@ KERNEL_FQ void m15400_m04 (KERN_ATTR_RULES_ESALT (chacha20_t))
* modifier * modifier
*/ */
const u64 gid = get_global_id (0);
const u64 lid = get_local_id (0); const u64 lid = get_local_id (0);
const u64 gid = get_global_id (0);
if (gid >= gid_max) return;
u32 pw_buf0[4]; u32 pw_buf0[4];
u32 pw_buf1[4]; u32 pw_buf1[4];
@ -259,7 +262,7 @@ KERNEL_FQ void m15400_m04 (KERN_ATTR_RULES_ESALT (chacha20_t))
u32x w0[4] = { 0 }; u32x w0[4] = { 0 };
u32x w1[4] = { 0 }; u32x w1[4] = { 0 };
const u32x out_len = apply_rules_vect(pw_buf0, pw_buf1, pw_len, rules_buf, il_pos, w0, w1); const u32x out_len = apply_rules_vect_optimized (pw_buf0, pw_buf1, pw_len, rules_buf, il_pos, w0, w1);
u32x digest[4] = { 0 }; u32x digest[4] = { 0 };
@ -349,7 +352,7 @@ KERNEL_FQ void m15400_s04 (KERN_ATTR_RULES_ESALT (chacha20_t))
u32x w0[4] = { 0 }; u32x w0[4] = { 0 };
u32x w1[4] = { 0 }; u32x w1[4] = { 0 };
const u32x out_len = apply_rules_vect(pw_buf0, pw_buf1, pw_len, rules_buf, il_pos, w0, w1); const u32x out_len = apply_rules_vect_optimized (pw_buf0, pw_buf1, pw_len, rules_buf, il_pos, w0, w1);
u32x digest[4] = { 0 }; u32x digest[4] = { 0 };