Skip to content

subsys: storage: flash_map: remove usage of legacy Mbed TLS crypto#102022

Merged
fabiobaltieri merged 4 commits intozephyrproject-rtos:mainfrom
valeriosetti:flash-map-remove-mbedtls
Jan 22, 2026
Merged

subsys: storage: flash_map: remove usage of legacy Mbed TLS crypto#102022
fabiobaltieri merged 4 commits intozephyrproject-rtos:mainfrom
valeriosetti:flash-map-remove-mbedtls

Conversation

@valeriosetti
Copy link
Contributor

This support was already marked as deprecated in the latest release. Since then it was agreed that version bumping of Mbed TLS doesn't need to follow standard Zephyr process so this support is removed.

Therefore this PR:

  • removes usage of legacy crypto from subsys;
  • updates the corresponding sample;
  • add note to migration-guide

@zephyrbot zephyrbot added area: Storage Storage subsystem Release Notes To be mentioned in the release notes area: Tests Issues related to a particular existing or missing test labels Jan 9, 2026
@zephyrbot zephyrbot requested review from kartben and nashif January 9, 2026 14:59
Remove Kconfig and code related to legacy Mbed TLS crypto for SHA-256.
This was used for the integrity check functionality as alternative to
PSA Crypto API. This support was already deprecated and now it's removed
in order to prepare for the next Mbed TLS 4.0 release where legacy crypto
won't be available anymore.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Following the removal of legacy Mbed TLS crypto for SHA-256 in the
subsys, this commit updates the related sample. "overlay-mbedtls.conf" is
removed as no more necessary and the corresponding test case is removed
from "testcase.yaml". "overlay-psa.conf" is updated removing unnecessary
Kconfig selections.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Since now there is a single backend for crypto, i.e. the PSA Crypto API
one, it's better to rename corresponding test case and related
configuration file so that instead of mentioning "psa" they mention
"integrity-check".

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
…check

Add notes about changes in flash_map's Kconfig for what concerns the
crypto libraries used for integrity check.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
@sonarqubecloud
Copy link

@kartben kartben assigned tomi-font and unassigned kartben Jan 22, 2026
@fabiobaltieri fabiobaltieri merged commit 647f68c into zephyrproject-rtos:main Jan 22, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Storage Storage subsystem 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.

6 participants