From d7906327caecce0c1fc30897ea31a716bd5fdcde Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Thu, 28 Jan 2021 16:07:56 +0100 Subject: [PATCH] psa: Add psa_crypto_client.c Signed-off-by: Ronald Cron --- library/CMakeLists.txt | 1 + library/Makefile | 1 + library/psa_crypto_client.c | 28 ++++++++++++++++++++++++++++ visualc/VS2010/mbedTLS.vcxproj | 1 + 4 files changed, 31 insertions(+) create mode 100644 library/psa_crypto_client.c diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index b309b6e65..b2a074113 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -61,6 +61,7 @@ set(src_crypto platform_util.c poly1305.c psa_crypto.c + psa_crypto_client.c psa_crypto_driver_wrappers.c psa_crypto_se.c psa_crypto_slot_management.c diff --git a/library/Makefile b/library/Makefile index ae33bf2cc..b431cf577 100644 --- a/library/Makefile +++ b/library/Makefile @@ -118,6 +118,7 @@ OBJS_CRYPTO= \ platform_util.o \ poly1305.o \ psa_crypto.o \ + psa_crypto_client.o \ psa_crypto_driver_wrappers.o \ psa_crypto_se.o \ psa_crypto_slot_management.o \ diff --git a/library/psa_crypto_client.c b/library/psa_crypto_client.c new file mode 100644 index 000000000..4fd93f791 --- /dev/null +++ b/library/psa_crypto_client.c @@ -0,0 +1,28 @@ +/* + * PSA crypto client code + */ +/* + * Copyright The Mbed TLS Contributors + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "common.h" + +#if defined(MBEDTLS_PSA_CRYPTO_CLIENT) || defined(MBEDTLS_PSA_CRYPTO_C) + +#include "psa_crypto_service_integration.h" +#include "psa/crypto.h" + +#endif /* MBEDTLS_PSA_CRYPTO_CLIENT || MBEDTLS_PSA_CRYPTO_C */ diff --git a/visualc/VS2010/mbedTLS.vcxproj b/visualc/VS2010/mbedTLS.vcxproj index 78832eb6c..1af0eb32b 100644 --- a/visualc/VS2010/mbedTLS.vcxproj +++ b/visualc/VS2010/mbedTLS.vcxproj @@ -317,6 +317,7 @@ +