summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-07-24 05:33:58 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-07-24 05:33:58 +0000
commit2a1a234dd199a14aa5588a1bbccd88265cbf9ec2 (patch)
treebd0beb26047039c3cfae1015062ad5841d23ffe2 /misc.h
parentd8af7d476f7b49f5a1ff07b2202fc9ad626d83d7 (diff)
downloadcryptopp-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.h8
1 files changed, 8 insertions, 0 deletions
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 <class T> inline T rotlFixed(T x, unsigned int y)