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

Proper casts for C++

This commit is contained in:
Frank Denis 2023-09-08 23:35:24 +02:00
parent c3692bbe0f
commit 94c650ae80

View File

@ -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)))