mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-26 01:50:10 +00:00
Add salt type 2 support for optimized functions
This commit is contained in:
parent
a913db6390
commit
bb9328f48b
@ -373,6 +373,22 @@ __kernel void m16600_m04 (KERN_ATTR_RULES_ESALT (electrum_wallet_t))
|
||||
mark_hash (plains_buf, d_return_buf, salt_pos, digests_cnt, 0, digests_offset + 0, gid, il_pos);
|
||||
}
|
||||
}
|
||||
|
||||
if (esalt_bufs[digests_offset].salt_type == 2)
|
||||
{
|
||||
if ((u8) (out[0] >> 0) != 'x') continue;
|
||||
if ((u8) (out[0] >> 8) != 'p') continue;
|
||||
if ((u8) (out[0] >> 16) != 'r') continue;
|
||||
if ((u8) (out[0] >> 24) != 'v') continue;
|
||||
if (is_valid_base58_32 (out[1]) == 0) continue;
|
||||
if (is_valid_base58_32 (out[2]) == 0) continue;
|
||||
if (is_valid_base58_32 (out[3]) == 0) continue;
|
||||
|
||||
if (atomic_inc (&hashes_shown[digests_offset]) == 0)
|
||||
{
|
||||
mark_hash (plains_buf, d_return_buf, salt_pos, digests_cnt, 0, digests_offset + 0, gid, il_pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -742,6 +758,22 @@ __kernel void m16600_s04 (KERN_ATTR_RULES_ESALT (electrum_wallet_t))
|
||||
mark_hash (plains_buf, d_return_buf, salt_pos, digests_cnt, 0, digests_offset + 0, gid, il_pos);
|
||||
}
|
||||
}
|
||||
|
||||
if (esalt_bufs[digests_offset].salt_type == 2)
|
||||
{
|
||||
if ((u8) (out[0] >> 0) != 'x') continue;
|
||||
if ((u8) (out[0] >> 8) != 'p') continue;
|
||||
if ((u8) (out[0] >> 16) != 'r') continue;
|
||||
if ((u8) (out[0] >> 24) != 'v') continue;
|
||||
if (is_valid_base58_32 (out[1]) == 0) continue;
|
||||
if (is_valid_base58_32 (out[2]) == 0) continue;
|
||||
if (is_valid_base58_32 (out[3]) == 0) continue;
|
||||
|
||||
if (atomic_inc (&hashes_shown[digests_offset]) == 0)
|
||||
{
|
||||
mark_hash (plains_buf, d_return_buf, salt_pos, digests_cnt, 0, digests_offset + 0, gid, il_pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -429,6 +429,22 @@ __kernel void m16600_m04 (KERN_ATTR_ESALT (electrum_wallet_t))
|
||||
mark_hash (plains_buf, d_return_buf, salt_pos, digests_cnt, 0, digests_offset + 0, gid, il_pos);
|
||||
}
|
||||
}
|
||||
|
||||
if (esalt_bufs[digests_offset].salt_type == 2)
|
||||
{
|
||||
if ((u8) (out[0] >> 0) != 'x') continue;
|
||||
if ((u8) (out[0] >> 8) != 'p') continue;
|
||||
if ((u8) (out[0] >> 16) != 'r') continue;
|
||||
if ((u8) (out[0] >> 24) != 'v') continue;
|
||||
if (is_valid_base58_32 (out[1]) == 0) continue;
|
||||
if (is_valid_base58_32 (out[2]) == 0) continue;
|
||||
if (is_valid_base58_32 (out[3]) == 0) continue;
|
||||
|
||||
if (atomic_inc (&hashes_shown[digests_offset]) == 0)
|
||||
{
|
||||
mark_hash (plains_buf, d_return_buf, salt_pos, digests_cnt, 0, digests_offset + 0, gid, il_pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -856,6 +872,22 @@ __kernel void m16600_s04 (KERN_ATTR_ESALT (electrum_wallet_t))
|
||||
mark_hash (plains_buf, d_return_buf, salt_pos, digests_cnt, 0, digests_offset + 0, gid, il_pos);
|
||||
}
|
||||
}
|
||||
|
||||
if (esalt_bufs[digests_offset].salt_type == 2)
|
||||
{
|
||||
if ((u8) (out[0] >> 0) != 'x') continue;
|
||||
if ((u8) (out[0] >> 8) != 'p') continue;
|
||||
if ((u8) (out[0] >> 16) != 'r') continue;
|
||||
if ((u8) (out[0] >> 24) != 'v') continue;
|
||||
if (is_valid_base58_32 (out[1]) == 0) continue;
|
||||
if (is_valid_base58_32 (out[2]) == 0) continue;
|
||||
if (is_valid_base58_32 (out[3]) == 0) continue;
|
||||
|
||||
if (atomic_inc (&hashes_shown[digests_offset]) == 0)
|
||||
{
|
||||
mark_hash (plains_buf, d_return_buf, salt_pos, digests_cnt, 0, digests_offset + 0, gid, il_pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -291,6 +291,22 @@ DECLSPEC void m16600 (SHM_TYPE u32a *s_te0, SHM_TYPE u32a *s_te1, SHM_TYPE u32a
|
||||
mark_hash (plains_buf, d_return_buf, salt_pos, digests_cnt, 0, digests_offset + 0, gid, il_pos);
|
||||
}
|
||||
}
|
||||
|
||||
if (esalt_bufs[digests_offset].salt_type == 2)
|
||||
{
|
||||
if ((u8) (out[0] >> 0) != 'x') continue;
|
||||
if ((u8) (out[0] >> 8) != 'p') continue;
|
||||
if ((u8) (out[0] >> 16) != 'r') continue;
|
||||
if ((u8) (out[0] >> 24) != 'v') continue;
|
||||
if (is_valid_base58_32 (out[1]) == 0) continue;
|
||||
if (is_valid_base58_32 (out[2]) == 0) continue;
|
||||
if (is_valid_base58_32 (out[3]) == 0) continue;
|
||||
|
||||
if (atomic_inc (&hashes_shown[digests_offset]) == 0)
|
||||
{
|
||||
mark_hash (plains_buf, d_return_buf, salt_pos, digests_cnt, 0, digests_offset + 0, gid, il_pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user