Fixed use of FixedSizeAlignedSecBlock and non-aligned allocator in validat1.cpp (Issue 256)

pull/263/head
Jeffrey Walton 2016-09-09 06:33:31 -04:00
parent d5f2194be0
commit 0d66fd8f82
2 changed files with 5 additions and 2 deletions

View File

@ -244,6 +244,9 @@ 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
#endif

View File

@ -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;