1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Backport changes to md4_update_vector_utf16le() in -m 1000 to -m 30, -m 40 and -m 70

This commit is contained in:
Jens Steube 2023-02-11 15:59:45 +01:00
parent 730b1cd5cc
commit 57953bec7c
3 changed files with 84 additions and 0 deletions

View File

@ -61,6 +61,20 @@ KERNEL_FQ void m00030_mxx (KERN_ATTR_VECTOR ())
w[0] = w0;
#if VECT_SIZE == 1
md5_ctx_t ctx;
md5_init (&ctx);
md5_update_utf16le (&ctx, w, pw_len);
md5_update (&ctx, s, salt_len);
md5_final (&ctx);
#else
md5_ctx_vector_t ctx;
md5_init_vector (&ctx);
@ -71,6 +85,8 @@ KERNEL_FQ void m00030_mxx (KERN_ATTR_VECTOR ())
md5_final_vector (&ctx);
#endif
const u32x r0 = ctx.h[DGST_R0];
const u32x r1 = ctx.h[DGST_R1];
const u32x r2 = ctx.h[DGST_R2];
@ -139,6 +155,20 @@ KERNEL_FQ void m00030_sxx (KERN_ATTR_VECTOR ())
w[0] = w0;
#if VECT_SIZE == 1
md5_ctx_t ctx;
md5_init (&ctx);
md5_update_utf16le (&ctx, w, pw_len);
md5_update (&ctx, s, salt_len);
md5_final (&ctx);
#else
md5_ctx_vector_t ctx;
md5_init_vector (&ctx);
@ -149,6 +179,8 @@ KERNEL_FQ void m00030_sxx (KERN_ATTR_VECTOR ())
md5_final_vector (&ctx);
#endif
const u32x r0 = ctx.h[DGST_R0];
const u32x r1 = ctx.h[DGST_R1];
const u32x r2 = ctx.h[DGST_R2];

View File

@ -58,6 +58,16 @@ KERNEL_FQ void m00040_mxx (KERN_ATTR_VECTOR ())
w[0] = w0;
#if VECT_SIZE == 1
md5_ctx_t ctx = ctx0;
md5_update_utf16le (&ctx, w, pw_len);
md5_final (&ctx);
#else
md5_ctx_vector_t ctx;
md5_init_vector_from_scalar (&ctx, &ctx0);
@ -66,6 +76,8 @@ KERNEL_FQ void m00040_mxx (KERN_ATTR_VECTOR ())
md5_final_vector (&ctx);
#endif
const u32x r0 = ctx.h[DGST_R0];
const u32x r1 = ctx.h[DGST_R1];
const u32x r2 = ctx.h[DGST_R2];
@ -131,6 +143,16 @@ KERNEL_FQ void m00040_sxx (KERN_ATTR_VECTOR ())
w[0] = w0;
#if VECT_SIZE == 1
md5_ctx_t ctx = ctx0;
md5_update_utf16le (&ctx, w, pw_len);
md5_final (&ctx);
#else
md5_ctx_vector_t ctx;
md5_init_vector_from_scalar (&ctx, &ctx0);
@ -139,6 +161,8 @@ KERNEL_FQ void m00040_sxx (KERN_ATTR_VECTOR ())
md5_final_vector (&ctx);
#endif
const u32x r0 = ctx.h[DGST_R0];
const u32x r1 = ctx.h[DGST_R1];
const u32x r2 = ctx.h[DGST_R2];

View File

@ -52,6 +52,18 @@ KERNEL_FQ void m00070_mxx (KERN_ATTR_VECTOR ())
w[0] = w0;
#if VECT_SIZE == 1
md5_ctx_t ctx;
md5_init (&ctx);
md5_update_utf16le (&ctx, w, pw_len);
md5_final (&ctx);
#else
md5_ctx_vector_t ctx;
md5_init_vector (&ctx);
@ -60,6 +72,8 @@ KERNEL_FQ void m00070_mxx (KERN_ATTR_VECTOR ())
md5_final_vector (&ctx);
#endif
const u32x r0 = ctx.h[DGST_R0];
const u32x r1 = ctx.h[DGST_R1];
const u32x r2 = ctx.h[DGST_R2];
@ -119,6 +133,18 @@ KERNEL_FQ void m00070_sxx (KERN_ATTR_VECTOR ())
w[0] = w0;
#if VECT_SIZE == 1
md5_ctx_t ctx;
md5_init (&ctx);
md5_update_utf16le (&ctx, w, pw_len);
md5_final (&ctx);
#else
md5_ctx_vector_t ctx;
md5_init_vector (&ctx);
@ -127,6 +153,8 @@ KERNEL_FQ void m00070_sxx (KERN_ATTR_VECTOR ())
md5_final_vector (&ctx);
#endif
const u32x r0 = ctx.h[DGST_R0];
const u32x r1 = ctx.h[DGST_R1];
const u32x r2 = ctx.h[DGST_R2];