MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClMemory_Clear

This function clears a memory region. More...

Functions

mcuxClMemory_Status_Protected_t mcuxClMemory_clear (uint8_t *dst, size_t len, size_t buflen)
 Overwrites a memory buffer with null bytes. More...
 

Detailed Description

This function clears a memory region.

Function Documentation

◆ mcuxClMemory_clear()

mcuxClMemory_Status_Protected_t mcuxClMemory_clear ( uint8_t *  dst,
size_t  len,
size_t  buflen 
)

Overwrites a memory buffer with null bytes.

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