CryptoAuthLib
Microchip CryptoAuthentication Library
atca_basic_aes_cmac.c File Reference

CryptoAuthLib Basic API methods for AES CBC_MAC mode. More...

#include "atca_basic.h"

Functions

ATCA_STATUS atcab_aes_cmac_init (atca_aes_cmac_ctx_t *ctx, uint16_t key_id, uint8_t key_block)
 Initialize a CMAC calculation using an AES-128 key in the ATECC608A. More...
 
ATCA_STATUS atcab_aes_cmac_update (atca_aes_cmac_ctx_t *ctx, const uint8_t *data, uint32_t data_size)
 Add data to an initialized CMAC calculation. More...
 
ATCA_STATUS atcab_aes_cmac_finish (atca_aes_cmac_ctx_t *ctx, uint8_t *cmac, uint32_t cmac_size)
 Finish a CMAC operation returning the CMAC value. More...
 

Detailed Description

CryptoAuthLib Basic API methods for AES CBC_MAC mode.

The AES command supports 128-bit AES encryption or decryption of small messages or data packets in ECB mode. Also can perform GFM (Galois Field Multiply) calculation in support of AES-GCM.

Note
List of devices that support this command - ATECC608A. Refer to device datasheet for full details.