MCUX CLNS
MCUX Crypto Library Normal Secure
APIs to construct HMAC modes

Interfaces to construct HMAC modes of operation. More...

Functions

mcuxClMac_Status_t mcuxClHmac_createHmacMode (mcuxClMac_CustomMode_t mode, mcuxClHash_Algo_t hashAlgorithm)
 This function creates a HMAC mode descriptor for software implementations of HMAC. More...
 

Detailed Description

Interfaces to construct HMAC modes of operation.

Function Documentation

◆ mcuxClHmac_createHmacMode()

mcuxClMac_Status_t mcuxClHmac_createHmacMode ( mcuxClMac_CustomMode_t  mode,
mcuxClHash_Algo_t  hashAlgorithm 
)

This function creates a HMAC mode descriptor for software implementations of HMAC.

The SW-HMAC modes of operation require additional input, hence a mode descriptor has to be constructed with this function. The resulting descriptor will be written to mode.

This function must be called before any SW-HMAC operation is performed.

Parameters
mode[out]Pointer to HMAC custom mode to be initialized.
mcuxClHash_Algo_t[in]Pointer to the Hash algorithm descriptor to be used. SecSha algorithm descriptors are not supported.
Returns
status