mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
Fix UTF8 to UTF16 conversion in -m 1000 -a 3 kernels for non SIMD compute devices
This commit is contained in:
parent
1c55ee222c
commit
86f3e1f5b8
@ -52,6 +52,18 @@ KERNEL_FQ void m01000_mxx (KERN_ATTR_VECTOR ())
|
|||||||
|
|
||||||
w[0] = w0;
|
w[0] = w0;
|
||||||
|
|
||||||
|
#if VECT_SIZE == 1
|
||||||
|
|
||||||
|
md4_ctx_t ctx;
|
||||||
|
|
||||||
|
md4_init (&ctx);
|
||||||
|
|
||||||
|
md4_update_utf16le (&ctx, w, pw_len);
|
||||||
|
|
||||||
|
md4_final (&ctx);
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
md4_ctx_vector_t ctx;
|
md4_ctx_vector_t ctx;
|
||||||
|
|
||||||
md4_init_vector (&ctx);
|
md4_init_vector (&ctx);
|
||||||
@ -60,6 +72,8 @@ KERNEL_FQ void m01000_mxx (KERN_ATTR_VECTOR ())
|
|||||||
|
|
||||||
md4_final_vector (&ctx);
|
md4_final_vector (&ctx);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
const u32x r0 = ctx.h[DGST_R0];
|
const u32x r0 = ctx.h[DGST_R0];
|
||||||
const u32x r1 = ctx.h[DGST_R1];
|
const u32x r1 = ctx.h[DGST_R1];
|
||||||
const u32x r2 = ctx.h[DGST_R2];
|
const u32x r2 = ctx.h[DGST_R2];
|
||||||
@ -119,6 +133,18 @@ KERNEL_FQ void m01000_sxx (KERN_ATTR_VECTOR ())
|
|||||||
|
|
||||||
w[0] = w0;
|
w[0] = w0;
|
||||||
|
|
||||||
|
#if VECT_SIZE == 1
|
||||||
|
|
||||||
|
md4_ctx_t ctx;
|
||||||
|
|
||||||
|
md4_init (&ctx);
|
||||||
|
|
||||||
|
md4_update_utf16le (&ctx, w, pw_len);
|
||||||
|
|
||||||
|
md4_final (&ctx);
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
md4_ctx_vector_t ctx;
|
md4_ctx_vector_t ctx;
|
||||||
|
|
||||||
md4_init_vector (&ctx);
|
md4_init_vector (&ctx);
|
||||||
@ -127,6 +153,8 @@ KERNEL_FQ void m01000_sxx (KERN_ATTR_VECTOR ())
|
|||||||
|
|
||||||
md4_final_vector (&ctx);
|
md4_final_vector (&ctx);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
const u32x r0 = ctx.h[DGST_R0];
|
const u32x r0 = ctx.h[DGST_R0];
|
||||||
const u32x r1 = ctx.h[DGST_R1];
|
const u32x r1 = ctx.h[DGST_R1];
|
||||||
const u32x r2 = ctx.h[DGST_R2];
|
const u32x r2 = ctx.h[DGST_R2];
|
||||||
|
Loading…
Reference in New Issue
Block a user