SEcube
SEcube Open Source Library - Host
SHA256 functions

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...
 

Detailed Description

Function Documentation

int32_t B5_Sha256_Finit ( B5_tSha256Ctx ctx,
uint8_t *  rDigest 
)

De-initialize the current SHA256 context.

Parameters
ctxPointer to the SHA context to de-initialize.
rDigestPointer to a blank memory area that can store the computed output digest.
Returns
See SHA256 return values .
int32_t B5_Sha256_Init ( B5_tSha256Ctx ctx)

Initialize the SHA256 context.

Parameters
ctxPointer to the SHA256 data structure to be initialized.
Returns
See SHA256 return values .
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.

Parameters
ctxPointer to the current SHA context.
dataPointer to the input data.
dataLenBytes to be processed.
Returns
See SHA256 return values .