From 16bb83cb57f99538d9159711e39f8a4627706ee5 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 14 Jun 2023 17:42:26 +0200 Subject: [PATCH] Explicitly document that Camellia and ARIA aren't supported In particular, this explains why the definition of MBEDTLS_CIPHER_BLKSIZE_MAX is correct. Signed-off-by: Gilles Peskine --- include/mbedtls/cmac.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/mbedtls/cmac.h b/include/mbedtls/cmac.h index 3125e702e6..bb020800e2 100644 --- a/include/mbedtls/cmac.h +++ b/include/mbedtls/cmac.h @@ -5,6 +5,7 @@ * * The Cipher-based Message Authentication Code (CMAC) Mode for * Authentication is defined in RFC-4493: The AES-CMAC Algorithm. + * It is supported with AES and DES. */ /* * Copyright The Mbed TLS Contributors @@ -38,6 +39,7 @@ extern "C" { #define MBEDTLS_AES_BLOCK_SIZE 16 #define MBEDTLS_DES3_BLOCK_SIZE 8 +/* We don't support Camellia or ARIA in this module */ #if defined(MBEDTLS_AES_C) #define MBEDTLS_CIPHER_BLKSIZE_MAX 16 /**< The longest block used by CMAC is that of AES. */ #else