From 012c9134d4f6e29c2e13e56490e47a8547d41af7 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 8 Oct 2016 11:12:20 +0200 Subject: define and use own version of secure memory erase macro instead of the one coming from VeraCrypt. --- Include/Library/CommonLib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/Library') 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( -- cgit v1.2.3