SEcube
SEcube Open Source Library - Device
|
HMAC-SHA256 functions | |
int32_t | B5_HmacSha256_Init (B5_tHmacSha256Ctx *ctx, const uint8_t *Key, int16_t keySize) |
Initialize the HMAC-SHA256 context. More... | |
int32_t | B5_HmacSha256_Update (B5_tHmacSha256Ctx *ctx, const uint8_t *data, int32_t dataLen) |
Compute the HMAC-SHA256 algorithm on input data depending on the current status of the HMAC-SHA256 context. More... | |
int32_t | B5_HmacSha256_Finit (B5_tHmacSha256Ctx *ctx, uint8_t *rDigest) |
De-initialize the current HMAC-SHA256 context. More... | |
int32_t B5_HmacSha256_Finit | ( | B5_tHmacSha256Ctx * | ctx, |
uint8_t * | rDigest | ||
) |
De-initialize the current HMAC-SHA256 context.
ctx | Pointer to the HMAC-SHA256 context to de-initialize. |
rDigest | Pointer to a blank memory area that can store the computed output digest. |
int32_t B5_HmacSha256_Init | ( | B5_tHmacSha256Ctx * | ctx, |
const uint8_t * | Key, | ||
int16_t | keySize | ||
) |
Initialize the HMAC-SHA256 context.
ctx | Pointer to the HMAC-SHA256 data structure to be initialized. |
Key | Pointer to the Key that must be used. |
keySize | Key size. |
int32_t B5_HmacSha256_Update | ( | B5_tHmacSha256Ctx * | ctx, |
const uint8_t * | data, | ||
int32_t | dataLen | ||
) |
Compute the HMAC-SHA256 algorithm on input data depending on the current status of the HMAC-SHA256 context.
ctx | Pointer to the current HMAC-SHA256 context. |
data | Pointer to the input data. |
dataLen | Bytes to be processed. |