MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxCsslMemory_Clear Function Definitions

mcuxCsslMemory_Clear Function Definitions More...

Functions

 MCUX_CSSL_FP_PROTECTED_TYPE (mcuxCsslMemory_Status_t) mcuxCsslMemory_Clear(mcuxCsslParamIntegrity_Checksum_t chk
 Clear length bytes of data at pDst. More...
 

Variables

void * pDst
 
void size_t dstLength
 
void size_t size_t length
 

Detailed Description

mcuxCsslMemory_Clear Function Definitions

Function Documentation

◆ MCUX_CSSL_FP_PROTECTED_TYPE()

MCUX_CSSL_FP_PROTECTED_TYPE ( mcuxCsslMemory_Status_t  )

Clear length bytes of data at pDst.

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.

The implementation is secure in the following aspects: Parameter integrity protection: the function returns immediately in case of an incorrect parameter checksum. Code flow protection: the function call is protected. Buffer overflow protection: no data is written to pDst beyond dstLength bytes.

Parameters
[in]chkThe parameter checksum, generated with mcuxCsslParamIntegrity_Protect.
[in]pDstThe destination pointer to buffer to be cleared. Must not be NULL.
[in]dstLengthThe size of the destination data buffer in bytes.
[in]lengthThe number of bytes to clear. Must be different from zero.
Returns
A status code encapsulated in a flow-protection type.
Return values
MCUXCSSLMEMORY_STATUS_OKIf the contents in buffer at pDst is cleared.
MCUXCSSLMEMORY_STATUS_INVALID_PARAMETERIf one of the parameters is invalid.
MCUXCSSLMEMORY_STATUS_FAULTIf a fault was detected, included invalid checksum chk.