mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 20:15:19 -07:00
C++ compat
This commit is contained in:
parent
18fad78494
commit
48a679650e
@ -34,8 +34,8 @@
|
|||||||
|
|
||||||
typedef uint64x2_t BlockVec;
|
typedef uint64x2_t BlockVec;
|
||||||
|
|
||||||
#define LOAD128(a) vld1q_u64((const void *) a)
|
#define LOAD128(a) vld1q_u64((const uint64_t *) (const void *) a)
|
||||||
#define STORE128(a, b) vst1q_u64(((void *) a), (b))
|
#define STORE128(a, b) vst1q_u64(((uint64_t *) (void *) a), (b))
|
||||||
#define AES_XENCRYPT(block_vec, rkey) \
|
#define AES_XENCRYPT(block_vec, rkey) \
|
||||||
vreinterpretq_u64_u8( \
|
vreinterpretq_u64_u8( \
|
||||||
vaesmcq_u8(vaeseq_u8(vreinterpretq_u8_u64(block_vec), rkey)))
|
vaesmcq_u8(vaeseq_u8(vreinterpretq_u8_u64(block_vec), rkey)))
|
||||||
|
Loading…
Reference in New Issue
Block a user