RTC auf true
« Back to documentation index
ccm_globals_t Struct Reference
CCM global structure. The structure is used for configuring NONCE, adata and data before calling ccm_process_run() .
More...
#include <ccmLIB.h >
Data Fields
uint8_t exp_nonce [15]
CCM NONCE buffer Nonce.
uint8_t * data_ptr
Pointer to data IN.
uint16_t data_len
Length of data IN.
const uint8_t * adata_ptr
Pointer to authentication data.
uint16_t adata_len
Length of authentication data.
unsigned ccm_encode_mode :1
Encryption modeAES_CCM_ENCRYPT or AES_CCM_DECRYPT.
unsigned ccm_sec_level :3
Encryption operation security level 0-7.
unsigned ccm_l_param :4
Can be 2 or 3.
uint8_t mic_len
ccm_sec_init() sets here the length of MIC.
uint8_t * mic
Encrypt process writes MIC.
const uint8_t * key_ptr
Encyption key pointer to 128-bit key.
arm_aes_context_t * aes_context
Allocated AES context.
Detailed Description
CCM global structure. The structure is used for configuring NONCE, adata and data before calling ccm_process_run() .
Definition at line 67 of file ccmLIB.h .
Field Documentation
Length of authentication data.
Definition at line 72 of file ccmLIB.h .
Pointer to authentication data.
Definition at line 71 of file ccmLIB.h .
Allocated AES context.
Definition at line 79 of file ccmLIB.h .
Encryption modeAES_CCM_ENCRYPT or AES_CCM_DECRYPT.
Definition at line 73 of file ccmLIB.h .
Can be 2 or 3.
2 when NONCE length is 13 and 3 when 12
Definition at line 75 of file ccmLIB.h .
Encryption operation security level 0-7.
Definition at line 74 of file ccmLIB.h .
Length of data IN.
Definition at line 70 of file ccmLIB.h .
Pointer to data IN.
Definition at line 69 of file ccmLIB.h .
CCM NONCE buffer Nonce.
Definition at line 68 of file ccmLIB.h .
Encyption key pointer to 128-bit key.
Definition at line 78 of file ccmLIB.h .
Encrypt process writes MIC.
Decrypt reads it and compares it with the MIC obtained from data.
Definition at line 77 of file ccmLIB.h .