MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClMemory_Set

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

Functions

mcuxClMemory_Status_Protected_t mcuxClMemory_set (uint8_t *dst, uint8_t val, size_t len, size_t buflen)
 Sets all bytes of a memory buffer to a specified value. More...
 

Detailed Description

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

Function Documentation

◆ mcuxClMemory_set()

mcuxClMemory_Status_Protected_t mcuxClMemory_set ( uint8_t *  dst,
uint8_t  val,
size_t  len,
size_t  buflen 
)

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

Parameters
[out]dstpointer to the buffer to be set.
[in]valbyte value to be set.
[in]lensize (in bytes) to be set.
[in]buflenbuffer size (if buflen < len, only buflen bytes are set).
Returns
A flow-protected value (see Flow Protection API), indicating the number of bytes not copied (nonzero if the destination buffer is too small)
Examples
tls_master_key_session_keys.c.