MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClEls_Crc_Functions

Defines all functions of mcuxClEls_Crc. More...

Functions

MCUXCLELS_API MCUX_CSSL_FP_PROTECTED_TYPE (mcuxClEls_Status_t) mcuxClEls_ConfigureCommandCRC(mcuxClEls_CommandCrcConfig_t options)
 Set command CRC flags. More...
 

Variables

MCUXCLELS_API uint32_t options
 
MCUXCLELS_API uint32_t uint32_t * refCrc
 

Detailed Description

Defines all functions of mcuxClEls_Crc.

Function Documentation

◆ MCUX_CSSL_FP_PROTECTED_TYPE()

MCUXCLELS_API MCUX_CSSL_FP_PROTECTED_TYPE ( mcuxClEls_Status_t  )

Set command CRC flags.

Deprecated type for mcuxClSession protected status codes.

Deprecated type for RSA protected status codes.

Deprecated type for error codes used by code-flow protected PKC component functions.

Deprecated type for error codes used by code-flow protected mcuxClMemory component functions.

Deprecated type for error codes used by code-flow protected Math component functions.

Deprecated type for Key component error codes, returned by functions with code-flow protection.

Deprecated type for ELS driver protected status codes.

Deprecated type for mcuxClEcc component return codes.

Updates a reference CRC with the parameters of an ELS command.

Verifies a reference CRC against the computed ELS command CRC.

Get the current command CRC value.

Parameters
[in]optionsThe command CRC options. For more information, see mcuxClEls_CommandCrcConfig_t.
Returns
An error code that is always MCUXCLELS_STATUS_OK
Parameters
[out]commandCrcThe command CRC value.
Returns
An error code
Return values
MCUXCLELS_STATUS_OKOperation successful
MCUXCLELS_STATUS_SW_INVALID_PARAMParameter commandCRC points to NULL
Parameters
[in]refCrcThe reference CRC value.
Returns
An error code that can be any error code in MCUXCLELS_STATUS_, see individual documentation for more information

This can be used to verify against the ELS command CRC.

Parameters
[in]commandThe ELS command ID.
[in]optionsThe command options for the given ELS command.
[in,out]refCrcThe current reference CRC value to update.
Returns
An error code
Return values
MCUXCLELS_STATUS_OKOperation successful
MCUXCLELS_STATUS_SW_INVALID_PARAMParameter crc points to NULL