MCUX CLNS
MCUX Crypto Library Normal Secure
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. More...
 
#define MCUXCLMEMORY_FP_MEMORY_COPY_WITH_BUFF(pTarget, pSource, byteLen, buffLen)
 Helper macro to call #mcuxClMemory_copy with flow protection with buffer. More...
 

Functions

 MCUX_CSSL_FP_PROTECTED_TYPE (void) mcuxClMemory_copy(uint8_t *pDst
 Copies a memory buffer to another location. More...
 

Variables

uint8_t const * pSrc
 
uint8_t const size_t length
 
uint8_t const size_t size_t bufLength
 

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

◆ MCUX_CSSL_FP_PROTECTED_TYPE()

MCUX_CSSL_FP_PROTECTED_TYPE ( void  )

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