Change alignment of IntegerSecBlock to 16 when CRYPTOPP_WORD128_AVAILABLE is in effect (Issue 256)

This commit is contained in:
Jeffrey Walton 2016-09-08 19:57:39 -04:00
parent 9f5d7b9ca8
commit 42085eea41

View File

@ -18,7 +18,12 @@ struct InitializeInteger
InitializeInteger();
};
// http://github.com/weidai11/cryptopp/issues/256
#if defined(CRYPTOPP_WORD128_AVAILABLE)
typedef SecBlock<word, AllocatorWithCleanup<word, true> > IntegerSecBlock;
#else
typedef SecBlock<word, AllocatorWithCleanup<word, CRYPTOPP_BOOL_X86> > IntegerSecBlock;
#endif
//! \brief Multiple precision integer with arithmetic operations
//! \details The Integer class can represent positive and negative integers