From 66e7b903ce2b31039bd8b552a0d71436e4037c3a Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 12 Feb 2021 23:40:58 +0100 Subject: [PATCH] Create a separate test module for PSA exercise_key The code will be moved in a subsequent commit. Signed-off-by: Gilles Peskine --- tests/include/test/psa_exercise_key.h | 30 ++++++++++++++++++++++++++ tests/src/psa_exercise_key.c | 31 +++++++++++++++++++++++++++ visualc/VS2010/mbedTLS.vcxproj | 2 ++ 3 files changed, 63 insertions(+) create mode 100644 tests/include/test/psa_exercise_key.h create mode 100644 tests/src/psa_exercise_key.c diff --git a/tests/include/test/psa_exercise_key.h b/tests/include/test/psa_exercise_key.h new file mode 100644 index 000000000..d4a0ea65f --- /dev/null +++ b/tests/include/test/psa_exercise_key.h @@ -0,0 +1,30 @@ +/** Code to exercise a PSA key object, i.e. validate that it seems well-formed + * and can do what it is supposed to do. + */ +/* + * 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. + */ + +#ifndef PSA_EXERCISE_KEY_H +#define PSA_EXERCISE_KEY_H + +#include "test/helpers.h" +#include "test/psa_crypto_helpers.h" + +#include + + +#endif /* PSA_EXERCISE_KEY_H */ diff --git a/tests/src/psa_exercise_key.c b/tests/src/psa_exercise_key.c new file mode 100644 index 000000000..78e46d9e6 --- /dev/null +++ b/tests/src/psa_exercise_key.c @@ -0,0 +1,31 @@ +/** Code to exercise a PSA key object, i.e. validate that it seems well-formed + * and can do what it is supposed to do. + */ + +/* + * 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 +#include +#include + +#if defined(MBEDTLS_PSA_CRYPTO_C) + +#include + + +#endif /* MBEDTLS_PSA_CRYPTO_C */ diff --git a/visualc/VS2010/mbedTLS.vcxproj b/visualc/VS2010/mbedTLS.vcxproj index da026d953..36ad7652e 100644 --- a/visualc/VS2010/mbedTLS.vcxproj +++ b/visualc/VS2010/mbedTLS.vcxproj @@ -237,6 +237,7 @@ + @@ -357,6 +358,7 @@ +