diff options
author | Malfurious <m@lfurio.us> | 2020-07-12 23:07:30 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2020-07-12 23:07:30 -0400 |
commit | 74ebac726bb5adb6eb82844d3d88ed7d46962fc8 (patch) | |
tree | 56835fb99220ffc0cf009c24a53608da4b3403a1 | |
parent | c8c797f936d613739d16f08352c6baa5328ecf96 (diff) | |
download | compass-74ebac726bb5adb6eb82844d3d88ed7d46962fc8.tar.gz compass-74ebac726bb5adb6eb82844d3d88ed7d46962fc8.zip |
Fix integer truncation error in Crypto++ library
-rw-r--r-- | cryptopp562/wake.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptopp562/wake.cpp b/cryptopp562/wake.cpp index c34165b..ff40b05 100644 --- a/cryptopp562/wake.cpp +++ b/cryptopp562/wake.cpp @@ -23,7 +23,7 @@ void WAKE_Base::GenKey(word32 k0, word32 k1, word32 k2, word32 k3) signed int x, z, p; // x and z were declared as "long" in Wheeler's paper, which is a signed type. I don't know if that was intentional, but it's too late to change it now. -- Wei 7/4/2010 CRYPTOPP_COMPILE_ASSERT(sizeof(x) == 4); - static int tt[10]= { + static long long int tt[10]= { 0x726a8f3b, // table 0xe69a3b5c, 0xd3c71fe5, |