From 2a1a234dd199a14aa5588a1bbccd88265cbf9ec2 Mon Sep 17 00:00:00 2001 From: weidai Date: Sat, 24 Jul 2010 05:33:58 +0000 Subject: move memory allocation/deallocation for SecBlock into DLL git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@505 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- misc.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'misc.h') diff --git a/misc.h b/misc.h index 6b7a3de..8425c53 100644 --- a/misc.h +++ b/misc.h @@ -567,6 +567,14 @@ static std::string StringNarrow(const wchar_t *str, bool throwOnError = true) #endif } +#if CRYPTOPP_BOOL_ALIGN16_ENABLED +CRYPTOPP_DLL void * CRYPTOPP_API AlignedAllocate(size_t size); +CRYPTOPP_DLL void CRYPTOPP_API AlignedDeallocate(void *p); +#endif + +CRYPTOPP_DLL void * CRYPTOPP_API UnalignedAllocate(size_t size); +CRYPTOPP_DLL void CRYPTOPP_API UnalignedDeallocate(void *p); + // ************** rotate functions *************** template inline T rotlFixed(T x, unsigned int y) -- cgit v1.2.1