Repository navigation
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. Rename the option, so that the HAL does not see it. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
| default !MBEDTLS_MINIMAL | ||
| ---help--- | ||
| Defines MBEDTLS_DES_C. The option is not called MBEDTLS_DES_C, | ||
| because the Espressif HAL reads CONFIG_MBEDTLS_DES_C for its own |
Contributor
There was a problem hiding this comment.
but should we fix esp HAL?
Contributor
Author
There was a problem hiding this comment.
I think (and hope) that ESP-HAL does not use DES.
I suggest we remove DES as in #3857
Contributor
Author
There was a problem hiding this comment.
Well I think it does use DES but it has an internal implementation, it does not use DES from MbedTLS
Contributor
Author
|
keeping this as draft in case we re-decide we prefer the rename, or until #3857 is merged. |
casaroli
marked this pull request as draft
October 17, 2026 14:01
Contributor
Author
|
remove bad cypher is better than renaming |
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 renames the option to
MBEDTLS_DES. It keeps the same default (!MBEDTLS_MINIMAL) and still definesMBEDTLS_DES_Cfor the apps Mbed TLS, but the HAL does not see it. The help text says why the name differs.This is an alternative to #3857, which removes 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, so nothing needs the old name.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).CONFIG_MBEDTLS_DES=y).tools/checkpatch.sh -c -u -m -gpasses.