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

This function performs xor between src1 and src2, and saves result to dst. More...

Macros

#define MCUXCLMEMORY_FP_MEMORY_XOR(pDst, pSrc1, pSrc2, length)
 Helper macro to call mcuxClMemory_xor with flow protection.
 
#define MCUXCLMEMORY_FP_MEMORY_XOR_WITH_BUFF(pDst, pSrc1, pSrc2, length, bufLen)
 Helper macro to call mcuxClMemory_xor with flow protection with buffer.
 

Functions

void mcuxClMemory_xor (uint8_t *pDst, const uint8_t *pSrc1, const uint8_t *pSrc2, uint32_t length, size_t bufLength)
 Perform xor for 2 memory buffers.
 

Detailed Description

This function performs xor between src1 and src2, and saves result to dst.

Macro Definition Documentation

◆ MCUXCLMEMORY_FP_MEMORY_XOR

#define MCUXCLMEMORY_FP_MEMORY_XOR (   pDst,
  pSrc1,
  pSrc2,
  length 
)

Helper macro to call mcuxClMemory_xor with flow protection.

◆ MCUXCLMEMORY_FP_MEMORY_XOR_WITH_BUFF

#define MCUXCLMEMORY_FP_MEMORY_XOR_WITH_BUFF (   pDst,
  pSrc1,
  pSrc2,
  length,
  bufLen 
)

Helper macro to call mcuxClMemory_xor with flow protection with buffer.

Function Documentation

◆ mcuxClMemory_xor()

void mcuxClMemory_xor ( uint8_t *  pDst,
const uint8_t *  pSrc1,
const uint8_t *  pSrc2,
uint32_t  length,
size_t  bufLength 
)

Perform xor for 2 memory buffers.

Operation in place is allowed - one of the input buffer can also be the output buffer.

Parameters
[out]pDstpointer to the destination buffer.
[in]pSrc1pointer to the first source buffer.
[in]pSrc2pointer to the second source buffer.
[in]lengthsize (in bytes) to be operated
[in]bufLengthbuffer size (if bufLength < length, only bufLength bytes are operated).