From dd058dfd447296854091bb2ac5bf2352be9b0932 Mon Sep 17 00:00:00 2001 From: Arthur Bonnaudet Date: Fri, 19 Jan 2024 16:15:00 +0100 Subject: [PATCH] Reset cipher module at the end of cmac --- lib_cxng/src/cx_cmac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib_cxng/src/cx_cmac.c b/lib_cxng/src/cx_cmac.c index 33252f984..d3409999a 100644 --- a/lib_cxng/src/cx_cmac.c +++ b/lib_cxng/src/cx_cmac.c @@ -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; }