mcuxCsslMemory_Copy Function Definitions More...
Functions | |
| mcuxCsslMemory_Status_t | mcuxCsslMemory_Copy (mcuxCsslParamIntegrity_Checksum_t chk, void const *pSrc, void *pDst, uint32_t dstLength, uint32_t length) |
Copies length bytes of data from pSrc to pDst. | |
mcuxCsslMemory_Copy Function Definitions
| mcuxCsslMemory_Status_t mcuxCsslMemory_Copy | ( | mcuxCsslParamIntegrity_Checksum_t | chk, |
| void const * | pSrc, | ||
| void * | pDst, | ||
| uint32_t | dstLength, | ||
| uint32_t | length ) |
Copies length bytes of data from pSrc to pDst.
The implementation is secure in the following aspects:
pSrc and pDst have the same offset to the nearest 16-byte boundary, and if length is the same, the execution sequence of the code is always identical.pDst beyond dstLength bytes.| [in] | chk | The parameter checksum, generated with #MCUX_CSSL_PI_PROTECT. |
| [in] | pSrc | The data to be copied. Must not be NULL. Must not overlap with pDst. |
| [out] | pDst | The destination pointer. Must not be NULL. Must not overlap with pSrc. |
| [in] | dstLength | The size of the destination data buffer in bytes. |
| [in] | length | The number of bytes to copy. |
| MCUXCSSLMEMORY_STATUS_OK | If the operation was successful. |
| MCUXCSSLMEMORY_STATUS_INVALID_PARAMETER | If one of the parameters was invalid (i.e. pSrc or pDst was NULL or length was zero). |
| MCUXCSSLMEMORY_STATUS_FAULT | If a fault was detected. |