mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-29 17:27:03 +00:00
Prepare support for 64 bit key ids in a PSA system.
Preparation for type separation between SPE and NSPE.
This commit is contained in:
parent
7e2cda1d67
commit
7132dd9796
|
@ -29,6 +29,20 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
/*
|
||||||
|
* 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
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "psa/crypto.h"
|
#include "psa/crypto.h"
|
||||||
#include "psa_crypto_storage.h"
|
#include "psa_crypto_storage.h"
|
||||||
|
|
|
@ -26,6 +26,20 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_PSA_CRYPTO_STORAGE_ITS_C)
|
#if defined(MBEDTLS_PSA_CRYPTO_STORAGE_ITS_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
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "psa/error.h"
|
#include "psa/error.h"
|
||||||
#include "psa/crypto.h"
|
#include "psa/crypto.h"
|
||||||
|
|
Loading…
Reference in a new issue