summaryrefslogtreecommitdiff
path: root/wake.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-09-06 02:51:16 -0400
committerJeffrey Walton <noloader@gmail.com>2016-09-06 02:51:16 -0400
commit45323bddd83982a183714d91167194f73bab1440 (patch)
tree8b6d2543d1fba8a03b12572b8571155a8e972df7 /wake.cpp
parent33522b39b1de5806798bded49e481baecb56dc58 (diff)
downloadcryptopp-git-45323bddd83982a183714d91167194f73bab1440.tar.gz
Initial fix for older Apple ld's non_lazy_ptr missing symbols (Issue 255)
Diffstat (limited to 'wake.cpp')
-rw-r--r--wake.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/wake.cpp b/wake.cpp
index 4a9bc340..4725947f 100644
--- a/wake.cpp
+++ b/wake.cpp
@@ -15,6 +15,9 @@ void WAKE_TestInstantiations()
}
#endif
+// Hack for OS X 10.5 ld, http://github.com/weidai11/cryptopp/issues/255
+static const size_t s_unused = WAKE_OFB<>::KEYLENGTH;
+
inline word32 WAKE_Base::M(word32 x, word32 y)
{
word32 w = x+y;
@@ -24,7 +27,7 @@ inline word32 WAKE_Base::M(word32 x, word32 y)
void WAKE_Base::GenKey(word32 k0, word32 k1, word32 k2, word32 k3)
{
// this code is mostly copied from David Wheeler's paper "A Bulk Data Encryption Algorithm"
- signed int x, z, p;
+ 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 unsigned int tt[10]= {