Message Authentication Code (MAC) component. More...
Modules | |
mcuxClMac_Constants | |
Constants of mcuxClMac component. | |
mcuxClMac Functions | |
Defines all functions of mcuxClMac. | |
mcuxClMac_Types | |
Defines all types of the mcuxClMac component. | |
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.