mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-25 15:15:28 +00:00
Merge pull request #16 from itayzafrir/spm-support-crypto-handles-api
Support for slots to handles crypto API changes under SPM
This commit is contained in:
commit
cfb7ae9318
|
@ -27,15 +27,16 @@
|
||||||
|
|
||||||
#if defined(MBEDTLS_PSA_CRYPTO_C)
|
#if defined(MBEDTLS_PSA_CRYPTO_C)
|
||||||
/*
|
/*
|
||||||
* In case MBEDTLS_PSA_CRYPTO_SPM is defined the code is built for SPM (Secure
|
* When MBEDTLS_PSA_CRYPTO_SPM is defined, the code is being built for SPM
|
||||||
* Partition Manager) integration which separate the code into two parts
|
* (Secure Partition Manager) integration which separates the code into two
|
||||||
* NSPE (Non-Secure Process Environment) and SPE (Secure Process Environment).
|
* parts: NSPE (Non-Secure Processing Environment) and SPE (Secure Processing
|
||||||
* In this mode an additional header file should be included.
|
* Environment). When building for the SPE, an additional header file should be
|
||||||
|
* included.
|
||||||
*/
|
*/
|
||||||
#if defined(MBEDTLS_PSA_CRYPTO_SPM)
|
#if defined(MBEDTLS_PSA_CRYPTO_SPM)
|
||||||
/*
|
/*
|
||||||
* PSA_CRYPTO_SECURE means that this file is compiled to the SPE side.
|
* PSA_CRYPTO_SECURE means that this file is compiled for the SPE.
|
||||||
* some headers will be affected by this flag.
|
* Some headers will be affected by this flag.
|
||||||
*/
|
*/
|
||||||
#define PSA_CRYPTO_SECURE 1
|
#define PSA_CRYPTO_SECURE 1
|
||||||
#include "crypto_spe.h"
|
#include "crypto_spe.h"
|
||||||
|
|
|
@ -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…
Reference in a new issue