PSoC 6 Peripheral Driver Library

General Description

Functions

__STATIC_INLINE void Cy_Crypto_Core_MemCpy (CRYPTO_Type *base, void *dst, void const *src, uint16_t size)
 Function MemCpy uses Crypto HW. More...
 
__STATIC_INLINE void Cy_Crypto_Core_MemSet (CRYPTO_Type *base, void *dst, uint8_t data, uint16_t size)
 Function MemSet uses Crypto HW. More...
 
__STATIC_INLINE uint32_t Cy_Crypto_Core_MemCmp (CRYPTO_Type *base, void const *src0, void const *src1, uint16_t size)
 Function MemCmp uses Crypto HW. More...
 
__STATIC_INLINE void Cy_Crypto_Core_MemXor (CRYPTO_Type *base, void *dst, void const *src0, void const *src1, uint16_t size)
 Function MemXor uses Crypto HW. More...
 

Function Documentation

◆ Cy_Crypto_Core_MemCpy()

__STATIC_INLINE void Cy_Crypto_Core_MemCpy ( CRYPTO_Type *  base,
void *  dst,
void const *  src,
uint16_t  size 
)

Function MemCpy uses Crypto HW.

Memory structures should not overlap! There is no alignment restriction.

Parameters
baseThe pointer to the CRYPTO instance.
dstThe pointer to the destination of MemCpy.
srcThe pointer to the source of MemCpy.
sizeThe size in bytes of the copy operation.

◆ Cy_Crypto_Core_MemSet()

__STATIC_INLINE void Cy_Crypto_Core_MemSet ( CRYPTO_Type *  base,
void *  dst,
uint8_t  data,
uint16_t  size 
)

Function MemSet uses Crypto HW.

There is no alignment restriction.

Parameters
baseThe pointer to the CRYPTO instance.
dstThe pointer to the destination of MemSet.
dataThe value to be set.
sizeThe size in bytes of the set operation.

◆ Cy_Crypto_Core_MemCmp()

__STATIC_INLINE uint32_t Cy_Crypto_Core_MemCmp ( CRYPTO_Type *  base,
void const *  src0,
void const *  src1,
uint16_t  size 
)

Function MemCmp uses Crypto HW.

There is no alignment restriction.

Parameters
baseThe pointer to the CRYPTO instance.
src0The pointer to the first source of MemCmp.
src1The pointer to the second source of MemCmp.
sizethe size in bytes of the compare operation.
Returns
0 - if Source 1 = Source 2, 1 - if not.

◆ Cy_Crypto_Core_MemXor()

__STATIC_INLINE void Cy_Crypto_Core_MemXor ( CRYPTO_Type *  base,
void *  dst,
void const *  src0,
void const *  src1,
uint16_t  size 
)

Function MemXor uses Crypto HW.

Memory structures should not overlap! There is no alignment restriction.

Parameters
baseThe pointer to the CRYPTO instance.
dstThe pointer to the destination of MemXor.
src0The pointer to the first source of MemXor.
src1The pointer to the second source of MemXor.
sizeThe size in bytes of the compare operation.