MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClMemory_Copy

This function copies a memory region from src to dst. More...

Functions

mcuxClMemory_Status_Protected_t mcuxClMemory_copy (uint8_t *dst, uint8_t const *src, size_t len, size_t buflen)
 Copies a memory buffer to another location. More...
 

Detailed Description

This function copies a memory region from src to dst.

Function Documentation

◆ mcuxClMemory_copy()

mcuxClMemory_Status_Protected_t mcuxClMemory_copy ( uint8_t *  dst,
uint8_t const *  src,
size_t  len,
size_t  buflen 
)

Copies a memory buffer to another location.

The two buffers must not overlap.

Parameters
[out]dstpointer to the buffer to be copied.
[in]srcpointer to the buffer to copy.
[in]lensize (in bytes) to be copied.
[in]buflenbuffer size (if buflen < len, only buflen bytes are copied).
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.