Add msvc build for aesce module
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
3c3b94a31b
commit
07d28d8598
2 changed files with 11 additions and 3 deletions
|
@ -62,8 +62,9 @@
|
||||||
# pragma GCC push_options
|
# pragma GCC push_options
|
||||||
# pragma GCC target ("arch=armv8-a+crypto")
|
# pragma GCC target ("arch=armv8-a+crypto")
|
||||||
# define MBEDTLS_POP_TARGET_PRAGMA
|
# define MBEDTLS_POP_TARGET_PRAGMA
|
||||||
|
# elif defined(_MSC_VER)
|
||||||
# else
|
# else
|
||||||
# error "Only GCC and Clang supported for MBEDTLS_AESCE_C"
|
# error "Only MSVC, GCC and Clang supported for MBEDTLS_AESCE_C"
|
||||||
# endif
|
# endif
|
||||||
#endif /* !__ARM_FEATURE_AES || MBEDTLS_ENABLE_ARM_CRYPTO_EXTENSIONS_COMPILER_FLAG */
|
#endif /* !__ARM_FEATURE_AES || MBEDTLS_ENABLE_ARM_CRYPTO_EXTENSIONS_COMPILER_FLAG */
|
||||||
|
|
||||||
|
|
|
@ -30,12 +30,19 @@
|
||||||
|
|
||||||
#include "mbedtls/aes.h"
|
#include "mbedtls/aes.h"
|
||||||
|
|
||||||
|
#if !defined(MBEDTLS_HAVE_ARM64)
|
||||||
#if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && \
|
#if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && \
|
||||||
defined(__aarch64__) && !defined(MBEDTLS_HAVE_ARM64)
|
defined(__aarch64__)
|
||||||
#define MBEDTLS_HAVE_ARM64
|
#define MBEDTLS_HAVE_ARM64
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* MSVC */
|
||||||
|
#if defined(_M_ARM64) || defined(_M_ARM64EC)
|
||||||
|
#define MBEDTLS_HAVE_ARM64
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_HAVE_ARM64)
|
#if defined(MBEDTLS_HAVE_ARM64)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in a new issue