File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 29
29
30
30
#include <stdlib.h>
31
31
#include <string.h>
32
+ /*
33
+ * When MBEDTLS_PSA_CRYPTO_SPM is defined, the code is being built for SPM
34
+ * (Secure Partition Manager) integration which separates the code into two
35
+ * parts: NSPE (Non-Secure Processing Environment) and SPE (Secure Processing
36
+ * Environment). When building for the SPE, an additional header file should be
37
+ * included.
38
+ */
39
+ #if defined(MBEDTLS_PSA_CRYPTO_SPM )
40
+ /*
41
+ * PSA_CRYPTO_SECURE means that this file is compiled for the SPE.
42
+ * Some headers will be affected by this flag.
43
+ */
44
+ #define PSA_CRYPTO_SECURE 1
45
+ #endif
32
46
33
47
#include "psa/crypto.h"
34
48
#include "psa_crypto_storage.h"
Original file line number Diff line number Diff line change 26
26
#endif
27
27
28
28
#if defined(MBEDTLS_PSA_CRYPTO_STORAGE_ITS_C )
29
+ /*
30
+ * When MBEDTLS_PSA_CRYPTO_SPM is defined, the code is being built for SPM
31
+ * (Secure Partition Manager) integration which separates the code into two
32
+ * parts: NSPE (Non-Secure Processing Environment) and SPE (Secure Processing
33
+ * Environment). When building for the SPE, an additional header file should be
34
+ * included.
35
+ */
36
+ #if defined(MBEDTLS_PSA_CRYPTO_SPM )
37
+ /*
38
+ * PSA_CRYPTO_SECURE means that this file is compiled for the SPE.
39
+ * Some headers will be affected by this flag.
40
+ */
41
+ #define PSA_CRYPTO_SECURE 1
42
+ #endif
29
43
30
44
#include "psa/crypto.h"
31
45
#include "psa_crypto_storage_backend.h"
You can’t perform that action at this time.
0 commit comments