diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2010-07-24 05:33:58 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2010-07-24 05:33:58 +0000 |
commit | 2a1a234dd199a14aa5588a1bbccd88265cbf9ec2 (patch) | |
tree | bd0beb26047039c3cfae1015062ad5841d23ffe2 /misc.h | |
parent | d8af7d476f7b49f5a1ff07b2202fc9ad626d83d7 (diff) | |
download | cryptopp-2a1a234dd199a14aa5588a1bbccd88265cbf9ec2.tar.gz |
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
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 <class T> inline T rotlFixed(T x, unsigned int y) |