SEcube open-source SDK
|
SHA256 functions | |
int32_t | B5_Sha256_Init (B5_tSha256Ctx *ctx) |
Initialize the SHA256 context. More... | |
int32_t | B5_Sha256_Update (B5_tSha256Ctx *ctx, const uint8_t *data, int32_t dataLen) |
Compute the SHA256 algorithm on input data depending on the current status of the SHA256 context. More... | |
int32_t | B5_Sha256_Finit (B5_tSha256Ctx *ctx, uint8_t *rDigest) |
De-initialize the current SHA256 context. More... | |
int32_t B5_Sha256_Finit | ( | B5_tSha256Ctx * | ctx, |
uint8_t * | rDigest | ||
) |
De-initialize the current SHA256 context.
ctx | Pointer to the SHA context to de-initialize. |
rDigest | Pointer to a blank memory area that can store the computed output digest. |
int32_t B5_Sha256_Init | ( | B5_tSha256Ctx * | ctx | ) |
Initialize the SHA256 context.
ctx | Pointer to the SHA256 data structure to be initialized. |
int32_t B5_Sha256_Update | ( | B5_tSha256Ctx * | ctx, |
const uint8_t * | data, | ||
int32_t | dataLen | ||
) |
Compute the SHA256 algorithm on input data depending on the current status of the SHA256 context.
ctx | Pointer to the current SHA context. |
data | Pointer to the input data. |
dataLen | Bytes to be processed. |