We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d4be19 commit f21f8e2Copy full SHA for f21f8e2
library/psa_crypto_slot_management.c
@@ -26,6 +26,20 @@
26
#endif
27
28
#if defined(MBEDTLS_PSA_CRYPTO_C)
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.
34
+ */
35
+#if defined(MBEDTLS_PSA_CRYPTO_SPM)
36
37
+ * PSA_CRYPTO_SECURE means that this file is compiled to the SPE side.
38
+ * some headers will be affected by this flag.
39
40
+#define PSA_CRYPTO_SECURE 1
41
+#include "crypto_spe.h"
42
+#endif
43
44
#include "psa/crypto.h"
45
0 commit comments