Functions | |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void | Cy_Cryptolite_Vu_WaitForComplete (CRYPTOLITE_Type *base) |
This function waits for the Vector Unit operation complete. More... | |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void | Cy_Cryptolite_Vu_XMul_Hw (CRYPTOLITE_Type *base, uint8_t *val1Ptr, uint32_t val1Size, uint8_t *val2Ptr, uint32_t val2Size, uint8_t *result, uint32_t resultSize) |
This function performs long integer multiplication operation. More... | |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void | Cy_Cryptolite_Vu_Mul_Hw (CRYPTOLITE_Type *base, uint8_t *val1Ptr, uint32_t val1Size, uint8_t *val2Ptr, uint32_t val2Size, uint8_t *result, uint32_t resultSize) |
This function performs multiplication operation. More... | |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void | Cy_Cryptolite_Vu_Add_Hw (CRYPTOLITE_Type *base, uint8_t *val1Ptr, uint32_t val1Size, uint8_t *val2Ptr, uint32_t val2Size, uint8_t *result, uint32_t resultSize) |
This function performs addition operation. More... | |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void | Cy_Cryptolite_Vu_Sub_Hw (CRYPTOLITE_Type *base, uint8_t *val1Ptr, uint32_t val1Size, uint8_t *val2Ptr, uint32_t val2Size, uint8_t *result, uint32_t resultSize) |
This function performs subtraction operation. More... | |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void | Cy_Cryptolite_Vu_Cond_Sub_Hw (CRYPTOLITE_Type *base, uint8_t *val1Ptr, uint32_t val1Size, uint8_t *val2Ptr, uint32_t val2Size, uint8_t *result, uint32_t resultSize) |
This function performs conditional subtraction operation. More... | |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void | Cy_Cryptolite_Vu_Xor_Hw (CRYPTOLITE_Type *base, uint8_t *val1Ptr, uint32_t val1Size, uint8_t *val2Ptr, uint32_t val2Size, uint8_t *result, uint32_t resultSize) |
This function performs XOR operation. More... | |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void | Cy_Cryptolite_Vu_Mov_Hw (CRYPTOLITE_Type *base, uint8_t *srcPtr, uint32_t srcSize, uint8_t *dstPtr, uint32_t dstSize) |
This function performs copy/move operation. More... | |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void | Cy_Cryptolite_Vu_Lsl1_Hw (CRYPTOLITE_Type *base, uint8_t *dataPtr, uint32_t dataSize, uint8_t *dstPtr, uint32_t dstSize) |
This function performs one bit left shift operation. More... | |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void | Cy_Cryptolite_Vu_Lsr1_Hw (CRYPTOLITE_Type *base, uint8_t *dataPtr, uint32_t dataSize, uint8_t *dstPtr, uint32_t dstSize) |
This function performs one bit right shift operation. More... | |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void | Cy_Cryptolite_Vu_Lsr_Hw (CRYPTOLITE_Type *base, uint8_t *dataPtr, uint32_t dataSize, uint32_t bitShift, uint8_t *dstPtr, uint32_t dstSize) |
This function performs left shift by specific given number. More... | |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void Cy_Cryptolite_Vu_WaitForComplete | ( | CRYPTOLITE_Type * | base | ) |
This function waits for the Vector Unit operation complete.
base | The pointer to the Cryptolite instance. |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void Cy_Cryptolite_Vu_XMul_Hw | ( | CRYPTOLITE_Type * | base, |
uint8_t * | val1Ptr, | ||
uint32_t | val1Size, | ||
uint8_t * | val2Ptr, | ||
uint32_t | val2Size, | ||
uint8_t * | result, | ||
uint32_t | resultSize | ||
) |
This function performs long integer multiplication operation.
This operation is a carry-less long integer multiplication operation.
base | The pointer to the Cryptolite instance. |
val1Ptr | The pointer to the 1st operand. |
val1Size | Length of the first operand in word size. |
val2Ptr | The pointer to the 2nd operand. |
val2Size | Length of the second operand in word size. |
result | The pointer to the output result |
resultSize | Length of the output result in word size. |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void Cy_Cryptolite_Vu_Mul_Hw | ( | CRYPTOLITE_Type * | base, |
uint8_t * | val1Ptr, | ||
uint32_t | val1Size, | ||
uint8_t * | val2Ptr, | ||
uint32_t | val2Size, | ||
uint8_t * | result, | ||
uint32_t | resultSize | ||
) |
This function performs multiplication operation.
base | The pointer to the Cryptolite instance. |
val1Ptr | The pointer to the 1st operand. |
val1Size | Length of the first operand in word size. |
val2Ptr | The pointer to the 2nd operand. |
val2Size | Length of the second operand in word size. |
result | The pointer to the output result |
resultSize | Length of the output result in word size. |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void Cy_Cryptolite_Vu_Add_Hw | ( | CRYPTOLITE_Type * | base, |
uint8_t * | val1Ptr, | ||
uint32_t | val1Size, | ||
uint8_t * | val2Ptr, | ||
uint32_t | val2Size, | ||
uint8_t * | result, | ||
uint32_t | resultSize | ||
) |
This function performs addition operation.
base | The pointer to the Cryptolite instance. |
val1Ptr | The pointer to the 1st operand. |
val1Size | Length of the first operand in word size. |
val2Ptr | The pointer to the 2nd operand. |
val2Size | Length of the second operand in word size. |
result | The pointer to the output result |
resultSize | Length of the output result in word size. |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void Cy_Cryptolite_Vu_Sub_Hw | ( | CRYPTOLITE_Type * | base, |
uint8_t * | val1Ptr, | ||
uint32_t | val1Size, | ||
uint8_t * | val2Ptr, | ||
uint32_t | val2Size, | ||
uint8_t * | result, | ||
uint32_t | resultSize | ||
) |
This function performs subtraction operation.
base | The pointer to the Cryptolite instance. |
val1Ptr | The pointer to the 1st operand. |
val1Size | Length of the first operand. |
val2Ptr | The pointer to the 2nd operand. |
val2Size | Length of the second operand in word size. |
result | The pointer to the output result |
resultSize | Length of the output result in word size. |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void Cy_Cryptolite_Vu_Cond_Sub_Hw | ( | CRYPTOLITE_Type * | base, |
uint8_t * | val1Ptr, | ||
uint32_t | val1Size, | ||
uint8_t * | val2Ptr, | ||
uint32_t | val2Size, | ||
uint8_t * | result, | ||
uint32_t | resultSize | ||
) |
This function performs conditional subtraction operation.
base | The pointer to the Cryptolite instance. |
val1Ptr | The pointer to the 1st operand. |
val1Size | Length of the first operand in word size. |
val2Ptr | The pointer to the 2nd operand. |
val2Size | Length of the second operand in word size. |
result | The pointer to the output result |
resultSize | Length of the output result in word size. |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void Cy_Cryptolite_Vu_Xor_Hw | ( | CRYPTOLITE_Type * | base, |
uint8_t * | val1Ptr, | ||
uint32_t | val1Size, | ||
uint8_t * | val2Ptr, | ||
uint32_t | val2Size, | ||
uint8_t * | result, | ||
uint32_t | resultSize | ||
) |
This function performs XOR operation.
base | The pointer to the Cryptolite instance. |
val1Ptr | The pointer to the 1st operand. |
val1Size | Length of the first operand in word size. |
val2Ptr | The pointer to the 2nd operand. |
val2Size | Length of the second operand in word size. |
result | The pointer to the output result |
resultSize | Length of the output result in word size. |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void Cy_Cryptolite_Vu_Mov_Hw | ( | CRYPTOLITE_Type * | base, |
uint8_t * | srcPtr, | ||
uint32_t | srcSize, | ||
uint8_t * | dstPtr, | ||
uint32_t | dstSize | ||
) |
This function performs copy/move operation.
base | The pointer to the Cryptolite instance. |
srcPtr | The pointer to the source buffer. |
srcSize | Length of the source buffer in word size. |
dstPtr | The pointer to destination buffer |
dstSize | Length of the destination buffer in word size. |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void Cy_Cryptolite_Vu_Lsl1_Hw | ( | CRYPTOLITE_Type * | base, |
uint8_t * | dataPtr, | ||
uint32_t | dataSize, | ||
uint8_t * | dstPtr, | ||
uint32_t | dstSize | ||
) |
This function performs one bit left shift operation.
base | The pointer to the Cryptolite instance. |
dataPtr | The pointer to the input data buffer. |
dataSize | Length of the input data buffer in word size. |
dstPtr | The pointer to destination buffer |
dstSize | Length of the destination buffer in word size. |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void Cy_Cryptolite_Vu_Lsr1_Hw | ( | CRYPTOLITE_Type * | base, |
uint8_t * | dataPtr, | ||
uint32_t | dataSize, | ||
uint8_t * | dstPtr, | ||
uint32_t | dstSize | ||
) |
This function performs one bit right shift operation.
base | The pointer to the Cryptolite instance. |
dataPtr | The pointer to the input data buffer. |
dataSize | Length of the input data buffer in word size. |
dstPtr | The pointer to destination buffer |
dstSize | Length of the destination buffer in word size. |
ATTRIBUTES_CRYPTOLITE_RSA __STATIC_INLINE void Cy_Cryptolite_Vu_Lsr_Hw | ( | CRYPTOLITE_Type * | base, |
uint8_t * | dataPtr, | ||
uint32_t | dataSize, | ||
uint32_t | bitShift, | ||
uint8_t * | dstPtr, | ||
uint32_t | dstSize | ||
) |
This function performs left shift by specific given number.
base | The pointer to the Cryptolite instance. |
dataPtr | The pointer to the input data buffer. |
bitShift | Number of bits to be shifted. |
dataSize | Length of the input data buffer in word size. |
dstPtr | The pointer to destination buffer |
dstSize | Length of the destination buffer in word size. |