summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2020-07-12 23:07:30 -0400
committerMalfurious <m@lfurio.us>2020-07-12 23:07:30 -0400
commit74ebac726bb5adb6eb82844d3d88ed7d46962fc8 (patch)
tree56835fb99220ffc0cf009c24a53608da4b3403a1
parentc8c797f936d613739d16f08352c6baa5328ecf96 (diff)
downloadcompass-74ebac726bb5adb6eb82844d3d88ed7d46962fc8.tar.gz
compass-74ebac726bb5adb6eb82844d3d88ed7d46962fc8.zip
Fix integer truncation error in Crypto++ library
-rw-r--r--cryptopp562/wake.cpp2
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,