Fixed use of FixedSizeAlignedSecBlock and non-aligned allocator in validat1.cpp (Issue 256)
parent
d5f2194be0
commit
0d66fd8f82
|
|
@ -244,8 +244,11 @@ CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<byte>;
|
|||
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word16>;
|
||||
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word32>;
|
||||
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word64>;
|
||||
#if defined(CRYPTOPP_WORD128_AVAILABLE)
|
||||
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word128, true>; // for Integer
|
||||
#endif
|
||||
#if CRYPTOPP_BOOL_X86
|
||||
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word, true>; // for Integer
|
||||
CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup<word, true>; // for Integer
|
||||
#endif
|
||||
|
||||
//! \class NullAllocator
|
||||
|
|
|
|||
|
|
@ -1229,7 +1229,7 @@ bool TestSecBlock()
|
|||
try
|
||||
{
|
||||
static const unsigned int SIZE = 8;
|
||||
SecBlockWithHint<word128, SIZE> block(SIZE);
|
||||
SecBlock<word128, AllocatorWithCleanup<word128, true> > block(SIZE);
|
||||
memset(block, 0xaa, block.SizeInBytes());
|
||||
|
||||
temp = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue