Make SHA256 depend on Armv8, not aarch64

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-10-03 18:02:56 +01:00
parent 5ed7b2dec2
commit cc5bf4946f
2 changed files with 3 additions and 4 deletions

View file

@ -865,9 +865,8 @@
#endif
#if defined(MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY) && \
!defined(__aarch64__) && !defined(_M_ARM64)
#error "MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY defined on non-Aarch64 system"
#if defined(MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY) && !defined(MBEDTLS_ARCH_IS_ARMV8)
#error "MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY defined on non-Armv8 system"
#endif
/* TLS 1.3 requires separate HKDF parts from PSA,

View file

@ -56,7 +56,7 @@
#include "mbedtls/platform.h"
#if defined(__aarch64__)
#if defined(MBEDTLS_ARCH_IS_ARMV8)
# if defined(MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT) || \
defined(MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY)