PSA Internal Trusted Storage API
Overview
This sample demonstrates usage of the PSA Internal Trusted Storage (ITS) API, which is part of the PSA Secure Storage API, for storing and retrieving persistent data.
Requirements
An implementation of the PSA ITS API must be present for this sample to build. It can be provided by:
Trusted Firmware-M (TF-M), for
*/ns
board targets.The secure storage subsystem, for the other board targets.
Building
This sample is located in samples/psa/its.
Different configurations are defined in the sample.yaml
file.
You can use them to build the sample, depending on the PSA ITS provider, as follows:
For board targets with TF-M:
# From the root of the zephyr repository west build -b <ns_board_target> -T sample.psa.its.tfm samples/psa/its
For board targets without TF-M.
If the board target to compile for has an entropy driver (preferable):
# From the root of the zephyr repository
west build -b <board_target> -T sample.psa.its.secure_storage.entropy_driver samples/psa/its
Or, to use an insecure entropy source (only for testing):
# From the root of the zephyr repository
west build -b <board_target> -T sample.psa.its.secure_storage.entropy_not_secure samples/psa/its
To flash it, see Flashing: west flash.