fix wrong checks

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2023-04-19 10:18:50 +08:00
parent 3fcf2b5053
commit 8840a8c574
3 changed files with 6 additions and 6 deletions

View File

@ -33,8 +33,8 @@
#if !defined(MBEDTLS_HAVE_ARM64)
#if defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
#define MBEDTLS_HAVE_ARM64
#if !defined(MBEDTLS_AESCE_C) && !defined(MBEDTLS_AES_DONT_USE_SOFTWARE_CRYPTO)
#error "MBEDTLS_AESCE_C defined, but not all prerequisites"
#if !defined(MBEDTLS_AESCE_C) && defined(MBEDTLS_AES_DONT_USE_SOFTWARE_CRYPTO)
#error "MBEDTLS_AES_C defined, but not all prerequisites"
#endif
#endif
#endif

View File

@ -39,8 +39,8 @@
(defined(__amd64__) || defined(__x86_64__)) && \
!defined(MBEDTLS_HAVE_X86_64)
#define MBEDTLS_HAVE_X86_64
#if !defined(MBEDTLS_AESNI_C) && !defined(MBEDTLS_AES_DONT_USE_SOFTWARE_CRYPTO)
#error "MBEDTLS_AESCE_C defined, but not all prerequisites"
#if !defined(MBEDTLS_AESNI_C) && defined(MBEDTLS_AES_DONT_USE_SOFTWARE_CRYPTO)
#error "MBEDTLS_AES_C defined, but not all prerequisites"
#endif
#endif

View File

@ -47,8 +47,8 @@
#include <stdint.h>
#if !defined(MBEDTLS_PADLOCK_C) && !defined(MBEDTLS_AES_DONT_USE_SOFTWARE_CRYPTO)
#error "MBEDTLS_AESCE_C defined, but not all prerequisites"
#if !defined(MBEDTLS_PADLOCK_C) && defined(MBEDTLS_AES_DONT_USE_SOFTWARE_CRYPTO)
#error "MBEDTLS_AES_C defined, but not all prerequisites"
#endif
#define MBEDTLS_PADLOCK_RNG 0x000C