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

add comments to unused code, fixed test file

This commit is contained in:
Gabriele Gristina 2020-12-10 02:34:09 +01:00
parent 15bf8b7302
commit f46c23d792
4 changed files with 14 additions and 13 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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
{