raiden00pl opened a new pull request, #3848:
URL: https://github.com/apache/nuttx-apps/pull/3848

   ## Summary
   
   Mbed TLS defaults suit full TLS stacks. Libraries that only need a few 
primitives, such as NimBLE, still build every cipher and curve, and the generic 
cipher layer links them all.
   
   Add MBEDTLS_MINIMAL, which turns all optional module defaults off so only 
selected or explicitly enabled options are built. Make the modules that were 
always defined in mbedtls_config.h configurable, defaulting to enabled unless 
MBEDTLS_MINIMAL is set. Add options for MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH, 
MBEDTLS_AES_FEWER_TABLES and MBEDTLS_BLOCK_CIPHER_NO_DECRYPT.
   
   Without MBEDTLS_MINIMAL the configuration is unchanged.
   
   ## Impact
   
   mbedtls is required for new nimble, but without size optimization it takes 
huge amount of memory
   
   ## Testing
   
   Tested: nrf54l15-tag NimBLE mesh build; the linked Mbed TLS for NimBLE 
shrinks from 57 KB flash and 9 KB RAM to about 21 KB flash and no RAM.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to