Skip to content

samples: net: wifi: shell: remove legacy Mbed TLS crypto#102716

Merged
fabiobaltieri merged 1 commit intozephyrproject-rtos:mainfrom
valeriosetti:net-wifi-shell-nxp
Feb 13, 2026
Merged

samples: net: wifi: shell: remove legacy Mbed TLS crypto#102716
fabiobaltieri merged 1 commit intozephyrproject-rtos:mainfrom
valeriosetti:net-wifi-shell-nxp

Conversation

@valeriosetti
Copy link
Contributor

Addresses on item from the todo list in #102005

Remove usage of legacy Mbed TLS crypto APIs from sample overlays.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
@butok butok requested a review from MaochenWang1 January 22, 2026 13:32
@MaochenWang1
Copy link
Contributor

Hi @valeriosetti
Thanks for your PR. Any Configurations we need to add to replace these legacy Mbed TLS crypto?

@@ -21,9 +21,6 @@ CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_BUILTIN=y
CONFIG_MBEDTLS_USER_CONFIG_ENABLE=y
CONFIG_MBEDTLS_USER_CONFIG_FILE="wpa_supp_els_pkc_mbedtls_config.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use wpa_supp_els_pkc_mbedtls_config.h as CONFIG_MBEDTLS_USER_CONFIG_FILE, the file locates in
https://github.com/zephyrproject-rtos/hal_nxp/blob/master/mcux/middleware/wifi_nxp/incl/port/mbedtls/wpa_supp_els_pkc_mbedtls_config.h.
Do we need also update this file to remove legacy Mbed TLS crypto?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely yes. You can check the current state of crypto_config.h for available build symbols.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The available build symbols, you mean the configs without //?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acutally also the ones commented out are known to the tf-psa-crypto library, so those are fine

@valeriosetti
Copy link
Contributor Author

Any Configurations we need to add to replace these legacy Mbed TLS crypto?

I don't think so. Hers's why:

  • CONFIG_MBEDTLS_PSA_CRYPTO_C: those configuration files already enable CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_MBEDTLS_PSA which select CONFIG_PSA_CRYPTO which itself enables CONFIG_MBEDTLS_PSA_CRYPTO_C is the PSA Crypto API are to be provided by Mbed TLS
  • CONFIG_ENTROPY_GENERATOR: this is already handled by Mbed TLS, even though I know it's a bit tricky combination between Mbed TLS Kconfig and Random subsys ones.
  • CONFIG_MBEDTLS_ENTROPY_C: this is also already handled by Mbed TLS Kconfigs when/if needed.
@MaochenWang1 MaochenWang1 added the block: HW Test Testing on hardware required before merging label Jan 23, 2026
@MaochenWang1
Copy link
Contributor

Add a label here, need more test before this can be merged.

@MaochenWang1 MaochenWang1 removed the block: HW Test Testing on hardware required before merging label Feb 12, 2026
@MaochenWang1
Copy link
Contributor

Hi @jukkar please review

@fabiobaltieri fabiobaltieri merged commit 7ea4458 into zephyrproject-rtos:main Feb 13, 2026
27 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment