mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-30 15:32:58 +00:00
SPM integration update due to crypto API changes
When MBEDTLS_PSA_CRYPTO_SPM is defined, the code is being built for SPM (Secure Partition Manager) integration which separates the code into two parts: NSPE (Non-Secure Processing Environment) and SPE (Secure Processing Environment). When building for the SPE, an additional header file should be included.
This commit is contained in:
parent
8d4be19517
commit
99974e344a
@ -26,6 +26,21 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_PSA_CRYPTO_C)
|
#if defined(MBEDTLS_PSA_CRYPTO_C)
|
||||||
|
/*
|
||||||
|
* When MBEDTLS_PSA_CRYPTO_SPM is defined, the code is being built for SPM
|
||||||
|
* (Secure Partition Manager) integration which separates the code into two
|
||||||
|
* parts: NSPE (Non-Secure Processing Environment) and SPE (Secure Processing
|
||||||
|
* Environment). When building for the SPE, an additional header file should be
|
||||||
|
* included.
|
||||||
|
*/
|
||||||
|
#if defined(MBEDTLS_PSA_CRYPTO_SPM)
|
||||||
|
/*
|
||||||
|
* PSA_CRYPTO_SECURE means that this file is compiled for the SPE.
|
||||||
|
* Some headers will be affected by this flag.
|
||||||
|
*/
|
||||||
|
#define PSA_CRYPTO_SECURE 1
|
||||||
|
#include "crypto_spe.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "psa/crypto.h"
|
#include "psa/crypto.h"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user