mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-22 22:58:30 +00:00
60 lines
1.3 KiB
C
60 lines
1.3 KiB
C
if ((r0.s0 == search[0])
|
|
&& (r1.s0 == search[1])
|
|
&& (r2.s0 == search[2])
|
|
&& (r3.s0 == search[3]))
|
|
{
|
|
const u32 final_hash_pos = digests_offset + 0;
|
|
|
|
if (atomic_add (&hashes_shown[final_hash_pos], 1) == 0)
|
|
{
|
|
mark_hash_s0 (plains_buf, hashes_shown, final_hash_pos, gid, il_pos);
|
|
|
|
d_return_buf[lid] = 1;
|
|
}
|
|
}
|
|
|
|
if ((r0.s1 == search[0])
|
|
&& (r1.s1 == search[1])
|
|
&& (r2.s1 == search[2])
|
|
&& (r3.s1 == search[3]))
|
|
{
|
|
const u32 final_hash_pos = digests_offset + 0;
|
|
|
|
if (atomic_add (&hashes_shown[final_hash_pos], 1) == 0)
|
|
{
|
|
mark_hash_s1 (plains_buf, hashes_shown, final_hash_pos, gid, il_pos);
|
|
|
|
d_return_buf[lid] = 1;
|
|
}
|
|
}
|
|
|
|
if ((r0.s2 == search[0])
|
|
&& (r1.s2 == search[1])
|
|
&& (r2.s2 == search[2])
|
|
&& (r3.s2 == search[3]))
|
|
{
|
|
const u32 final_hash_pos = digests_offset + 0;
|
|
|
|
if (atomic_add (&hashes_shown[final_hash_pos], 1) == 0)
|
|
{
|
|
mark_hash_s2 (plains_buf, hashes_shown, final_hash_pos, gid, il_pos);
|
|
|
|
d_return_buf[lid] = 1;
|
|
}
|
|
}
|
|
|
|
if ((r0.s3 == search[0])
|
|
&& (r1.s3 == search[1])
|
|
&& (r2.s3 == search[2])
|
|
&& (r3.s3 == search[3]))
|
|
{
|
|
const u32 final_hash_pos = digests_offset + 0;
|
|
|
|
if (atomic_add (&hashes_shown[final_hash_pos], 1) == 0)
|
|
{
|
|
mark_hash_s3 (plains_buf, hashes_shown, final_hash_pos, gid, il_pos);
|
|
|
|
d_return_buf[lid] = 1;
|
|
}
|
|
}
|