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

pull/263/head
Jeffrey Walton 2016-09-08 19:57:39 -04:00
parent 9f5d7b9ca8
commit 42085eea41
1 changed files with 5 additions and 0 deletions

View File

@ -18,7 +18,12 @@ struct InitializeInteger
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; typedef SecBlock<word, AllocatorWithCleanup<word, CRYPTOPP_BOOL_X86> > IntegerSecBlock;
#endif
//! \brief Multiple precision integer with arithmetic operations //! \brief Multiple precision integer with arithmetic operations
//! \details The Integer class can represent positive and negative integers //! \details The Integer class can represent positive and negative integers