Functions | |
cy_en_cryptolite_status_t | Cy_Cryptolite_Sha256_Init (CRYPTOLITE_Type *base, cy_stc_cryptolite_context_sha256_t *cfContext) |
The function to initialize the SHA256 operation. More... | |
cy_en_cryptolite_status_t | Cy_Cryptolite_Sha256_Start (CRYPTOLITE_Type *base, cy_stc_cryptolite_context_sha256_t *cfContext) |
Initializes the initial Hash vector. More... | |
cy_en_cryptolite_status_t | Cy_Cryptolite_Sha256_Update (CRYPTOLITE_Type *base, uint8_t const *message, uint32_t messageSize, cy_stc_cryptolite_context_sha256_t *cfContext) |
Performs the SHA256 calculation on one message. More... | |
cy_en_cryptolite_status_t | Cy_Cryptolite_Sha256_Finish (CRYPTOLITE_Type *base, uint8_t *digest, cy_stc_cryptolite_context_sha256_t *cfContext) |
Completes the SHA256 calculation. More... | |
cy_en_cryptolite_status_t | Cy_Cryptolite_Sha256_Free (CRYPTOLITE_Type *base, cy_stc_cryptolite_context_sha256_t *cfContext) |
Clears the used memory and context data. More... | |
cy_en_cryptolite_status_t | Cy_Cryptolite_Sha256_Run (CRYPTOLITE_Type *base, uint8_t const *message, uint32_t messageSize, uint8_t *digest, cy_stc_cryptolite_context_sha256_t *cfContext) |
This function performs the SHA256 Hash function. More... | |
cy_en_cryptolite_status_t Cy_Cryptolite_Sha256_Init | ( | CRYPTOLITE_Type * | base, |
cy_stc_cryptolite_context_sha256_t * | cfContext | ||
) |
The function to initialize the SHA256 operation.
base | The pointer to the Cryptolite instance. |
cfContext | The pointer to the cy_stc_cryptolite_context_sha256_t structure that stores all internal variables for Cryptolite driver. |
cy_en_cryptolite_status_t Cy_Cryptolite_Sha256_Start | ( | CRYPTOLITE_Type * | base, |
cy_stc_cryptolite_context_sha256_t * | cfContext | ||
) |
Initializes the initial Hash vector.
base | The pointer to the CRYPTOLITE instance. |
cfContext | The pointer to the cy_stc_cryptolite_context_sha256_t structure that stores all internal variables for Cryptolite driver. |
cy_en_cryptolite_status_t Cy_Cryptolite_Sha256_Update | ( | CRYPTOLITE_Type * | base, |
uint8_t const * | message, | ||
uint32_t | messageSize, | ||
cy_stc_cryptolite_context_sha256_t * | cfContext | ||
) |
Performs the SHA256 calculation on one message.
base | The pointer to the CRYPTOLITE instance. |
message | The address pointer to the message whose Hash is being computed. |
messageSize | The size of the message whose Hash is being computed. |
cfContext | The pointer to the cy_stc_cryptolite_context_sha256_t structure that stores all internal variables for Cryptolite driver. |
cy_en_cryptolite_status_t Cy_Cryptolite_Sha256_Finish | ( | CRYPTOLITE_Type * | base, |
uint8_t * | digest, | ||
cy_stc_cryptolite_context_sha256_t * | cfContext | ||
) |
Completes the SHA256 calculation.
base | The pointer to the CRYPTOLITE instance. |
digest | The address pointer to the calculated Hash digest. |
cfContext | The pointer to the cy_stc_cryptolite_context_sha256_t structure that stores all internal variables for Cryptolite driver. |
cy_en_cryptolite_status_t Cy_Cryptolite_Sha256_Free | ( | CRYPTOLITE_Type * | base, |
cy_stc_cryptolite_context_sha256_t * | cfContext | ||
) |
Clears the used memory and context data.
base | The pointer to the CRYPTOLITE instance. |
cfContext | The pointer to the cy_stc_cryptolite_context_sha256_t structure that stores all internal variables for Cryptolite driver. |
cy_en_cryptolite_status_t Cy_Cryptolite_Sha256_Run | ( | CRYPTOLITE_Type * | base, |
uint8_t const * | message, | ||
uint32_t | messageSize, | ||
uint8_t * | digest, | ||
cy_stc_cryptolite_context_sha256_t * | cfContext | ||
) |
This function performs the SHA256 Hash function.
Provide the required parameters and the pointer to the context structure when making this function call. It is independent of the previous Crypto state because it already contains preparation, calculation, and finalization steps.
base | The pointer to the CRYPTOLITE instance. |
message | The address pointer to a message whose hash value is being computed. |
messageSize | The size of a message in bytes. |
digest | The address pointer to the hash digest. |
cfContext | The pointer to the cy_stc_cryptolite_context_sha256_t structure that stores all internal variables for Cryptolite driver. |