1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 11:28:26 -06:00

Use properly aligned memory in code using Streebog hash implementation that uses SSE.

This commit is contained in:
Mounir IDRASSI
2016-09-28 00:14:05 +02:00
parent 3e029b0dde
commit 57ce7aab7b
7 changed files with 65 additions and 23 deletions

View File

@@ -73,10 +73,12 @@ namespace VeraCrypt
{
public:
static void *Allocate (size_t size);
static void *AllocateAligned (size_t size, size_t alignment);
static int Compare (const void *memory1, size_t size1, const void *memory2, size_t size2);
static void Copy (void *memoryDestination, const void *memorySource, size_t size);
static void Erase (void *memory, size_t size);
static void Free (void *memory);
static void FreeAligned (void *memory);
static void Zero (void *memory, size_t size);
};