Embedded SDK
Embedded SDK
Macros
cx_aes_gcm.h File Reference
#include <stddef.h>
Include dependency graph for cx_aes_gcm.h:

Go to the source code of this file.

Macros

#define STORE32BE(a, p)
 
#define STORE64BE(a, p)
 

Macro Definition Documentation

◆ STORE32BE

#define STORE32BE (   a,
 
)
Value:
((uint8_t *) (p))[0] = ((uint32_t) (a) >> 24) & 0xFFU, \
((uint8_t *) (p))[1] = ((uint32_t) (a) >> 16) & 0xFFU, \
((uint8_t *) (p))[2] = ((uint32_t) (a) >> 8) & 0xFFU, \
((uint8_t *) (p))[3] = ((uint32_t) (a) >> 0) & 0xFFU
unsigned char uint8_t
Definition: usbd_conf.h:53

Definition at line 28 of file cx_aes_gcm.h.

◆ STORE64BE

#define STORE64BE (   a,
 
)
Value:
((uint8_t *) (p))[0] = ((uint64_t) (a) >> 56) & 0xFFU, \
((uint8_t *) (p))[1] = ((uint64_t) (a) >> 48) & 0xFFU, \
((uint8_t *) (p))[2] = ((uint64_t) (a) >> 40) & 0xFFU, \
((uint8_t *) (p))[3] = ((uint64_t) (a) >> 32) & 0xFFU, \
((uint8_t *) (p))[4] = ((uint64_t) (a) >> 24) & 0xFFU, \
((uint8_t *) (p))[5] = ((uint64_t) (a) >> 16) & 0xFFU, \
((uint8_t *) (p))[6] = ((uint64_t) (a) >> 8) & 0xFFU, \
((uint8_t *) (p))[7] = ((uint64_t) (a) >> 0) & 0xFFU

Definition at line 35 of file cx_aes_gcm.h.