MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClMemory_Copy_Reversed

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

Macros

#define MCUXCLMEMORY_FP_MEMORY_COPY_REVERSED(pTarget, pSource, byteLen)
 Helper macro to call mcuxClMemory_copy_reversed with flow protection. More...
 

Functions

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

Detailed Description

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

Macro Definition Documentation

◆ MCUXCLMEMORY_FP_MEMORY_COPY_REVERSED

#define MCUXCLMEMORY_FP_MEMORY_COPY_REVERSED (   pTarget,
  pSource,
  byteLen 
)

Helper macro to call mcuxClMemory_copy_reversed with flow protection.

Function Documentation

◆ mcuxClMemory_copy_reversed()

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

Copies a memory buffer to another location reversely.

If the destination buffer is too small, i.e. if bufLength < length, then only bufLength bytes are copied reversely.

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