22 #if defined(HAVE_AEAD)
28 #define STORE32BE(a, p) \
29 ((uint8_t *) (p))[0] = ((uint32_t) (a) >> 24) & 0xFFU, \
30 ((uint8_t *) (p))[1] = ((uint32_t) (a) >> 16) & 0xFFU, \
31 ((uint8_t *) (p))[2] = ((uint32_t) (a) >> 8) & 0xFFU, \
32 ((uint8_t *) (p))[3] = ((uint32_t) (a) >> 0) & 0xFFU
35 #define STORE64BE(a, p) \
36 ((uint8_t *) (p))[0] = ((uint64_t) (a) >> 56) & 0xFFU, \
37 ((uint8_t *) (p))[1] = ((uint64_t) (a) >> 48) & 0xFFU, \
38 ((uint8_t *) (p))[2] = ((uint64_t) (a) >> 40) & 0xFFU, \
39 ((uint8_t *) (p))[3] = ((uint64_t) (a) >> 32) & 0xFFU, \
40 ((uint8_t *) (p))[4] = ((uint64_t) (a) >> 24) & 0xFFU, \
41 ((uint8_t *) (p))[5] = ((uint64_t) (a) >> 16) & 0xFFU, \
42 ((uint8_t *) (p))[6] = ((uint64_t) (a) >> 8) & 0xFFU, \
43 ((uint8_t *) (p))[7] = ((uint64_t) (a) >> 0) & 0xFFU
45 #if defined(HAVE_AEAD)
46 extern const cx_aead_info_t cx_aes128_gcm_info;
47 extern const cx_aead_info_t cx_aes192_gcm_info;
48 extern const cx_aead_info_t cx_aes256_gcm_info;
Authenticated Encryption with Associated Data (AEAD)