MCUX CLNS MCUX Crypto Library Normal Secure |

Modules
mcuxClMac

Message Authentication Code (MAC) component. More...

## Modules

| mcuxClMac_Functions
| Defines all functions of mcuxClMac.
| mcuxClMac_MemoryConsumption
| Defines the memory consumption for the mcuxClMac component.
| mcuxClMac_Types
| Defines all types of the mcuxClMac component.

## Detailed Description

Message Authentication Code (MAC) component.

The mcuxClMac component implements Message Authentication Code (MAC) calculation, based on either HMAC or CMAC.

An example of how to use the mcuxClMac component can be found in /mcuxClMac/ex.

The MAC can either be computed in one shot, using the mcuxClMac_compute function, or the input can be split into multiple parts. In that case, an initialization has to be performed first by calling the mcuxClMac_init function. Now zero, one, or more messages can be added for authentication by calling mcuxClMac_process. Finally, the MAC is generated when the mcuxClMac_finish function is called.

The mode to be used, HMAC or CMAC, is defined by passing the corresponding mode descriptor (mcuxClMac_Mode_t) to mcuxClMac_compute or mcuxClMac_init.