fix wrong checks
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/library/aesni.h b/library/aesni.h
index 1302a11..dddbf99 100644
--- a/library/aesni.h
+++ b/library/aesni.h
@@ -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