diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-04-22 13:07:54 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-04-22 13:07:54 -0400 |
commit | 643348f7590bcd041f13282d70f6d656df492c7f (patch) | |
tree | a36e1c2c19ca8b4a02a38002c9524bde977a9399 /lsh512.cpp | |
parent | 3aaba1e63e0e3f52c35cf750ae531dad40be44ee (diff) | |
download | cryptopp-git-643348f7590bcd041f13282d70f6d656df492c7f.tar.gz |
Update LSH
Diffstat (limited to 'lsh512.cpp')
-rw-r--r-- | lsh512.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -145,7 +145,7 @@ const unsigned int LSH512_HASH_VAL_MAX_BYTE_LEN = 64; // const unsigned int MSG_BLK_WORD_LEN = 32;
const unsigned int CV_WORD_LEN = 16;
-// const unsigned int CONST_WORD_LEN = 8;
+const unsigned int CONST_WORD_LEN = 8;
const unsigned int HASH_VAL_MAX_WORD_LEN = 8;
const unsigned int NUM_STEPS = 28;
@@ -244,7 +244,7 @@ MAYBE_CONSTEXPR lsh_uint g_gamma512[8] = { 0, 16, 32, 48, 8, 24, 40, 56 }; * LSH: step constants
* -------------------------------------------------------- */
-MAYBE_CONSTEXPR lsh_u64 g_StepConstants[16 * NUM_STEPS] = {
+MAYBE_CONSTEXPR lsh_u64 g_StepConstants[CONST_WORD_LEN * NUM_STEPS] = {
W64LIT(0x97884283c938982a), W64LIT(0xba1fca93533e2355), W64LIT(0xc519a2e87aeb1c03), W64LIT(0x9a0fc95462af17b1),
W64LIT(0xfc3dda8ab019a82b), W64LIT(0x02825d079a895407), W64LIT(0x79f2d0a7ee06a6f7), W64LIT(0xd76d15eed9fdf5fe),
W64LIT(0x1fcac64d01d0c2c1), W64LIT(0xd9ea5de69161790f), W64LIT(0xdebc8b6366071fc8), W64LIT(0xa9d91db711c6c94b),
|