Repository navigation
crypto/mbedtls: Remove the option MBEDTLS_DES_C. - #3857
Merged
Merged
Conversation
c16a266 added the Kconfig option MBEDTLS_DES_C. The Espressif HAL reads CONFIG_MBEDTLS_DES_C, an ESP-IDF option with the same name, and then defines MBEDTLS_DES_C for its own Mbed TLS. That Mbed TLS (TF-PSA-crypto) does not support DES and stops the build, so esp32s3-devkit:mbedtls fails. Remove the option. Define MBEDTLS_DES_C unless MBEDTLS_MINIMAL is set, as the option's default did. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
raiden00pl
reviewed
Oct 16, 2026
raiden00pl
approved these changes
Oct 16, 2026
This was referenced Oct 17, 2026
acassis
approved these changes
Oct 17, 2026
This was referenced Oct 24, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#3848 added the Kconfig option
MBEDTLS_DES_C. The Espressif HAL readsCONFIG_MBEDTLS_DES_Ctoo: it is an ESP-IDF option with the same name, and the HAL then definesMBEDTLS_DES_Cfor its own Mbed TLS (esp_config.h:2088). That Mbed TLS (TF-PSA-crypto) does not support DES, soesp32s3-devkit:mbedtlsstops with:This PR removes the option.
mbedtls_config.hdefinesMBEDTLS_DES_CunlessMBEDTLS_MINIMALis set, as the option's default did. Only the possibility to disable DES alone, withoutMBEDTLS_MINIMAL, goes away.#3858 is an alternative that renames the option instead. Only one of the two should merge.
The error was already in the CI of #3848, but
Linux (xtensa-03)shows "cancelled" there:arm-13failed on the nxboot break and fail-fast stopped the job after it had hit this error.CI logs:
Linux (xtensa-03)(cancelled, error at 22:31): https://github.com/apache/nuttx-apps/actions/runs/38791329589/job/116656848371Linux (xtensa-03): https://github.com/apache/nuttx/actions/runs/38907729803/job/116998721880Linux (xtensa-03): https://github.com/apache/nuttx/actions/runs/38905530048/job/116993583358Impact
Every nuttx PR whose CI builds
xtensa-03fails onesp32s3-devkit:mbedtlssince #3848 merged; this PR fixes that. No defconfig in nuttx or apps setsCONFIG_MBEDTLS_DES_C.Testing
Local build of
esp32s3-devkit:mbedtls(nuttx master c006807501d, xtensa-esp-elf 14.2.0, the same as CI):CONFIG_MBEDTLS_DES_C=y).des.cand the image has thembedtls_des_*functions.Preprocessing
mbedtls_config.h:MBEDTLS_DES_Cis defined withoutCONFIG_MBEDTLS_MINIMAL, and not defined with it.tools/checkpatch.sh -c -u -m -gpasses.