From 9b3278b263b9990c80fccb111aab48938ac9d8dd Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 9 Jun 2022 19:09:38 +0200 Subject: [PATCH] Doc: the SHA256/SHA512 options also cover SHA224/SHA384 Signed-off-by: Gilles Peskine --- include/mbedtls/mbedtls_config.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/include/mbedtls/mbedtls_config.h b/include/mbedtls/mbedtls_config.h index 9c8ec11a7..e3e168bd8 100644 --- a/include/mbedtls/mbedtls_config.h +++ b/include/mbedtls/mbedtls_config.h @@ -2813,9 +2813,9 @@ /** * \def MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT * - * Enable acceleration of the SHA-256 cryptographic hash algorithm with the - * Arm A64 cryptographic extensions if they are available at runtime. If not, - * it will fall back to the C implementation. + * Enable acceleration of the SHA-256 and SHA-224 cryptographic hash algorithms + * with the ARMv8 cryptographic extensions if they are available at runtime. + * If not, the library will fall back to the C implementation. * * \note If MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT is defined when building * for a non-Aarch64 build it will be silently ignored. @@ -2838,9 +2838,9 @@ /** * \def MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY * - * Enable acceleration of the SHA-256 cryptographic hash algorithm with the - * Arm A64 cryptographic extensions, which must be available at runtime (or - * an illegal instruction fault will occur). + * Enable acceleration of the SHA-256 and SHA-224 cryptographic hash algorithms + * with the ARMv8 cryptographic extensions, which must be available at runtime + * or else an illegal instruction fault will occur. * * \note This allows builds with a smaller code size than with * MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT @@ -2896,9 +2896,9 @@ /** * \def MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT * - * Enable acceleration of the SHA-512 cryptographic hash algorithm with the - * Arm A64 cryptographic extensions if they are available at runtime. If not, - * it will fall back to the C implementation. + * Enable acceleration of the SHA-512 and SHA-384 cryptographic hash algorithms + * with the ARMv8 cryptographic extensions if they are available at runtime. + * If not, the library will fall back to the C implementation. * * \note If MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT is defined when building * for a non-Aarch64 build it will be silently ignored. @@ -2923,9 +2923,9 @@ /** * \def MBEDTLS_SHA512_USE_A64_CRYPTO_ONLY * - * Enable acceleration of the SHA-512 cryptographic hash algorithm with the - * Arm A64 cryptographic extensions, which must be available at runtime (or - * an illegal instruction fault will occur). + * Enable acceleration of the SHA-512 and SHA-384 cryptographic hash algorithms + * with the ARMv8 cryptographic extensions, which must be available at runtime + * or else an illegal instruction fault will occur. * * \note This allows builds with a smaller code size than with * MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT