Add msvc build for aesce module

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2023-03-20 18:12:36 +08:00
parent 3c3b94a31b
commit 07d28d8598
2 changed files with 11 additions and 3 deletions

View file

@ -62,8 +62,9 @@
# pragma GCC push_options
# pragma GCC target ("arch=armv8-a+crypto")
# define MBEDTLS_POP_TARGET_PRAGMA
# elif defined(_MSC_VER)
# else
# error "Only GCC and Clang supported for MBEDTLS_AESCE_C"
# error "Only MSVC, GCC and Clang supported for MBEDTLS_AESCE_C"
# endif
#endif /* !__ARM_FEATURE_AES || MBEDTLS_ENABLE_ARM_CRYPTO_EXTENSIONS_COMPILER_FLAG */

View file

@ -30,12 +30,19 @@
#include "mbedtls/aes.h"
#if !defined(MBEDTLS_HAVE_ARM64)
#if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && \
defined(__aarch64__) && !defined(MBEDTLS_HAVE_ARM64)
defined(__aarch64__)
#define MBEDTLS_HAVE_ARM64
#endif
/* MSVC */
#if defined(_M_ARM64) || defined(_M_ARM64EC)
#define MBEDTLS_HAVE_ARM64
#endif
#endif
#if defined(MBEDTLS_HAVE_ARM64)
#ifdef __cplusplus