From f3953c878e756fc2f6366787609cf14685648321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 23 Feb 2023 09:39:05 +0100 Subject: [PATCH] Clarify relationship between MD_C and MD_LIGHT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Pégourié-Gonnard --- include/mbedtls/mbedtls_config.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/mbedtls/mbedtls_config.h b/include/mbedtls/mbedtls_config.h index 41a007ea9..b1c9db945 100644 --- a/include/mbedtls/mbedtls_config.h +++ b/include/mbedtls/mbedtls_config.h @@ -2644,6 +2644,7 @@ * \def MBEDTLS_MD_C * * Enable the generic layer for message digest (hashing) and HMAC. + * This will automatically enabled MBEDTLS_MD_LIGHT * * Requires: one of: MBEDTLS_MD5_C, MBEDTLS_RIPEMD160_C, MBEDTLS_SHA1_C, * MBEDTLS_SHA224_C, MBEDTLS_SHA256_C, MBEDTLS_SHA384_C, @@ -2676,10 +2677,10 @@ * \def MBEDTLS_MD_LIGHT * * Enable the "light" subset of MBEDTLS_MD_C: just hashing and basic - * meta-data. + * meta-data (see md.h for details). * * This is automatically enabled whenever MBEDTLS_MD_C is enabled, but it is - * possible to enable this with MBEDTLS_MD_C if support for HMAC or extra + * possible to enable this without MBEDTLS_MD_C if support for HMAC or extra * metadata functions is not needed. * * Requires: one of: MBEDTLS_MD5_C, MBEDTLS_RIPEMD160_C, MBEDTLS_SHA1_C,