diff --git a/library/cmac.c b/library/cmac.c index 2e9c1a1bd..1963ba043 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: