From 57ce7aab7be0ca2c3e990eaf7d9cf3691efd1ea0 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 28 Sep 2016 00:14:05 +0200 Subject: Use properly aligned memory in code using Streebog hash implementation that uses SSE. --- src/Platform/Memory.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Platform/Memory.h') diff --git a/src/Platform/Memory.h b/src/Platform/Memory.h index 69ce2211..d303c23e 100644 --- a/src/Platform/Memory.h +++ b/src/Platform/Memory.h @@ -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); }; -- cgit v1.2.3