external_zblue/subsys/storage/flash_map
Tomi Fontanilles 8947f027fe storage: flash_map: replace TinyCrypt by PSA
As part of ongoing work to move away from TinyCrypt and towards PSA
(#43712), introduce a PSA option and remove the TinyCrypt one for the
SHA-256 implementation.

The Mbed TLS implementation is modified to use `mbedtls_sha256`
directly for smaller code size.

As of now the implementation defaults to PSA only if TF-M is enabled
because a dependency loop happens if using `PSA_CRYPTO_CLIENT` as a
condition in `FLASH_AREA_CHECK_INTEGRITY_BACKEND`.

A test case is added for the PSA implementation, and an NS platform is
added to the base test case to verify the compilation on a TF-M-enabled
platform.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-04-20 17:26:24 +08:00
..
CMakeLists.txt storage: flash_map: replace TinyCrypt by PSA 2026-04-20 17:26:24 +08:00
Kconfig storage: flash_map: replace TinyCrypt by PSA 2026-04-20 17:26:24 +08:00
flash_map.c storage/flash_map: Add flash_area_flatten 2026-04-20 17:22:03 +08:00
flash_map_default.c storage: flash_map list partition labels 2026-04-20 16:22:18 +08:00
flash_map_integrity.c storage: flash_map: replace TinyCrypt by PSA 2026-04-20 17:26:24 +08:00
flash_map_layout.c subsys/storage/flash_map: Inline flash_area_layout 2026-04-20 17:08:08 +08:00
flash_map_priv.h
flash_map_shell.c storage: flash_map list partition labels 2026-04-20 16:22:18 +08:00