mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows: Implement RAM encryption for keys on 64-bit machines using ChaCha12 cipher and t1ha non-cryptographic fast hash (https://github.com/leo-yuriev/t1ha)
This commit is contained in:
@@ -248,9 +248,14 @@ void ThrowFatalException(int line);
|
||||
/* variables used in the implementation of enhanced protection of NX pool under Windows 8 and later */
|
||||
extern POOL_TYPE ExDefaultNonPagedPoolType;
|
||||
extern ULONG ExDefaultMdlProtection;
|
||||
#ifdef _WIN64
|
||||
extern ULONG AllocTag;
|
||||
#else
|
||||
#define AllocTag 'MMCV'
|
||||
#endif
|
||||
|
||||
#define TCalloc(size) ((void *) ExAllocatePoolWithTag( ExDefaultNonPagedPoolType, size, 'MMCV' ))
|
||||
#define TCfree(memblock) ExFreePoolWithTag( memblock, 'MMCV' )
|
||||
#define TCalloc(size) ((void *) ExAllocatePoolWithTag( ExDefaultNonPagedPoolType, size, AllocTag ))
|
||||
#define TCfree(memblock) ExFreePoolWithTag( memblock, AllocTag )
|
||||
|
||||
#define DEVICE_DRIVER
|
||||
|
||||
|
||||
Reference in New Issue
Block a user