1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00

MSVC compat

This commit is contained in:
Frank Denis 2022-12-09 21:29:33 +01:00
parent 1ced838f70
commit 15cceaad90
2 changed files with 12 additions and 12 deletions

View File

@ -50,7 +50,7 @@ _encrypt(const uint8_t ix0[4], const uint8_t ix1[4], const uint8_t ix2[4], const
{
CRYPTO_ALIGN(64) uint32_t t[4][4][256 / SOFTAES_STRIDE];
CRYPTO_ALIGN(64) uint8_t of[4][4];
SoftAesBlock out;
CRYPTO_ALIGN(64) SoftAesBlock out;
size_t i;
size_t j;
@ -99,7 +99,7 @@ _encrypt(const uint8_t ix0[4], const uint8_t ix1[4], const uint8_t ix2[4], const
SoftAesBlock
softaes_block_encrypt(const SoftAesBlock block, const SoftAesBlock rk)
{
SoftAesBlock out;
CRYPTO_ALIGN(64) SoftAesBlock out;
CRYPTO_ALIGN(64) uint8_t ix0[4], ix1[4], ix2[4], ix3[4];
const uint32_t s0 = block.w0;
const uint32_t s1 = block.w1;

View File

@ -5,7 +5,7 @@
#include "private/common.h"
typedef struct CRYPTO_ALIGN(64) SoftAesBlock {
typedef struct SoftAesBlock {
uint32_t w0;
uint32_t w1;
uint32_t w2;