Trusted storage in the nRF Connect SDK
There are several options for storing keys and other important data persistently when developing applications with the nRF Connect SDK. Different storage options have different features. One of the options is to use the Trusted storage library.
The trusted storage library enables you to provide features like integrity, confidentiality and authenticity of the stored data, without using the TF-M Platform Root of Trust (PRoT). The library implements the PSA Certified Secure Storage API. It consists of PSA Internal Trusted Storage API and PSA Protected Storage API.
The Internal Trusted Storage and the Protected Storage are designed to work in environments both with and without security by separation. The two APIs used in the trusted storage library are also offered as secure services by TF-M. While TF-M enables security by separation, building and isolating security-critical functions in SPE and applications in NSPE, you can use the trusted storage in environments with no TF-M and separation of firmware.
The table below gives an overview of the trusted storage support for the products and their features.
Product |
Backend |
Confidentiality |
Integrity |
Authenticity |
Isolation |
---|---|---|---|---|---|
nRF91 Series with TF-M |
TF-M secure storage service |
Yes |
Yes |
Yes |
Yes |
nRF91 Series without TF-M |
Trusted storage library |
Partial [1] |
Yes |
Yes |
No |
nRF54L15 with TF-M |
TF-M secure storage service |
Yes |
Yes |
Yes |
Yes |
nRF54L15 without TF-M |
Trusted storage library |
Partial [1] |
Yes |
Yes |
Yes |
nRF5340 with TF-M |
TF-M secure storage service |
Yes |
Yes |
Yes |
Yes |
nRF5340 without TF-M |
Trusted storage library |
Partial [1] |
Yes |
Yes |
No |
nRF52840 |
Trusted storage library |
Partial [1] |
Yes |
Yes |
No |
nRF52833 |
Trusted storage library |
Partial [2] |
Yes |
Yes |
No |
The trusted storage library addresses two of the PSA Certified Level 2 and Level 3 optional security functional requirements (SFRs):
Secure Encrypted Storage (internal storage)
Secure Storage (internal storage)
The Secure External Storage SFR is not covered by the trusted storage library by default, but you can implement a custom storage backend.