Skip to content

Commit

Permalink
Reset cipher module at the end of cmac
Browse files Browse the repository at this point in the history
  • Loading branch information
abonnaudet-ledger committed Jan 19, 2024
1 parent 814940c commit dd058df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib_cxng/src/cx_cmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ cx_err_t cx_cmac_finish(cx_cipher_context_t *ctx, uint8_t *output)
memset(sub_key1, 0, CMAC_MAX_BLOCK_LENGTH);
memset(sub_key2, 0, CMAC_MAX_BLOCK_LENGTH);
explicit_bzero(ctx->cmac_ctx, sizeof(cx_cmac_context_t));
ctx->cipher_info->base->ctx_reset();
return error;
}

Expand Down

0 comments on commit dd058df

Please sign in to comment.