From 48a679650eec751906eb49cb77be31f5c5d9ec9f Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 8 Sep 2023 20:59:17 +0200 Subject: [PATCH] C++ compat --- .../aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c b/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c index f730ee79..ac4bdaed 100644 --- a/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c +++ b/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c @@ -34,8 +34,8 @@ typedef uint64x2_t BlockVec; -#define LOAD128(a) vld1q_u64((const void *) a) -#define STORE128(a, b) vst1q_u64(((void *) a), (b)) +#define LOAD128(a) vld1q_u64((const uint64_t *) (const void *) a) +#define STORE128(a, b) vst1q_u64(((uint64_t *) (void *) a), (b)) #define AES_XENCRYPT(block_vec, rkey) \ vreinterpretq_u64_u8( \ vaesmcq_u8(vaeseq_u8(vreinterpretq_u8_u64(block_vec), rkey)))