Skip to content

Conversation

valeriosetti
Copy link
Contributor

The long-term plan of Zephyr is to rely exclusively on PSA Crypto API for crypto support and, in parallel, Mbed TLS is removing legacy crypto support from its next release (v4.0). Therefore this PR removes usage of legacy Mbed TLS crypto from McuMGR, leaving PSA API as the only option. Mbed TLS is still used to provide a PSA Crypto implementation in case TF-M is not enabled in the build.

@zephyrbot zephyrbot added area: Tests Issues related to a particular existing or missing test Release Notes To be mentioned in the release notes area: mcumgr labels Oct 15, 2025
jhedberg
jhedberg previously approved these changes Oct 15, 2025
de-nordic
de-nordic previously approved these changes Oct 16, 2025
jhedberg
jhedberg previously approved these changes Oct 16, 2025
Copy link
Contributor

@frkv frkv left a comment

Choose a reason for hiding this comment

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

LGTM

@valeriosetti valeriosetti force-pushed the mcumgr-remove-legacy-crypto branch from 68069e7 to e0dae6b Compare October 17, 2025 11:13
@valeriosetti valeriosetti dismissed stale reviews from jhedberg and de-nordic via 73fa9dc October 17, 2025 11:14
@valeriosetti valeriosetti force-pushed the mcumgr-remove-legacy-crypto branch from e0dae6b to 73fa9dc Compare October 17, 2025 11:14
@valeriosetti
Copy link
Contributor Author

valeriosetti commented Oct 17, 2025

The double force push is intentional:

  1. rebase on main to benefit from merging of modules: mbedtls: add helper Kconfig PSA_CRYPTO #96415. No code change was done in this rebase.
  2. take advantage of the PSA_CRYPTO Kconfig introduced with that PR

jhedberg
jhedberg previously approved these changes Oct 17, 2025
de-nordic
de-nordic previously approved these changes Oct 17, 2025
The long-term goal of Zephyr is to rely exclusively on PSA Crypto API for
crypto support. At the same time Mbed TLS is going to remove legacy crypto
support starting from the next relase (v4.0).

Therefore this commit removes usage of legacy Mbed TLS crypto in favor
of PSA Crypto API. Mbed TLS will still be used in case of a build where
TF-M is not enabled.

Signed-off-by: Valerio Setti <[email protected]>
MCUMGR_GRP_FS_HASH_SHA256 now already selects Mbed TLS and its PSA Crypto
support if TF-M is not enabled in the build, so there is no need to do
that in test configuration files.

Signed-off-by: Valerio Setti <[email protected]>
Add note for the removal of Mbed TLS' legacy crypto support in favor of
PSA API.

Signed-off-by: Valerio Setti <[email protected]>
@valeriosetti valeriosetti force-pushed the mcumgr-remove-legacy-crypto branch from cffb9be to 401efba Compare October 20, 2025 10:39
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: mcumgr area: Tests Issues related to a particular existing or missing test Release Notes To be mentioned in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants