PSA Crypto persistent key

Browse source code on GitHub

Overview

This sample demonstrates usage of persistent keys in the PSA Crypto API.

Requirements

In addition to the PSA Crypto API, an implementation of the PSA Internal Trusted Storage (ITS) API (for storage of the persistent keys) must be present for this sample to work. It can be provided by:

Building

This sample is located in samples/psa/persistent_key.

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.persistent_key.tfm samples/psa/persistent_key

To flash it, see Flashing: west flash.

API reference

PSA Crypto key management API reference