Use MBEDTLS_HAVE_NEON_INTRINSICS in aesce
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
d879b47b52
commit
12d1c3ad4f
2 changed files with 5 additions and 3 deletions
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
#include "aesce.h"
|
#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. */
|
/* Compiler version checks. */
|
||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
|
|
|
@ -15,11 +15,13 @@
|
||||||
#define MBEDTLS_AESCE_H
|
#define MBEDTLS_AESCE_H
|
||||||
|
|
||||||
#include "mbedtls/build_info.h"
|
#include "mbedtls/build_info.h"
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
#include "mbedtls/aes.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
|
#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"
|
#error "AES hardware acceleration not supported on this platform"
|
||||||
#endif
|
#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 */
|
#endif /* MBEDTLS_AESCE_H */
|
||||||
|
|
Loading…
Reference in a new issue