diff --git a/OpenCL/m27200_a0-pure.cl b/OpenCL/m27200_a0-pure.cl index 2dcc9c510..c5ec0c903 100644 --- a/OpenCL/m27200_a0-pure.cl +++ b/OpenCL/m27200_a0-pure.cl @@ -39,9 +39,9 @@ KERNEL_FQ void m27200_mxx (KERN_ATTR_RULES ()) sha1_init (&ctx0); - sha1_update_global (&ctx0, dash, 2); + sha1_update (&ctx0, dash, 2); sha1_update_global_swap (&ctx0, salt_bufs[SALT_POS].salt_buf, salt_bufs[SALT_POS].salt_len); - sha1_update_global (&ctx0, dash, 2); + sha1_update (&ctx0, dash, 2); /** * loop @@ -103,9 +103,9 @@ KERNEL_FQ void m27200_sxx (KERN_ATTR_RULES ()) sha1_init (&ctx0); - sha1_update_global (&ctx0, dash, 2); + sha1_update (&ctx0, dash, 2); sha1_update_global_swap (&ctx0, salt_bufs[SALT_POS].salt_buf, salt_bufs[SALT_POS].salt_len); - sha1_update_global (&ctx0, dash, 2); + sha1_update (&ctx0, dash, 2); /** * loop diff --git a/OpenCL/m27200_a1-pure.cl b/OpenCL/m27200_a1-pure.cl index 9a226405a..726498260 100644 --- a/OpenCL/m27200_a1-pure.cl +++ b/OpenCL/m27200_a1-pure.cl @@ -35,9 +35,9 @@ KERNEL_FQ void m27200_mxx (KERN_ATTR_BASIC ()) sha1_init (&ctx0); - sha1_update_global (&ctx0, dash, 2); + sha1_update (&ctx0, dash, 2); sha1_update_global_swap (&ctx0, salt_bufs[SALT_POS].salt_buf, salt_bufs[SALT_POS].salt_len); - sha1_update_global (&ctx0, dash, 2); + sha1_update (&ctx0, dash, 2); sha1_update_global_swap (&ctx0, pws[gid].i, pws[gid].pw_len); @@ -50,7 +50,7 @@ KERNEL_FQ void m27200_mxx (KERN_ATTR_BASIC ()) sha1_ctx_t ctx = ctx0; sha1_update_global_swap (&ctx, combs_buf[il_pos].i, combs_buf[il_pos].pw_len); - sha1_update_global (&ctx, dash, 2); + sha1_update (&ctx, dash, 2); sha1_final (&ctx); const u32 r0 = ctx.h[DGST_R0]; @@ -95,9 +95,9 @@ KERNEL_FQ void m27200_sxx (KERN_ATTR_BASIC ()) sha1_init (&ctx0); - sha1_update_global (&ctx0, dash, 2); + sha1_update (&ctx0, dash, 2); sha1_update_global_swap (&ctx0, salt_bufs[SALT_POS].salt_buf, salt_bufs[SALT_POS].salt_len); - sha1_update_global (&ctx0, dash, 2); + sha1_update (&ctx0, dash, 2); sha1_update_global_swap (&ctx0, pws[gid].i, pws[gid].pw_len); @@ -110,7 +110,7 @@ KERNEL_FQ void m27200_sxx (KERN_ATTR_BASIC ()) sha1_ctx_t ctx = ctx0; sha1_update_global_swap (&ctx, combs_buf[il_pos].i, combs_buf[il_pos].pw_len); - sha1_update_global (&ctx, dash, 2); + sha1_update (&ctx, dash, 2); sha1_final (&ctx); const u32 r0 = ctx.h[DGST_R0]; diff --git a/OpenCL/m27200_a3-pure.cl b/OpenCL/m27200_a3-pure.cl index 867c7572a..081cbdf76 100644 --- a/OpenCL/m27200_a3-pure.cl +++ b/OpenCL/m27200_a3-pure.cl @@ -44,9 +44,9 @@ KERNEL_FQ void m27200_mxx (KERN_ATTR_VECTOR ()) sha1_init (&ctx0); - sha1_update_global (&ctx0, dash, 2); + sha1_update (&ctx0, dash, 2); sha1_update_global_swap (&ctx0, salt_bufs[SALT_POS].salt_buf, salt_bufs[SALT_POS].salt_len); - sha1_update_global (&ctx0, dash, 2); + sha1_update (&ctx0, dash, 2); /** * loop @@ -122,9 +122,9 @@ KERNEL_FQ void m27200_sxx (KERN_ATTR_VECTOR ()) sha1_init (&ctx0); - sha1_update_global (&ctx0, dash, 2); + sha1_update (&ctx0, dash, 2); sha1_update_global_swap (&ctx0, salt_bufs[SALT_POS].salt_buf, salt_bufs[SALT_POS].salt_len); - sha1_update_global (&ctx0, dash, 2); + sha1_update (&ctx0, dash, 2); /** * loop diff --git a/src/modules/module_27200.c b/src/modules/module_27200.c index d1eb27147..7c5d785d1 100644 --- a/src/modules/module_27200.c +++ b/src/modules/module_27200.c @@ -89,7 +89,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE token.len_min[1] = 40; token.len_max[1] = 40; - token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH; + token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH + | TOKEN_ATTR_VERIFY_HEX; const int rc_tokenizer = input_tokenizer ((const u8 *) line_buf, line_len, &token);