8 #define B5_SHA256_RES_OK ( 0)
10 #define B5_SHA256_RES_INVALID_CONTEXT (-1)
11 #define B5_SHA256_RES_CANNOT_ALLOCATE_CONTEXT (-2)
12 #define B5_SHA256_RES_INVALID_ARGUMENT (-3)
23 #define B5_SHA256_DIGEST_SIZE 32
25 #define B5_SHA256_BLOCK_SIZE 64
65 int32_t
B5_Sha256_Update (B5_tSha256Ctx *ctx,
const uint8_t *data, int32_t dataLen);
83 #define B5_HMAC_SHA256_RES_OK ( 0)
85 #define B5_HMAC_SHA256_RES_INVALID_CONTEXT (-1)
86 #define B5_HMAC_SHA256_RES_CANNOT_ALLOCATE_CONTEXT (-2)
87 #define B5_HMAC_SHA256_RES_INVALID_ARGUMENT (-3)
121 int32_t
B5_HmacSha256_Init (B5_tHmacSha256Ctx *ctx,
const uint8_t *Key, int16_t keySize);
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:374
int32_t B5_HmacSha256_Init(B5_tHmacSha256Ctx *ctx, const uint8_t *Key, int16_t keySize)
Initialize the HMAC-SHA256 context.
Definition: sha256.c:321
int32_t B5_HmacSha256_Finit(B5_tHmacSha256Ctx *ctx, uint8_t *rDigest)
De-initialize the current HMAC-SHA256 context.
Definition: sha256.c:398
int32_t B5_Sha256_Finit(B5_tSha256Ctx *ctx, uint8_t *rDigest)
De-initialize the current SHA256 context.
Definition: sha256.c:267
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:215
int32_t B5_Sha256_Init(B5_tSha256Ctx *ctx)
Initialize the SHA256 context.
Definition: sha256.c:186