You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "raiden00pl (via GitHub)" <gi...@apache.org> on 2026/10/14 10:36:46 UTC

[PR] crypto/mbedtls: Allow a minimal crypto-only configuration. [nuttx-apps]

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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] crypto/mbedtls: Allow a minimal crypto-only configuration. [nuttx-apps]

Posted by "jerpelea (via GitHub)" <gi...@apache.org>.
jerpelea commented on PR #3848:
URL: https://github.com/apache/nuttx-apps/pull/3848#issuecomment-6213931735

   Thanks for this addition


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] crypto/mbedtls: Allow a minimal crypto-only configuration. [nuttx-apps]

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis merged PR #3848:
URL: https://github.com/apache/nuttx-apps/pull/3848


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org