mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-26 01:50:10 +00:00
more minor formatting
This commit is contained in:
parent
507bba4554
commit
d92acb20cf
@ -116,14 +116,14 @@ DECLSPEC void shift_buffer_by_offset(PRIVATE_AS u32 *w0, const u32 offset)
|
||||
|
||||
DECLSPEC void aes256_scrt_format (PRIVATE_AS u32 *aes_ks, PRIVATE_AS u32 *pw, const u32 pw_len, PRIVATE_AS u32 *hash, PRIVATE_AS u32 *out, SHM_TYPE u32 *s_te0, SHM_TYPE u32 *s_te1, SHM_TYPE u32 *s_te2, SHM_TYPE u32 *s_te3, SHM_TYPE u32 *s_te4)
|
||||
{
|
||||
AES256_set_encrypt_key(aes_ks, hash, s_te0, s_te1, s_te2, s_te3);
|
||||
AES256_set_encrypt_key(aes_ks, hash, s_te0, s_te1, s_te2, s_te3);
|
||||
|
||||
shift_buffer_by_offset(hash, pw_len + 4);
|
||||
|
||||
hash[0] = hc_swap32_S(pw_len);
|
||||
hash[1] |= hc_swap32_S(pw[0]);
|
||||
hash[2] |= hc_swap32_S(pw[1]);
|
||||
hash[3] |= hc_swap32_S(pw[2]);
|
||||
hash[0] = hc_swap32_S(pw_len);
|
||||
hash[1] |= hc_swap32_S(pw[0]);
|
||||
hash[2] |= hc_swap32_S(pw[1]);
|
||||
hash[3] |= hc_swap32_S(pw[2]);
|
||||
|
||||
AES256_encrypt(aes_ks, hash, out, s_te0, s_te1, s_te2, s_te3, s_te4);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user