mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-27 00:48:13 +00:00
Remove some redundant constants
This commit is contained in:
parent
9b1e66d87c
commit
088c45040b
@ -6,14 +6,4 @@
|
|||||||
#ifndef _CPU_BLAKE2_H
|
#ifndef _CPU_BLAKE2_H
|
||||||
#define _CPU_BLAKE2_H
|
#define _CPU_BLAKE2_H
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
const u64 blake2b_IV[8] =
|
|
||||||
{
|
|
||||||
0x6a09e667f3bcc908, 0xbb67ae8584caa73b,
|
|
||||||
0x3c6ef372fe94f82b, 0xa54ff53a5f1d36f1,
|
|
||||||
0x510e527fade682d1, 0x9b05688c2b3e6c1f,
|
|
||||||
0x1f83d9abfb41bd6b, 0x5be0cd19137e2179
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // _CPU_BLAKE2_H
|
#endif // _CPU_BLAKE2_H
|
||||||
|
@ -5815,14 +5815,14 @@ int blake2b_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UN
|
|||||||
|
|
||||||
memset(S, 0, sizeof (blake2_t));
|
memset(S, 0, sizeof (blake2_t));
|
||||||
|
|
||||||
S->h[0] = blake2b_IV[0];
|
S->h[0] = BLAKE2B_IV_00;
|
||||||
S->h[1] = blake2b_IV[1];
|
S->h[1] = BLAKE2B_IV_01;
|
||||||
S->h[2] = blake2b_IV[2];
|
S->h[2] = BLAKE2B_IV_02;
|
||||||
S->h[3] = blake2b_IV[3];
|
S->h[3] = BLAKE2B_IV_03;
|
||||||
S->h[4] = blake2b_IV[4];
|
S->h[4] = BLAKE2B_IV_04;
|
||||||
S->h[5] = blake2b_IV[5];
|
S->h[5] = BLAKE2B_IV_05;
|
||||||
S->h[6] = blake2b_IV[6];
|
S->h[6] = BLAKE2B_IV_06;
|
||||||
S->h[7] = blake2b_IV[7];
|
S->h[7] = BLAKE2B_IV_07;
|
||||||
|
|
||||||
// S->h[0] ^= 0x0000000001010040; // digest_lenght = 0x40, depth = 0x01, fanout = 0x01
|
// S->h[0] ^= 0x0000000001010040; // digest_lenght = 0x40, depth = 0x01, fanout = 0x01
|
||||||
S->h[0] ^= 0x40 << 0;
|
S->h[0] ^= 0x40 << 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user