MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
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.
#define MCUXCLMEMORY_FP_MEMORY_SET_WITH_BUFF(pTarget, val, byteLen, buffLen)
 Helper macro to call mcuxClMemory_set with flow protection with buffer.

Functions

void mcuxClMemory_set (uint8_t *pDst, uint8_t val, size_t length, size_t bufLength)
 Sets all bytes of a memory buffer to a specified value.

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

◆ mcuxClMemory_set()

void mcuxClMemory_set ( uint8_t * pDst,
uint8_t val,
size_t length,
size_t bufLength )

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).