add comments to unused code, fixed test file

pull/2638/head
Gabriele Gristina 3 years ago
parent 15bf8b7302
commit f46c23d792

@ -381,7 +381,7 @@ KERNEL_FQ void m20710_m04 (KERN_ATTR_RULES ())
wf_t = salt_buf3[3];
// sha256_update_64: pos 0
/*
if (salt_len == 64)
{
// sha256 transform
@ -489,7 +489,7 @@ KERNEL_FQ void m20710_m04 (KERN_ATTR_RULES ())
we_t = 0;
wf_t = 0;
}
*/
const int ctx_len = 64 + salt_len;
const int pos = ctx_len & 63;
@ -1087,7 +1087,7 @@ KERNEL_FQ void m20710_s04 (KERN_ATTR_RULES ())
wf_t = salt_buf3[3];
// sha256_update_64: pos 0
/*
if (salt_len == 64)
{
// sha256 transform
@ -1195,7 +1195,7 @@ KERNEL_FQ void m20710_s04 (KERN_ATTR_RULES ())
we_t = 0;
wf_t = 0;
}
*/
const int ctx_len = 64 + salt_len;
const int pos = ctx_len & 63;

@ -437,7 +437,7 @@ KERNEL_FQ void m20710_m04 (KERN_ATTR_BASIC ())
wf_t = salt_buf3[3];
// sha256_update_64: pos 0
/*
if (salt_len == 64)
{
// sha256 transform
@ -545,7 +545,7 @@ KERNEL_FQ void m20710_m04 (KERN_ATTR_BASIC ())
we_t = 0;
wf_t = 0;
}
*/
const int ctx_len = 64 + salt_len;
const int pos = ctx_len & 63;
@ -1201,7 +1201,7 @@ KERNEL_FQ void m20710_s04 (KERN_ATTR_BASIC ())
wf_t = salt_buf3[3];
// sha256_update_64: pos 0
/*
if (salt_len == 64)
{
// sha256 transform
@ -1309,7 +1309,7 @@ KERNEL_FQ void m20710_s04 (KERN_ATTR_BASIC ())
we_t = 0;
wf_t = 0;
}
*/
const int ctx_len = 64 + salt_len;
const int pos = ctx_len & 63;

@ -338,7 +338,7 @@ DECLSPEC void m20710m (u32 *w, const u32 pw_len, KERN_ATTR_VECTOR (), LOCAL_AS u
wf_t = salt_buf3[3];
// sha256_update_64: pos 0
/*
if (salt_len == 64)
{
// sha256 transform
@ -446,7 +446,7 @@ DECLSPEC void m20710m (u32 *w, const u32 pw_len, KERN_ATTR_VECTOR (), LOCAL_AS u
we_t = 0;
wf_t = 0;
}
*/
const int ctx_len = 64 + salt_len;
const int pos = ctx_len & 63;
@ -995,7 +995,7 @@ DECLSPEC void m20710s (u32 *w, const u32 pw_len, KERN_ATTR_VECTOR (), LOCAL_AS u
wf_t = salt_buf3[3];
// sha256_update_64: pos 0
/*
if (salt_len == 64)
{
// sha256 transform
@ -1103,7 +1103,7 @@ DECLSPEC void m20710s (u32 *w, const u32 pw_len, KERN_ATTR_VECTOR (), LOCAL_AS u
we_t = 0;
wf_t = 0;
}
*/
const int ctx_len = 64 + salt_len;
const int pos = ctx_len & 63;

@ -10,7 +10,8 @@ use warnings;
use Digest::SHA qw (sha256_hex);
sub module_constraints { [[0, 256], [0, 256], [0, 55], [16, 16], [-1, -1]] }
#sub module_constraints { [[0, 256], [0, 256], [0, 55], [16, 16], [-1, -1]] }
sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 51], [-1, -1]] }
sub module_generate_hash
{

Loading…
Cancel
Save