AES-CMAC#

API and Callbacks for the AES-CMAC Component.

Silicon Labs implementation of AES-CMAC. See AN875 for more information.

API#

void
emberAfPluginAesMacAuthenticate(const uint8_t *key, const uint8_t *message, uint8_t messageLength, uint8_t *out)

Compute the Cipher-based Message Authentication Code (CMAC) corresponding to the passed message and the passed key.

Macros#

#define
MSB (x)
#define
initToConstZero (x)
#define
initToConstRb (x)

API Documentation#

emberAfPluginAesMacAuthenticate#

void emberAfPluginAesMacAuthenticate (const uint8_t * key, const uint8_t * message, uint8_t messageLength, uint8_t * out)

Compute the Cipher-based Message Authentication Code (CMAC) corresponding to the passed message and the passed key.

Parameters
TypeDirectionArgument NameDescription
const uint8_t *[in]key

The key to be used to produce the cipher-based authentication code.

const uint8_t *[in]message

A pointer to the message for which a cipher-based authentication code should be computed.

uint8_t[in]messageLength

The length in bytes of the message to be authenticated.

uint8_t *[out]out

A pointer to a 16-byte area memory in which the resulting cipher-based authentication code will be stored.