VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-08 11:12:20 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-17 18:17:49 +0200
commit012c9134d4f6e29c2e13e56490e47a8547d41af7 (patch)
tree2175a5b43db90c323793b35627639bfa3268a8ae /Include
parentc97186ae96d4835841b02d377a9002d078a6f83b (diff)
downloadVeraCrypt-DCS-012c9134d4f6e29c2e13e56490e47a8547d41af7.tar.gz
VeraCrypt-DCS-012c9134d4f6e29c2e13e56490e47a8547d41af7.zip
define and use own version of secure memory erase macro instead of the one coming from VeraCrypt.
Diffstat (limited to 'Include')
-rw-r--r--Include/Library/CommonLib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/Library/CommonLib.h b/Include/Library/CommonLib.h
index 395d4c4..4f28e9b 100644
--- a/Include/Library/CommonLib.h
+++ b/Include/Library/CommonLib.h
@@ -32,6 +32,7 @@ https://opensource.org/licenses/LGPL-3.0
#define MEM_ALLOC MemAlloc
#define MEM_FREE MemFree
#define MEM_REALLOC MemRealloc
+#define MEM_BURN(ptr,count) do { volatile char *burnPtr = (volatile char *)(ptr); size_t burnCount = (size_t) count; while (burnCount--) *burnPtr++ = 0; } while (0)
VOID*
MemAlloc(