2 * Copyright The Mbed TLS Contributors
3 * SPDX-License-Identifier: Apache-2.0
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #ifndef PSA_CRYPTO_SERVICE_INTEGRATION_H
19 #define PSA_CRYPTO_SERVICE_INTEGRATION_H
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
28 #if defined(MBEDTLS_PSA_CRYPTO_SPM)
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
35 #define PSA_CRYPTO_SECURE 1
36 #include "crypto_spe.h"
37 #endif // MBEDTLS_PSA_CRYPTO_SPM
39 #endif // PSA_CRYPTO_SERVICE_INTEGRATION_H