Mistake on this page?
Report an issue in GitHub or email us
psa_crypto_service_integration.h
1 /*
2  * Copyright The Mbed TLS Contributors
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may
6  * not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef PSA_CRYPTO_SERVICE_INTEGRATION_H
19 #define PSA_CRYPTO_SERVICE_INTEGRATION_H
20 
21 /*
22  * When MBEDTLS_PSA_CRYPTO_SPM is defined, the code is being built for SPM
23  * (Secure Partition Manager) integration which separates the code into two
24  * parts: NSPE (Non-Secure Processing Environment) and SPE (Secure Processing
25  * Environment). When building for the SPE, an additional header file should be
26  * included.
27  */
28 #if defined(MBEDTLS_PSA_CRYPTO_SPM)
29 /*
30  * PSA_CRYPTO_SECURE means that the file which included this file is being
31  * compiled for SPE. The files crypto_structs.h and crypto_types.h have
32  * different implementations for NSPE and SPE and are compiled according to this
33  * flag.
34  */
35 #define PSA_CRYPTO_SECURE 1
36 #include "crypto_spe.h"
37 #endif // MBEDTLS_PSA_CRYPTO_SPM
38 
39 #endif // PSA_CRYPTO_SERVICE_INTEGRATION_H
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.