Use MBEDTLS_HAVE_NEON_INTRINSICS in aesce

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-11-30 09:38:38 +00:00
parent d879b47b52
commit 12d1c3ad4f
2 changed files with 5 additions and 3 deletions

View file

@ -45,7 +45,7 @@
#include "aesce.h"
#if defined(MBEDTLS_ARCH_IS_ARMV8_A) && defined(__ARM_NEON)
#if defined(MBEDTLS_ARCH_IS_ARMV8_A) && defined(MBEDTLS_HAVE_NEON_INTRINSICS)
/* Compiler version checks. */
#if defined(__clang__)

View file

@ -15,11 +15,13 @@
#define MBEDTLS_AESCE_H
#include "mbedtls/build_info.h"
#include "common.h"
#include "mbedtls/aes.h"
#if defined(MBEDTLS_AESCE_C) && defined(MBEDTLS_ARCH_IS_ARMV8_A) && defined(__ARM_NEON)
#if defined(MBEDTLS_AESCE_C) && defined(MBEDTLS_ARCH_IS_ARMV8_A) && \
defined(MBEDTLS_HAVE_NEON_INTRINSICS)
#define MBEDTLS_AESCE_HAVE_CODE
@ -124,6 +126,6 @@ int mbedtls_aesce_setkey_enc(unsigned char *rk,
#error "AES hardware acceleration not supported on this platform"
#endif
#endif /* MBEDTLS_AESCE_C && MBEDTLS_ARCH_IS_ARMV8_A && __ARM_NEON */
#endif /* MBEDTLS_AESCE_C && MBEDTLS_ARCH_IS_ARMV8_A && MBEDTLS_HAVE_NEON_INTRINSICS */
#endif /* MBEDTLS_AESCE_H */