mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-17 03:48:38 +00:00
Change alignment of IntegerSecBlock to 16 when CRYPTOPP_WORD128_AVAILABLE is in effect (Issue 256)
This commit is contained in:
parent
9f5d7b9ca8
commit
42085eea41
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user