Skip to content

Commit

Permalink
lib_cxng/src/cx_hmac.c: Cleanup style
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Chapron committed Dec 19, 2023
1 parent 26fa5e8 commit 7f498c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib_cxng/src/cx_hmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ cx_err_t cx_hmac_init(cx_hmac_t *ctx, cx_md_t hash_id, const uint8_t *key, size_
return CX_INVALID_PARAMETER;
}

hash_ctx = &ctx->hash_ctx, memset(ctx, 0, sizeof(cx_hmac_t));
hash_ctx = &ctx->hash_ctx;
memset(ctx, 0, sizeof(cx_hmac_t));
size_t block_size = cx_get_block_size(hash_id);

if (key) {
Expand Down

0 comments on commit 7f498c2

Please sign in to comment.