mbedtls: fixes to Mynewt config
Update MBEDTLS_AES_ALT syscfg to work like other overrides. Make
MBEDTLS_NIST_KW_C default in mynewt config allowing disable override,
to avoid changes to standard mbedTLS provided config file.
@@ -48,6 +48,8 @@ extern "C" {
#define MBEDTLS_SHA256_SMALLER /* comes with performance hit */
#define MBEDTLS_ENTROPY_HARDWARE_ALT /* hardware entropy source */
+#define MBEDTLS_NIST_KW_C /* encrypted images with AES-KW */
+#define MBEDTLS_AES_ALT /* enable HW based AES */
/**
* \name SECTION: Module configuration options
@@ -183,8 +185,6 @@ extern "C" {
#if MYNEWT_VAL(MBEDTLS_AES_ALT) == 0
#undef MBEDTLS_AES_ALT
-#elif !defined(MBEDTLS_AES_ALT)
-#define MBEDTLS_AES_ALT 1
#endif
#if MYNEWT_VAL(MBEDTLS_AES_C) == 0
#undef MBEDTLS_AES_C
