1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00
This commit is contained in:
Frank Denis 2019-10-21 15:14:13 +02:00
parent 111f99a2d4
commit 9e22cb4ad2

View File

@ -72,13 +72,11 @@ static void
crypto_aead_aegis256_mac(unsigned char *mac, unsigned long long mlen,
unsigned long long adlen, uint8x16_t *const state)
{
CRYPTO_ALIGN(16) const uint64_t madlen[] = {
adlen << 3, mlen << 3
};
uint8x16_t tmp;
int i;
tmp = vreinterpretq_u8_u64(vld1q_u64(madlen));
tmp = vreinterpretq_u8_u64(vsetq_lane_u64(mlen << 3,
vmovq_n_u64(adlen << 3), 1));
tmp = veorq_u8(tmp, state[3]);
for (i = 0; i < 7; i++) {