Change alignment of IntegerSecBlock to 16 when CRYPTOPP_WORD128_AVAILABLE is in effect (Issue 256)
parent
9f5d7b9ca8
commit
42085eea41
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue