Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

ccm_globals_t Struct Reference

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

uint16_t adata_len

Length of authentication data.

Definition at line 72 of file ccmLIB.h.

const uint8_t* adata_ptr

Pointer to authentication data.

Definition at line 71 of file ccmLIB.h.

arm_aes_context_t* aes_context

Allocated AES context.

Definition at line 79 of file ccmLIB.h.

unsigned ccm_encode_mode

Encryption modeAES_CCM_ENCRYPT or AES_CCM_DECRYPT.

Definition at line 73 of file ccmLIB.h.

unsigned ccm_l_param

Can be 2 or 3.

2 when NONCE length is 13 and 3 when 12

Definition at line 75 of file ccmLIB.h.

unsigned ccm_sec_level

Encryption operation security level 0-7.

Definition at line 74 of file ccmLIB.h.

uint16_t data_len

Length of data IN.

Definition at line 70 of file ccmLIB.h.

uint8_t* data_ptr

Pointer to data IN.

Definition at line 69 of file ccmLIB.h.

uint8_t exp_nonce[15]

CCM NONCE buffer Nonce.

Definition at line 68 of file ccmLIB.h.

const uint8_t* key_ptr

Encyption key pointer to 128-bit key.

Definition at line 78 of file ccmLIB.h.

uint8_t* mic

Encrypt process writes MIC.

Decrypt reads it and compares it with the MIC obtained from data.

Definition at line 77 of file ccmLIB.h.

uint8_t mic_len

ccm_sec_init() sets here the length of MIC.

Definition at line 76 of file ccmLIB.h.