MCUX CLNS MCUX Crypto Library Normal Secure |

Functions
mcuxClMemory_Copy
mcuxClMemory

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] | dst | pointer to the buffer to be copied.
  [in] | src | pointer to the buffer to copy.
  [in] | len | size (in bytes) to be copied.
  [in] | buflen | buffer 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.