diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-09-06 02:51:16 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-09-06 02:51:16 -0400 |
commit | 45323bddd83982a183714d91167194f73bab1440 (patch) | |
tree | 8b6d2543d1fba8a03b12572b8571155a8e972df7 /seal.cpp | |
parent | 33522b39b1de5806798bded49e481baecb56dc58 (diff) | |
download | cryptopp-git-45323bddd83982a183714d91167194f73bab1440.tar.gz |
Initial fix for older Apple ld's non_lazy_ptr missing symbols (Issue 255)
Diffstat (limited to 'seal.cpp')
-rw-r--r-- | seal.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -17,6 +17,9 @@ void SEAL_TestInstantiations() }
#endif
+// Hack for OS X 10.5 ld, http://github.com/weidai11/cryptopp/issues/255
+static const size_t s_unused = SEAL<>::KEYLENGTH;
+
struct SEAL_Gamma
{
SEAL_Gamma(const byte *key)
@@ -139,7 +142,7 @@ void SEAL_Policy<B>::OperateKeystream(KeystreamOperation operation, byte *output p = d & 0x7fc;
a += Ttab(p);
d = rotrFixed(d, 9U);
-
+
// generate 8192 bits
for (unsigned int i=0; i<64; i++)
{
@@ -197,7 +200,7 @@ void SEAL_Policy<B>::OperateKeystream(KeystreamOperation operation, byte *output else
{
a += n1;
- b += n2;
+ b += n2;
c ^= n1;
d ^= n2;
}
|