Skip to content

Commit 6f0f67f

Browse files
author
Amanda Butler
authored
Merge pull request #815 from danny4478/danny_spm_overview_br
Add PSA overview page
2 parents 1566b89 + 967caa4 commit 6f0f67f

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed
Loading

docs/api/security/psa.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<h2 id="psa-api">The Mbed implementation of PSA</h2>
2+
3+
The Mbed implementation of [PSA](/docs/development/introduction/glossary.html) provides root of trust services and infrastructure for developing IoT applications.
4+
5+
When Mbed OS is running on a PSA Security Model compliant target, the Mbed implementation of PSA helps to protect cryptographic assets, credentials and critical code sections by providing an isolation between a [Secure Processing Environment (SPE)](/docs/development/introduction/glossary.html) and a [Non-Secure Processing Environment (NSPE)](/docs/development/introduction/glossary.html). The [Secure Partition Manager (SPM)](/docs/development/introduction/glossary.html), which uses the target's hardware features, manages the isolation. The SPM provides standardized [IPC](/docs/development/introduction/glossary.html) APIs that you can use regardless of system architecture (v8M, TEE on Cortex-A) or inside another chip.
6+
7+
The Mbed implementation of PSA bridges the differences between PSA platforms and non-PSA platforms for application developers, allowing them to use the same standard PSA APIs on both platform types.
8+
9+
The Mbed implementation of PSA allows you to choose the platform type at later phase according to the final application threat model.
10+
11+
<span class="images">![diagram](https://s3-us-west-2.amazonaws.com/mbed-os-docs-images/PSA-standardized-Interfaces-diagram.png)<span>PSA diagram</span></span>
12+
13+
### SPM
14+
15+
The SPM is a PSA-compliant software hypervisor that creates and manages independent secure partitions on Arm Cortex&reg;-M microcontrollers. It increases resilience against malware and protects secrets from leaking between different modules in the same application. The SPM complements other important security features, such as safe firmware updates and secure crypto libraries.
16+
17+
The SPM provides hardware-enforced partitions for individual code blocks by limiting access to memories and peripherals using the existing hardware security features of the Cortex&reg;-M microcontrollers. It isolates software in partitions, managing the execution of software within those partitions and providing IPC between the partitions. Correct use of SPM prevents malware from becoming resident on the device and enables protection of device secrets, such as cryptographic keys.
18+
19+
#### Isolating partitions in the SPE
20+
21+
The SPM and the secure partitions are located in the SPE, isolating them from the NSPE, which contains the application firmware, OS kernel and libraries and other nonsecure hardware resources.
22+
23+
A secure partition is a container for one or more root of trust services, and a platform may have multiple secure partitions. Secure partitions provide the execution environment for security functionality.
24+
25+
Platform hardware, such as the [Security Attribution Unit (SAU)](/docs/development/introduction/glossary.html) and Memory Protection Unit (MPU) in the ARMv8-M platforms, enforces the separation of partitions. Other platforms may use different mechanisms to provide equivalent isolation for the partitions.
26+
27+
### Platform types
28+
29+
The Mbed implementation of PSA supports the following platform types:
30+
31+
- Non-PSA platform: These are single core ARMv7-M targets. On these targets, the Mbed implementation of PSA provides the same PSA services exposing PSA APIs as it would on PSA targets. The PSA emulation layer allows seamless software portability to more security-oriented targets.
32+
33+
- Asymmetric Multiprocessing (AMP) systems: Multicore ARMv7-M targets (for example, PSoC6 featuring CM4 and CM0+ cores). On these targets, one of the cores is dedicated to PSA use only and implements SPE. The Mbed implementation of PSA provides PSA API proxy implementation on a nonsecure core, which redirects execution to the SPE.
34+
35+
- ARMv8-M: Generation of ARM processors featuring TrustZone-M architecture. PSA support for this platforms is in final stages of development and will be added to the list of platforms supported by the Mbed implementation of PSA shortly.
36+
37+
### RoT services
38+
39+
The Mbed implementation of PSA provides the following services:
40+
41+
- PSA [RoT](/docs/development/introduction/glossary.html) internal storage.
42+
- PSA Crypto APIs.

docs/api/security/security.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ Security on Arm Mbed OS is divided into the following parts:
88
For information about working with these modules in Mbed OS context, please refer to the following document:
99

1010
- [Connection security through Arm Mbed TLS](tls.html).
11+
- [Mbed PSA asset protection](psa.md).

0 commit comments

Comments
 (0)