mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-22 22:58:30 +00:00
60 lines
1.5 KiB
C
60 lines
1.5 KiB
C
if ((r0.x == search[0])
|
|
&& (r1.x == search[1])
|
|
&& (r2.x == search[2])
|
|
&& (r3.x == search[3]))
|
|
{
|
|
const u32 final_hash_pos = digests_offset + 0;
|
|
|
|
if ((atomicAdd (&hashes_shown[final_hash_pos], 1) == 0) && (check_vector_accessible (il_pos, bf_loops, bfs_cnt, 0) == 1))
|
|
{
|
|
mark_hash_s0_warp (plains_buf, hashes_shown, final_hash_pos, gid, il_pos);
|
|
|
|
d_return_buf[lid] = 1;
|
|
}
|
|
}
|
|
|
|
if ((r0.y == search[0])
|
|
&& (r1.y == search[1])
|
|
&& (r2.y == search[2])
|
|
&& (r3.y == search[3]))
|
|
{
|
|
const u32 final_hash_pos = digests_offset + 0;
|
|
|
|
if ((atomicAdd (&hashes_shown[final_hash_pos], 1) == 0) && (check_vector_accessible (il_pos, bf_loops, bfs_cnt, 1) == 1))
|
|
{
|
|
mark_hash_s1_warp (plains_buf, hashes_shown, final_hash_pos, gid, il_pos);
|
|
|
|
d_return_buf[lid] = 1;
|
|
}
|
|
}
|
|
|
|
if ((r0.z == search[0])
|
|
&& (r1.z == search[1])
|
|
&& (r2.z == search[2])
|
|
&& (r3.z == search[3]))
|
|
{
|
|
const u32 final_hash_pos = digests_offset + 0;
|
|
|
|
if ((atomicAdd (&hashes_shown[final_hash_pos], 1) == 0) && (check_vector_accessible (il_pos, bf_loops, bfs_cnt, 2) == 1))
|
|
{
|
|
mark_hash_s2_warp (plains_buf, hashes_shown, final_hash_pos, gid, il_pos);
|
|
|
|
d_return_buf[lid] = 1;
|
|
}
|
|
}
|
|
|
|
if ((r0.w == search[0])
|
|
&& (r1.w == search[1])
|
|
&& (r2.w == search[2])
|
|
&& (r3.w == search[3]))
|
|
{
|
|
const u32 final_hash_pos = digests_offset + 0;
|
|
|
|
if ((atomicAdd (&hashes_shown[final_hash_pos], 1) == 0) && (check_vector_accessible (il_pos, bf_loops, bfs_cnt, 3) == 1))
|
|
{
|
|
mark_hash_s3_warp (plains_buf, hashes_shown, final_hash_pos, gid, il_pos);
|
|
|
|
d_return_buf[lid] = 1;
|
|
}
|
|
}
|