Contiki-NG

Header file for the cc2538 AES-CCM driver. More...

#include "contiki.h"
#include "dev/aes.h"
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Macros

AES-CCM constants
#define CCM_FLAGS_LEN   1
 
#define CCM_NONCE_LEN_LEN   (AES_IV_LEN - CCM_FLAGS_LEN)
 
#define CCM_MIC_MAX_LEN   AES_TAG_LEN
 

AES-CCM functions

#define ccm_auth_encrypt_check_status   aes_auth_crypt_check_status
 Checks the status of the CCM authentication and encryption operation. More...
 
#define ccm_auth_decrypt_check_status   aes_auth_crypt_check_status
 Checks the status of the CCM authentication checking and decryption operation. More...
 
uint8_t ccm_auth_encrypt_start (uint8_t len_len, uint8_t key_area, const void *nonce, const void *adata, uint16_t adata_len, const void *pdata, uint16_t pdata_len, void *cdata, uint8_t mic_len, struct process *process)
 Starts a CCM authentication and encryption operation. More...
 
uint8_t ccm_auth_encrypt_get_result (void *mic, uint8_t mic_len)
 Gets the result of the CCM authentication and encryption operation. More...
 
uint8_t ccm_auth_decrypt_start (uint8_t len_len, uint8_t key_area, const void *nonce, const void *adata, uint16_t adata_len, const void *cdata, uint16_t cdata_len, void *pdata, uint8_t mic_len, struct process *process)
 Starts a CCM authentication checking and decryption operation. More...
 
uint8_t ccm_auth_decrypt_get_result (const void *cdata, uint16_t cdata_len, void *mic, uint8_t mic_len)
 Gets the result of the CCM authentication checking and decryption operation. More...
 

Detailed Description

Header file for the cc2538 AES-CCM driver.

Definition in file ccm.h.