Skip to content

Commit 7c8ed0c

Browse files
author
Andres Amaya Garcia
committed
Enable MBEDTLS_AES_ROM_TABLES in mbed TLS main conf
Enable the compile-time option MBEDTLS_AES_ROM_TABLES in the mbed TLS main config.h file in mbed OS. This option has the effect of labelling the AES tables as 'const' so they are placed in ROM, which saves some RAM space.
1 parent adbba2c commit 7c8ed0c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

features/mbedtls/importer/adjust-config.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ conf unset MBEDTLS_RIPEMD160_C
112112
conf unset MBEDTLS_SHA1_C
113113
conf unset MBEDTLS_XTEA_C
114114

115+
conf set MBEDTLS_AES_ROM_TABLES
116+
115117
conf unset MBEDTLS_X509_RSASSA_PSS_SUPPORT
116118

117119
conf unset MBEDTLS_X509_CSR_PARSE_C

features/mbedtls/inc/mbedtls/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@
435435
*
436436
* Uncomment this macro to store the AES tables in ROM.
437437
*/
438-
//#define MBEDTLS_AES_ROM_TABLES
438+
#define MBEDTLS_AES_ROM_TABLES
439439

440440
/**
441441
* \def MBEDTLS_CAMELLIA_SMALL_MEMORY

0 commit comments

Comments
 (0)