From 74ebac726bb5adb6eb82844d3d88ed7d46962fc8 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sun, 12 Jul 2020 23:07:30 -0400 Subject: Fix integer truncation error in Crypto++ library --- cryptopp562/wake.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3