From 2e8f6aabc22f42f045859c8027054acdab87c5eb Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Sat, 24 Jun 2023 17:32:18 +0100 Subject: [PATCH] Fix direct use of cipher_info->type Signed-off-by: Dave Rodgman --- library/cmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cmac.c b/library/cmac.c index 2e9c1a1bdb..1963ba0439 100644 --- a/library/cmac.c +++ b/library/cmac.c @@ -186,7 +186,7 @@ int mbedtls_cipher_cmac_starts(mbedtls_cipher_context_t *ctx, return retval; } - type = ctx->cipher_info->type; + type = mbedtls_cipher_info_get_type(ctx->cipher_info); switch (type) { case MBEDTLS_CIPHER_AES_128_ECB: