MODA  1.0.1
ModularAES

Description

Interface to single pass CMAC implementation as defined in NIST SP 800-38B.

Functions

void MODA_AES_CMAC (const struct aes_ctxt *aes, const uint8_t *in, uint32_t inLen, uint8_t *t, uint8_t tSize)
 Produce a CMAC in one step starting with an initialised block cipher. More...
 

Function Documentation

void MODA_AES_CMAC ( const struct aes_ctxt aes,
const uint8_t *  in,
uint32_t  inLen,
uint8_t *  t,
uint8_t  tSize 
)

Produce a CMAC in one step starting with an initialised block cipher.

Parameters
[in]aesblock cipher expanded key
[in]ininput buffer to CMAC
[in]inLenbyte length of in
[out]tauthentication tag output buffer
[in]tSizebyte length of t in range (0..16)
Examples:
test_aes_cmac.c.