mirror of https://github.com/hashcat/hashcat.git
* Added more preparations to support to crack passwords and salts up to length 256 * Added option --length-limit-disable to disable optimization based on password- and salt-length * Added option --self-test-disable to disable self-test functionality on startuppull/1288/head
parent
6fb79b726c
commit
f7a8e7c54b
@ -0,0 +1,42 @@
|
||||
/**
|
||||
* Author......: See docs/credits.txt
|
||||
* License.....: MIT
|
||||
*/
|
||||
|
||||
#define COMPARE_S_SCALAR(h0,h1,h2,h3) \
|
||||
{ \
|
||||
if (((h0) == search[0]) && ((h1) == search[1]) && ((h2) == search[2]) && ((h3) == search[3])) \
|
||||
{ \
|
||||
const u32 final_hash_pos = digests_offset + 0; \
|
||||
\
|
||||
if (atomic_inc (&hashes_shown[final_hash_pos]) == 0) \
|
||||
{ \
|
||||
mark_hash (plains_buf, d_return_buf, salt_pos, digests_cnt, 0, final_hash_pos, gid, il_pos); \
|
||||
} \
|
||||
} \
|
||||
}
|
||||
|
||||
#define COMPARE_M_SCALAR(h0,h1,h2,h3) \
|
||||
{ \
|
||||
const u32 digest_tp0[4] = { h0, h1, h2, h3 }; \
|
||||
\
|
||||
if (check (digest_tp0, \
|
||||
bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, \
|
||||
bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, \
|
||||
bitmap_mask, \
|
||||
bitmap_shift1, \
|
||||
bitmap_shift2)) \
|
||||
{ \
|
||||
int digest_pos = find_hash (digest_tp0, digests_cnt, &digests_buf[digests_offset]); \
|
||||
\
|
||||
if (digest_pos != -1) \
|
||||
{ \
|
||||
const u32 final_hash_pos = digests_offset + digest_pos; \
|
||||
\
|
||||
if (atomic_inc (&hashes_shown[final_hash_pos]) == 0) \
|
||||
{ \
|
||||
mark_hash (plains_buf, d_return_buf, salt_pos, digests_cnt, digest_pos, final_hash_pos, gid, il_pos); \
|
||||
} \
|
||||
} \
|
||||
} \
|
||||
}
|
Loading…
Reference in new issue