Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers psa_crypto_service_integration.h Source File

psa_crypto_service_integration.h

00001 /*  Copyright (C) 2019, ARM Limited, All Rights Reserved
00002  *  SPDX-License-Identifier: Apache-2.0
00003  *
00004  *  Licensed under the Apache License, Version 2.0 (the "License"); you may
00005  *  not use this file except in compliance with the License.
00006  *  You may obtain a copy of the License at
00007  *
00008  *  http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  *  Unless required by applicable law or agreed to in writing, software
00011  *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00012  *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  *  See the License for the specific language governing permissions and
00014  *  limitations under the License.
00015  *
00016  *  This file is part of mbed TLS (https://tls.mbed.org)
00017  */
00018 
00019 #ifndef PSA_CRYPTO_SERVICE_INTEGRATION_H
00020 #define PSA_CRYPTO_SERVICE_INTEGRATION_H
00021 
00022 /*
00023  * When MBEDTLS_PSA_CRYPTO_SPM is defined, the code is being built for SPM
00024  * (Secure Partition Manager) integration which separates the code into two
00025  * parts: NSPE (Non-Secure Processing Environment) and SPE (Secure Processing
00026  * Environment). When building for the SPE, an additional header file should be
00027  * included.
00028  */
00029 #if defined(MBEDTLS_PSA_CRYPTO_SPM)
00030 /*
00031  * PSA_CRYPTO_SECURE means that the file which included this file is being
00032  * compiled for SPE. The files crypto_structs.h and crypto_types.h have
00033  * different implementations for NSPE and SPE and are compiled according to this
00034  * flag.
00035  */
00036 #define PSA_CRYPTO_SECURE 1
00037 #include "crypto_spe.h"
00038 #endif // MBEDTLS_PSA_CRYPTO_SPM
00039 
00040 #endif // PSA_CRYPTO_SERVICE_INTEGRATION_H