MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxCsslMemory_Set Function Definitions

mcuxCsslMemory_Set Function Definitions More...

Functions

 MCUX_CSSL_FP_PROTECTED_TYPE (mcuxCsslMemory_Status_t) mcuxCsslMemory_Set(mcuxCsslParamIntegrity_Checksum_t chk
 Set length bytes of data at pDst. More...
 

Variables

void * pDst
 
void uint8_t val
 
void uint8_t size_t length
 
void uint8_t size_t size_t bufLength
 

Detailed Description

mcuxCsslMemory_Set Function Definitions

Function Documentation

◆ MCUX_CSSL_FP_PROTECTED_TYPE()

MCUX_CSSL_FP_PROTECTED_TYPE ( mcuxCsslMemory_Status_t  )

Set 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 bufLength bytes.

Parameters
[in]chkThe parameter checksum, generated with mcuxCsslParamIntegrity_Protect.
[in]pDstThe destination pointer to buffer to be set. Must not be NULL.
[in]valThe byte value to be set.
[in]lengthThe size in bytes to set. Must be different from zero.
[in]bufLengthThe buffer size (if bufLength < length, only bufLength bytes are set).
Returns
A status code encapsulated in a flow-protection type.
Return values
MCUXCSSLMEMORY_STATUS_OKIf val set length times at pDst.
MCUXCSSLMEMORY_STATUS_INVALID_PARAMETERIf one of the parameters is invalid.
MCUXCSSLMEMORY_STATUS_FAULTIf a fault was detected, included invalid checksum chk.