File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed
features/mbedtls/mbed-crypto/platform/TARGET_PSA/COMPONENT_PSA_SRV_IMPL Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 27
27
28
28
#if defined(MBEDTLS_PSA_CRYPTO_C )
29
29
/*
30
- * In case MBEDTLS_PSA_CRYPTO_SPM is defined the code is built for SPM (Secure
31
- * Partition Manager) integration which separate the code into two parts
32
- * NSPE (Non-Secure Process Environment) and SPE (Secure Process Environment).
33
- * In this mode an additional header file should be included.
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.
34
35
*/
35
36
#if defined(MBEDTLS_PSA_CRYPTO_SPM )
36
37
/*
37
- * PSA_CRYPTO_SECURE means that this file is compiled to the SPE side .
38
- * some headers will be affected by this flag.
38
+ * PSA_CRYPTO_SECURE means that this file is compiled for the SPE.
39
+ * Some headers will be affected by this flag.
39
40
*/
40
41
#define PSA_CRYPTO_SECURE 1
41
42
#include "crypto_spe.h"
Original file line number Diff line number Diff line change 26
26
#endif
27
27
28
28
#if defined(MBEDTLS_PSA_CRYPTO_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
+ #include "crypto_spe.h"
43
+ #endif
29
44
30
45
#include "psa/crypto.h"
31
46
You can’t perform that action at this time.
0 commit comments