1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 19:38: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

@@ -13,6 +13,7 @@
#define GOST_CIPHER_H
#include "Common/Tcdefs.h"
#include "config.h"
#ifdef __cplusplus
extern "C" {
@@ -47,7 +48,7 @@ typedef unsigned int gst_udword;
typedef struct gost_kds
{
byte key[32];
CRYPTOPP_ALIGN_DATA(16) byte key[32];
gst_udword sbox_cvt[256 * 4];
byte sbox[8][16];
} gost_kds;