Functions | |
| cy_en_crypto_status_t | Cy_Crypto_Core_Cleanup (CRYPTO_Type *base) |
| Cleans up the Crypto block. More... | |
| void | Cy_Crypto_Core_Vu_SetMemValue (CRYPTO_Type *base, uint32_t dstReg, uint8_t const *src, uint32_t size) |
| Sets the value in the Crypto memory allocated by the destination VU register. More... | |
| void | Cy_Crypto_Core_Vu_GetMemValue (CRYPTO_Type *base, uint8_t *dst, uint32_t srcReg, uint32_t size) |
| Gets the value located in the crypto memory and pointed by source VU register. More... | |
| bool | Cy_Crypto_Core_Vu_IsRegZero (CRYPTO_Type *base, uint32_t srcReg) |
| Returns TRUE if srcReg contains 0. More... | |
| bool | Cy_Crypto_Core_Vu_IsRegEqual (CRYPTO_Type *base, uint32_t srcReg0, uint32_t srcReg1) |
| Returns TRUE if srcReg0 contains the same value as srcReg1. More... | |
| bool | Cy_Crypto_Core_Vu_IsRegLess (CRYPTO_Type *base, uint32_t srcReg0, uint32_t srcReg1) |
| Returns TRUE if srcReg0 contains the value less than value of srcReg1. More... | |
| __STATIC_INLINE uint32_t | Cy_Crypto_Core_Vu_RegRead (CRYPTO_Type *base, uint32_t srcReg) |
| Returns the data pointed in a given register. More... | |
| __STATIC_INLINE uint16_t | Cy_Crypto_Core_Vu_RegSizeRead (CRYPTO_Type *base, uint32_t srcReg) |
| Returns size of the data pointed in given register, it is lower 12Bit of the 32Bit word. More... | |
| __STATIC_INLINE uint16_t | Cy_Crypto_Core_Vu_RegBitSizeRead (CRYPTO_Type *base, uint32_t srcReg) |
| Returns size of the data pointed in given register, in Bits. More... | |
| __STATIC_INLINE uint16_t | Cy_Crypto_Core_Vu_RegByteSizeRead (CRYPTO_Type *base, uint32_t srcReg) |
| Returns size of the data pointed in given register, in Bytes. More... | |
| __STATIC_INLINE uint16_t | Cy_Crypto_Core_Vu_RegWordSizeRead (CRYPTO_Type *base, uint32_t srcReg) |
| Returns size of the data pointed in given register, in words (uint32_t). More... | |
| __STATIC_INLINE uint16_t | Cy_Crypto_Core_Vu_RegDataPtrRead (CRYPTO_Type *base, uint32_t srcReg) |
| Returns the data pointer, in 14-bit format of the data pointed in given register, it is upper 16Bit of the 32Bir word. More... | |
| __STATIC_INLINE uint32_t * | Cy_Crypto_Core_Vu_RegMemPointer (CRYPTO_Type *base, uint32_t srcReg) |
| Returns the memory address of the data pointed in given register. More... | |
| __STATIC_INLINE uint32_t | Cy_Crypto_Core_Vu_StatusRead (CRYPTO_Type *base) |
| Returns the value of the VU status register. More... | |
| void | Cy_Crypto_Core_VU_RegInvertEndianness (CRYPTO_Type *base, uint32_t srcReg) |
| Reverts the memory data block pointed in given register. More... | |
| cy_en_crypto_status_t Cy_Crypto_Core_Cleanup | ( | CRYPTO_Type * | base | ) |
Cleans up the Crypto block.
| base | The pointer to the CRYPTO instance. |
| void Cy_Crypto_Core_Vu_SetMemValue | ( | CRYPTO_Type * | base, |
| uint32_t | dstReg, | ||
| uint8_t const * | src, | ||
| uint32_t | size | ||
| ) |
Sets the value in the Crypto memory allocated by the destination VU register.
| base | The pointer to the CRYPTO instance. |
| dstReg | The destination vector unit register. |
| src | The pointer to the source value. |
| size | The size of the operated value. |
| void Cy_Crypto_Core_Vu_GetMemValue | ( | CRYPTO_Type * | base, |
| uint8_t * | dst, | ||
| uint32_t | srcReg, | ||
| uint32_t | size | ||
| ) |
Gets the value located in the crypto memory and pointed by source VU register.
| base | The pointer to the CRYPTO instance. |
| dst | The pointer to the destination value. |
| srcReg | The source vector unit register. |
| size | The size of the operated value. |
| bool Cy_Crypto_Core_Vu_IsRegZero | ( | CRYPTO_Type * | base, |
| uint32_t | srcReg | ||
| ) |
Returns TRUE if srcReg contains 0.
FALSE - otherwise.
| base | The pointer to the CRYPTO instance. |
| srcReg | The source vector unit register. |
| bool Cy_Crypto_Core_Vu_IsRegEqual | ( | CRYPTO_Type * | base, |
| uint32_t | srcReg0, | ||
| uint32_t | srcReg1 | ||
| ) |
Returns TRUE if srcReg0 contains the same value as srcReg1.
FALSE - otherwise.
| base | The pointer to the CRYPTO instance. |
| srcReg0 | The source 0 vector unit register. |
| srcReg1 | The source 1 vector unit register. |
| bool Cy_Crypto_Core_Vu_IsRegLess | ( | CRYPTO_Type * | base, |
| uint32_t | srcReg0, | ||
| uint32_t | srcReg1 | ||
| ) |
Returns TRUE if srcReg0 contains the value less than value of srcReg1.
FALSE - otherwise.
| base | The pointer to the CRYPTO instance. |
| srcReg0 | The source 0 vector unit register. |
| srcReg1 | The source 1 vector unit register. |
| __STATIC_INLINE uint32_t Cy_Crypto_Core_Vu_RegRead | ( | CRYPTO_Type * | base, |
| uint32_t | srcReg | ||
| ) |
Returns the data pointed in a given register.
| base | The pointer to the CRYPTO instance. |
| srcReg | The source vector unit register. |
| __STATIC_INLINE uint16_t Cy_Crypto_Core_Vu_RegSizeRead | ( | CRYPTO_Type * | base, |
| uint32_t | srcReg | ||
| ) |
Returns size of the data pointed in given register, it is lower 12Bit of the 32Bit word.
| base | The pointer to the CRYPTO instance. |
| srcReg | The source vector unit register. |
| __STATIC_INLINE uint16_t Cy_Crypto_Core_Vu_RegBitSizeRead | ( | CRYPTO_Type * | base, |
| uint32_t | srcReg | ||
| ) |
Returns size of the data pointed in given register, in Bits.
It is lower 12Bit of the 32Bit word
| base | The pointer to the CRYPTO instance. |
| srcReg | The source vector unit register. |
| __STATIC_INLINE uint16_t Cy_Crypto_Core_Vu_RegByteSizeRead | ( | CRYPTO_Type * | base, |
| uint32_t | srcReg | ||
| ) |
Returns size of the data pointed in given register, in Bytes.
It is lower 12Bit of the 32Bit word
| base | The pointer to the CRYPTO instance. |
| srcReg | The source vector unit register. |
| __STATIC_INLINE uint16_t Cy_Crypto_Core_Vu_RegWordSizeRead | ( | CRYPTO_Type * | base, |
| uint32_t | srcReg | ||
| ) |
Returns size of the data pointed in given register, in words (uint32_t).
It is lower 12Bit of the 32Bit word
| base | The pointer to the CRYPTO instance. |
| srcReg | The source vector unit register. |
| __STATIC_INLINE uint16_t Cy_Crypto_Core_Vu_RegDataPtrRead | ( | CRYPTO_Type * | base, |
| uint32_t | srcReg | ||
| ) |
Returns the data pointer, in 14-bit format of the data pointed in given register, it is upper 16Bit of the 32Bir word.
Pointer is in words (uint32_t).
| base | The pointer to the CRYPTO instance. |
| srcReg | The source vector unit register. |
| __STATIC_INLINE uint32_t* Cy_Crypto_Core_Vu_RegMemPointer | ( | CRYPTO_Type * | base, |
| uint32_t | srcReg | ||
| ) |
Returns the memory address of the data pointed in given register.
| base | The pointer to the CRYPTO instance. |
| srcReg | The source vector unit register. |
| __STATIC_INLINE uint32_t Cy_Crypto_Core_Vu_StatusRead | ( | CRYPTO_Type * | base | ) |
Returns the value of the VU status register.
| base | The pointer to the CRYPTO instance. |
| void Cy_Crypto_Core_VU_RegInvertEndianness | ( | CRYPTO_Type * | base, |
| uint32_t | srcReg | ||
| ) |
Reverts the memory data block pointed in given register.
| base | The pointer to the CRYPTO instance. |
| srcReg | The source vector unit register. |