Add check for no aes implementation provided
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/library/aesce.h b/library/aesce.h
index 1b2edad..a67fc0d 100644
--- a/library/aesce.h
+++ b/library/aesce.h
@@ -33,6 +33,9 @@
#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_HAS_NO_PLAIN_C)
+#error "MBEDTLS_AESCE_C defined, but not all prerequisites"
+#endif
#endif
#endif