MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClMemory_Copy

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

Macros

#define MCUXCLMEMORY_FP_MEMORY_COPY(pTarget, pSource, byteLen)
 Helper macro to call mcuxClMemory_copy with flow protection.
 
#define MCUXCLMEMORY_FP_MEMORY_COPY_WITH_BUFF(pTarget, pSource, byteLen, buffLen)
 Helper macro to call mcuxClMemory_copy with flow protection with buffer.
 

Functions

void mcuxClMemory_copy (uint8_t *pDst, uint8_t const *pSrc, size_t length, size_t bufLength)
 Copies a memory buffer to another location.
 

Detailed Description

This function copies a memory region from src to dst.

Macro Definition Documentation

◆ MCUXCLMEMORY_FP_MEMORY_COPY

#define MCUXCLMEMORY_FP_MEMORY_COPY (   pTarget,
  pSource,
  byteLen 
)

Helper macro to call mcuxClMemory_copy with flow protection.

◆ MCUXCLMEMORY_FP_MEMORY_COPY_WITH_BUFF

#define MCUXCLMEMORY_FP_MEMORY_COPY_WITH_BUFF (   pTarget,
  pSource,
  byteLen,
  buffLen 
)

Helper macro to call mcuxClMemory_copy with flow protection with buffer.

Function Documentation

◆ mcuxClMemory_copy()

void mcuxClMemory_copy ( uint8_t *  pDst,
uint8_t const *  pSrc,
size_t  length,
size_t  bufLength 
)

Copies a memory buffer to another location.

The two buffers must not overlap.

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 copied to.
[in]pSrcpointer to the buffer to copy.
[in]lengthsize (in bytes) to be copied.
[in]bufLengthbuffer size (if bufLength < length, only bufLength bytes are copied).
Examples
mcuxClEls_Tls_Master_Key_Session_Keys_example.c.