zephyr/tests/subsys/storage/flash_map/testcase.yaml
Tomi Fontanilles f2c643ba02 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>
2024-06-14 14:02:08 -04:00

51 lines
1.2 KiB
YAML

tests:
storage.flash_map:
platform_allow:
- nrf51dk/nrf51822
- nrf9160dk/nrf9160/ns
- qemu_x86
- native_posix
- native_posix/native/64
- native_sim
- native_sim/native/64
- mr_canhubk3
tags: flash_map
integration_platforms:
- native_sim
storage.flash_map.mpu:
extra_args: OVERLAY_CONFIG=overlay-mpu.conf
platform_allow:
- nrf52840dk/nrf52840
- nrf52dk/nrf52832
- frdm_k64f
- hexiwear/mk64f12
- twr_ke18f
integration_platforms:
- nrf52840dk/nrf52840
tags: flash_map
storage.flash_map.mbedtls:
extra_args: OVERLAY_CONFIG=overlay-mbedtls.conf
platform_allow:
- nrf51dk/nrf51822
- qemu_x86
- native_posix
- native_posix/native/64
- native_sim
- native_sim/native/64
- mr_canhubk3
tags: flash_map
integration_platforms:
- native_sim
storage.flash_map.psa:
extra_args: OVERLAY_CONFIG=overlay-psa.conf
platform_allow:
- nrf51dk/nrf51822
- native_posix
- native_posix/native/64
- native_sim
- native_sim/native/64
- mr_canhubk3
tags: flash_map
integration_platforms:
- native_sim