4.3.2.2 Crypto_Mac_AesCmac_Cipher
crypto_Mac_Status_E Crypto_Mac_AesCmac_Cipher(
st_Crypto_Mac_Aes_ctx *ptr_aesCmacCtx_st,
uint8_t *ptr_inputData,
uint32_t dataLen
);
Description
This API executes the AES-CMAC operation to compute the Message Authentication Code (MAC). To use this API, first, initialize the context by calling the Crypto_Mac_AesCmac_Init function. Then, invoke this API. Finally, obtain the MAC by calling the Crypto_Mac_AesCmac_Final function.
Parameters
No. | Argument Type | Argument Name | Type | Description |
---|---|---|---|---|
1 | st_Crypto_Mac_Aes_ctx* | ptr_aesCmacCtx_st | Input | AES-CMAC algorithm context |
2 | uint8_t* | ptr_inputData | Input | Input data to calculate the MAC |
3 | uint32_t | dataLen | Input | Input length of plain data in bytes |
Returns
Return Type | Description |
---|---|
crypto_Mac_Status_E | Function returns the status of the API. |