Skip to content

crypto/mbedtls: Remove the option MBEDTLS_DES_C. - #3857

Merged
acassis merged 1 commit into
apache:masterfrom
casaroli:mbedtls-des-name
Oct 17, 2026
Merged

acassis merged 1 commit into
apache:masterfrom
casaroli:mbedtls-des-name

Conversation

@casaroli

@casaroli casaroli commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

#3848 added the Kconfig option MBEDTLS_DES_C. The Espressif HAL reads CONFIG_MBEDTLS_DES_C too: it is an ESP-IDF option with the same name, and the HAL then defines MBEDTLS_DES_C for its own Mbed TLS (esp_config.h:2088). That Mbed TLS (TF-PSA-crypto) does not support DES, so esp32s3-devkit:mbedtls stops with:

tf_psa_crypto_config_check_user.h:153:4: error: #error "MBEDTLS_DES_C is not a valid configuration option."

This PR removes the option. mbedtls_config.h defines MBEDTLS_DES_C unless MBEDTLS_MINIMAL is set, as the option's default did. Only the possibility to disable DES alone, without MBEDTLS_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-13 failed on the nxboot break and fail-fast stopped the job after it had hit this error.

CI logs:

Impact

Every nuttx PR whose CI builds xtensa-03 fails on esp32s3-devkit:mbedtls since #3848 merged; this PR fixes that. No defconfig in nuttx or apps sets CONFIG_MBEDTLS_DES_C.

Testing

Local build of esp32s3-devkit:mbedtls (nuttx master c006807501d, xtensa-esp-elf 14.2.0, the same as CI):

  • apps master 06a5ce3: fails with the error above (CONFIG_MBEDTLS_DES_C=y).
  • this PR: builds; the apps Mbed TLS still compiles des.c and the image has the mbedtls_des_* functions.

Preprocessing mbedtls_config.h: MBEDTLS_DES_C is defined without CONFIG_MBEDTLS_MINIMAL, and not defined with it.

tools/checkpatch.sh -c -u -m -g passes.

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]>
Comment thread crypto/mbedtls/Kconfig Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants