From 0d66fd8f82fdbcb7c1e80e1f6c76ec712d2506e3 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 9 Sep 2016 06:33:31 -0400 Subject: [PATCH] Fixed use of FixedSizeAlignedSecBlock and non-aligned allocator in validat1.cpp (Issue 256) --- secblock.h | 5 ++++- validat1.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/secblock.h b/secblock.h index 862f28bd..375f8209 100644 --- a/secblock.h +++ b/secblock.h @@ -244,8 +244,11 @@ CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup; CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup; CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup; CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup; +#if defined(CRYPTOPP_WORD128_AVAILABLE) +CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup; // for Integer +#endif #if CRYPTOPP_BOOL_X86 -CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup; // for Integer +CRYPTOPP_DLL_TEMPLATE_CLASS AllocatorWithCleanup; // for Integer #endif //! \class NullAllocator diff --git a/validat1.cpp b/validat1.cpp index 6a022d5c..36c888dd 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -1229,7 +1229,7 @@ bool TestSecBlock() try { static const unsigned int SIZE = 8; - SecBlockWithHint block(SIZE); + SecBlock > block(SIZE); memset(block, 0xaa, block.SizeInBytes()); temp = true;