MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClMemory_Set

This function sets all bytes in a memory region to a specified value. More...

Macros

#define MCUXCLMEMORY_FP_MEMORY_SET(pTarget, val, byteLen)
 Helper macro to call #mcuxClMemory_set with flow protection. More...
 
#define MCUXCLMEMORY_FP_MEMORY_SET_WITH_BUFF(pTarget, val, byteLen, buffLen)
 Helper macro to call #mcuxClMemory_set with flow protection with buffer. More...
 

Functions

 MCUX_CSSL_FP_PROTECTED_TYPE (void) mcuxClMemory_set(uint8_t *pDst
 Sets all bytes of a memory buffer to a specified value. More...
 

Variables

uint8_t val
 
uint8_t size_t length
 
uint8_t size_t size_t bufLength
 

Detailed Description

This function sets all bytes in a memory region to a specified value.

Macro Definition Documentation

◆ MCUXCLMEMORY_FP_MEMORY_SET

#define MCUXCLMEMORY_FP_MEMORY_SET (   pTarget,
  val,
  byteLen 
)

Helper macro to call #mcuxClMemory_set with flow protection.

◆ MCUXCLMEMORY_FP_MEMORY_SET_WITH_BUFF

#define MCUXCLMEMORY_FP_MEMORY_SET_WITH_BUFF (   pTarget,
  val,
  byteLen,
  buffLen 
)

Helper macro to call #mcuxClMemory_set with flow protection with buffer.

Function Documentation

◆ MCUX_CSSL_FP_PROTECTED_TYPE()

MCUX_CSSL_FP_PROTECTED_TYPE ( void  )

Sets all bytes of a memory buffer to a specified value.

If the destination buffer is too small, i.e. if bufLength < length, (length-bufLength) is added to the Flow Protection token (see Flow Protection API).

Parameters
[out]pDstpointer to the buffer to be set.
[in]valbyte value to be set.
[in]lengthsize (in bytes) to be set.
[in]bufLengthbuffer size (if bufLength < length, only bufLength bytes are set).