From 45323bddd83982a183714d91167194f73bab1440 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 6 Sep 2016 02:51:16 -0400 Subject: Initial fix for older Apple ld's non_lazy_ptr missing symbols (Issue 255) --- skipjack.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'skipjack.cpp') diff --git a/skipjack.cpp b/skipjack.cpp index 7b3afdfa..c52baf49 100644 --- a/skipjack.cpp +++ b/skipjack.cpp @@ -7,7 +7,7 @@ #include "skipjack.h" -/* +/* * Optimized implementation of SKIPJACK algorithm * * originally written by Panu Rissanen 1998.06.24 @@ -17,10 +17,13 @@ NAMESPACE_BEGIN(CryptoPP) +// Hack for OS X 10.5 ld, http://github.com/weidai11/cryptopp/issues/255 +static const size_t s_unused = SKIPJACK::KEYLENGTH; + /** * The F-table byte permutation (see description of the G-box permutation) */ -const byte SKIPJACK::Base::fTable[256] = { +const byte SKIPJACK::Base::fTable[256] = { 0xa3,0xd7,0x09,0x83,0xf8,0x48,0xf6,0xf4,0xb3,0x21,0x15,0x78,0x99,0xb1,0xaf,0xf9, 0xe7,0x2d,0x4d,0x8a,0xce,0x4c,0xca,0x2e,0x52,0x95,0xd9,0x1e,0x4e,0x38,0x44,0x28, 0x0a,0xdf,0x02,0xa0,0x17,0xf1,0x60,0x68,0x12,0xb7,0x7a,0xc3,0xe9,0xfa,0x3d,0x53, -- cgit v1.2.1