14 #define B5_SHA256_RES_OK ( 0) 16 #define B5_SHA256_RES_INVALID_CONTEXT (-1) 17 #define B5_SHA256_RES_CANNOT_ALLOCATE_CONTEXT (-2) 18 #define B5_SHA256_RES_INVALID_ARGUMENT (-3) 29 #define B5_SHA256_DIGEST_SIZE 32 31 #define B5_SHA256_BLOCK_SIZE 64 89 #define B5_HMAC_SHA256_RES_OK ( 0) 91 #define B5_HMAC_SHA256_RES_INVALID_CONTEXT (-1) 92 #define B5_HMAC_SHA256_RES_CANNOT_ALLOCATE_CONTEXT (-2) 93 #define B5_HMAC_SHA256_RES_INVALID_ARGUMENT (-3) 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 co...
Definition: sha256.c:369
int32_t B5_HmacSha256_Finit(B5_tHmacSha256Ctx *ctx, uint8_t *rDigest)
De-initialize the current HMAC-SHA256 context.
Definition: sha256.c:393
int32_t B5_HmacSha256_Init(B5_tHmacSha256Ctx *ctx, const uint8_t *Key, int16_t keySize)
Initialize the HMAC-SHA256 context.
Definition: sha256.c:316
int32_t B5_Sha256_Finit(B5_tSha256Ctx *ctx, uint8_t *rDigest)
De-initialize the current SHA256 context.
Definition: sha256.c:262
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...
Definition: sha256.c:210
int32_t B5_Sha256_Init(B5_tSha256Ctx *ctx)
Initialize the SHA256 context.
Definition: sha256.c:181