MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClMacModes_cmac_oneshot_example.c File Reference

Example CMAC computation using functions of the mcuxClKey and mcuxClMac component. More...

#include <mcuxClCore_Examples.h>
#include <mcuxClEls.h>
#include <mcuxClKey.h>
#include <mcuxClAes.h>
#include <mcuxClSession.h>
#include <mcuxCsslFlowProtection.h>
#include <mcuxClCore_FunctionIdentifiers.h>
#include <mcuxClMac.h>
#include <mcuxClMacModes.h>
#include <mcuxClExample_ELS_Helper.h>
#include <mcuxClExample_Key_Helper.h>
#include <mcuxClExample_Session_Helper.h>
#include <mcuxClExample_RNG_Helper.h>

Functions

 MCUXCLEXAMPLE_FUNCTION (mcuxClMacModes_cmac_oneshot_example)
 Performs a CMAC computation using functions of the mcuxClKey component. More...
 

Detailed Description

Example CMAC computation using functions of the mcuxClKey and mcuxClMac component.

Function Documentation

◆ MCUXCLEXAMPLE_FUNCTION()

MCUXCLEXAMPLE_FUNCTION ( mcuxClMacModes_cmac_oneshot_example  )

Performs a CMAC computation using functions of the mcuxClKey component.

Return values
MCUXCLEXAMPLE_STATUS_OKThe example code completed successfully
MCUXCLEXAMPLE_STATUS_ERRORThe example code failed

Initialize ELS, Enable the ELS

Destroy Session and cleanup Session

Disable the ELS