Update based on review recommendations

This commit is contained in:
therealartifex
2021-08-05 16:56:08 -04:00
parent 9a7a9f66ef
commit 4448ea0f58
4 changed files with 16 additions and 15 deletions
+4 -4
View File
@@ -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
+6 -6
View File
@@ -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];
+4 -4
View File
@@ -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