1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00
This commit is contained in:
Frank Denis 2020-05-19 14:59:50 +02:00
parent 7bbaa6820b
commit 8706f2e8d7
2 changed files with 4 additions and 4 deletions

View File

@ -135,7 +135,7 @@ crypto_aead_aegis256_encrypt_detached(unsigned char *c, unsigned char *mac,
unsigned long long adlen, const unsigned char *nsec, unsigned long long adlen, const unsigned char *nsec,
const unsigned char *npub, const unsigned char *k) const unsigned char *npub, const unsigned char *k)
{ {
__m128i state[6]; __m128i state[6];
CRYPTO_ALIGN(16) unsigned char src[16]; CRYPTO_ALIGN(16) unsigned char src[16];
CRYPTO_ALIGN(16) unsigned char dst[16]; CRYPTO_ALIGN(16) unsigned char dst[16];
unsigned long long i; unsigned long long i;
@ -201,7 +201,7 @@ crypto_aead_aegis256_decrypt_detached(unsigned char *m, unsigned char *nsec, con
const unsigned char *ad, unsigned long long adlen, const unsigned char *ad, unsigned long long adlen,
const unsigned char *npub, const unsigned char *k) const unsigned char *npub, const unsigned char *k)
{ {
__m128i state[6]; __m128i state[6];
CRYPTO_ALIGN(16) unsigned char src[16]; CRYPTO_ALIGN(16) unsigned char src[16];
CRYPTO_ALIGN(16) unsigned char dst[16]; CRYPTO_ALIGN(16) unsigned char dst[16];
CRYPTO_ALIGN(16) unsigned char computed_mac[16]; CRYPTO_ALIGN(16) unsigned char computed_mac[16];

View File

@ -136,7 +136,7 @@ crypto_aead_aegis256_encrypt_detached(unsigned char *c, unsigned char *mac,
unsigned long long adlen, const unsigned char *nsec, unsigned long long adlen, const unsigned char *nsec,
const unsigned char *npub, const unsigned char *k) const unsigned char *npub, const unsigned char *k)
{ {
uint8x16_t state[6]; uint8x16_t state[6];
CRYPTO_ALIGN(16) unsigned char src[16]; CRYPTO_ALIGN(16) unsigned char src[16];
CRYPTO_ALIGN(16) unsigned char dst[16]; CRYPTO_ALIGN(16) unsigned char dst[16];
unsigned long long i; unsigned long long i;
@ -202,7 +202,7 @@ crypto_aead_aegis256_decrypt_detached(unsigned char *m, unsigned char *nsec, con
const unsigned char *ad, unsigned long long adlen, const unsigned char *ad, unsigned long long adlen,
const unsigned char *npub, const unsigned char *k) const unsigned char *npub, const unsigned char *k)
{ {
uint8x16_t state[6]; uint8x16_t state[6];
CRYPTO_ALIGN(16) unsigned char src[16]; CRYPTO_ALIGN(16) unsigned char src[16];
CRYPTO_ALIGN(16) unsigned char dst[16]; CRYPTO_ALIGN(16) unsigned char dst[16];
CRYPTO_ALIGN(16) unsigned char computed_mac[16]; CRYPTO_ALIGN(16) unsigned char computed_mac[16];