Add msvc version document

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2023-04-25 10:38:03 +08:00
parent 8f0e3d4c22
commit f015a93f98
2 changed files with 9 additions and 2 deletions

View file

@ -2076,12 +2076,15 @@
* Module: library/aesce.c * Module: library/aesce.c
* Caller: library/aes.c * Caller: library/aes.c
* *
* Requires: MBEDTLS_HAVE_ASM, MBEDTLS_AES_C * Requires: MBEDTLS_AES_C
* *
* \warning Runtime detection only works on Linux. For non-Linux operating * \warning Runtime detection only works on Linux. For non-Linux operating
* system, Armv8-A Cryptographic Extensions must be supported by * system, Armv8-A Cryptographic Extensions must be supported by
* the CPU when this option is enabled. * the CPU when this option is enabled.
* *
* \note The minimum version of MSVC for building this module is "Visual
* Studio 2019 version 16.11.2"(`_MSC_VER >= 1929`)
*
* This module adds support for the AES Armv8-A Cryptographic Extensions on Aarch64 systems. * This module adds support for the AES Armv8-A Cryptographic Extensions on Aarch64 systems.
*/ */
#define MBEDTLS_AESCE_C #define MBEDTLS_AESCE_C

View file

@ -35,7 +35,11 @@
#define MBEDTLS_HAVE_ARM64 #define MBEDTLS_HAVE_ARM64
#endif #endif
/* MSVC */ /* MSVC
* TODO: We haven't verified msvc from 1920 to 1928. If someone verified that,
* please update this and document of `MBEDTLS_AESCE_C` in
* `mbedtls_config.h`
*/
#if defined(_MSC_VER) && _MSC_VER >=1929 && \ #if defined(_MSC_VER) && _MSC_VER >=1929 && \
(defined(_M_ARM64) || defined(_M_ARM64EC)) (defined(_M_ARM64) || defined(_M_ARM64EC))
#define MBEDTLS_HAVE_ARM64 #define MBEDTLS_HAVE_ARM64