You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/10/24 06:41:49 UTC

[GitHub] mkiiskila closed pull request #1477: mbedtls; syscfg variable controlling whether to keep AES tables in .text

mkiiskila closed pull request #1477: mbedtls; syscfg variable controlling whether to keep AES tables in .text
URL: https://github.com/apache/mynewt-core/pull/1477
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/crypto/mbedtls/include/mbedtls/config_mynewt.h b/crypto/mbedtls/include/mbedtls/config_mynewt.h
index 738754e438..1e21c21a84 100644
--- a/crypto/mbedtls/include/mbedtls/config_mynewt.h
+++ b/crypto/mbedtls/include/mbedtls/config_mynewt.h
@@ -183,6 +183,11 @@ extern "C" {
 #if MYNEWT_VAL(MBEDTLS_AES_C) == 0
 #undef MBEDTLS_AES_C
 #endif
+#if MYNEWT_VAL(MBEDTLS_AES_ROM_TABLES)
+#define MBEDTLS_AES_ROM_TABLES
+#else
+#undef MBEDTLS_AES_ROM_TABLES
+#endif
 #if MYNEWT_VAL(MBEDTLS_ARC4_C) == 0
 #undef MBEDTLS_ARC4_C
 #endif
diff --git a/crypto/mbedtls/syscfg.yml b/crypto/mbedtls/syscfg.yml
index cde7ca10d4..776fedef2a 100644
--- a/crypto/mbedtls/syscfg.yml
+++ b/crypto/mbedtls/syscfg.yml
@@ -46,6 +46,8 @@ syscfg.defs:
   # Ciphers
   MBEDTLS_AES_C:
     value: 1
+  MBEDTLS_AES_ROM_TABLES:
+    value: 0
   MBEDTLS_ARC4_C:
     value: 0
   MBEDTLS_BLOWFISH_C:


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services