1a8e1175bSopenharmony_ci/*
2a8e1175bSopenharmony_ci * Mbed TLS configuration for PSA test driver libraries. It includes:
3a8e1175bSopenharmony_ci * . the minimum set of modules needed by the PSA core.
4a8e1175bSopenharmony_ci * . the Mbed TLS configuration options that may need to be additionally
5a8e1175bSopenharmony_ci *   enabled for the purpose of a specific test.
6a8e1175bSopenharmony_ci * . the PSA configuration file for the Mbed TLS library and its test drivers.
7a8e1175bSopenharmony_ci */
8a8e1175bSopenharmony_ci/*
9a8e1175bSopenharmony_ci *  Copyright The Mbed TLS Contributors
10a8e1175bSopenharmony_ci *  SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
11a8e1175bSopenharmony_ci */
12a8e1175bSopenharmony_ci
13a8e1175bSopenharmony_ci#ifndef MBEDTLS_CONFIG_H
14a8e1175bSopenharmony_ci#define MBEDTLS_CONFIG_H
15a8e1175bSopenharmony_ci
16a8e1175bSopenharmony_ci#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
17a8e1175bSopenharmony_ci#define _CRT_SECURE_NO_DEPRECATE 1
18a8e1175bSopenharmony_ci#endif
19a8e1175bSopenharmony_ci
20a8e1175bSopenharmony_ci#define MBEDTLS_PSA_CRYPTO_C
21a8e1175bSopenharmony_ci#define MBEDTLS_PSA_CRYPTO_CONFIG
22a8e1175bSopenharmony_ci
23a8e1175bSopenharmony_ci/* PSA core mandatory configuration options */
24a8e1175bSopenharmony_ci#define MBEDTLS_CIPHER_C
25a8e1175bSopenharmony_ci#define MBEDTLS_AES_C
26a8e1175bSopenharmony_ci#define MBEDTLS_SHA256_C
27a8e1175bSopenharmony_ci#define MBEDTLS_PSA_BUILTIN_ALG_SHA_256 1
28a8e1175bSopenharmony_ci#define MBEDTLS_CTR_DRBG_C
29a8e1175bSopenharmony_ci#define MBEDTLS_ENTROPY_C
30a8e1175bSopenharmony_ci#define MBEDTLS_ENTROPY_FORCE_SHA256
31a8e1175bSopenharmony_ci
32a8e1175bSopenharmony_ci/*
33a8e1175bSopenharmony_ci * Configuration options that may need to be additionally enabled for the
34a8e1175bSopenharmony_ci * purpose of a specific set of tests.
35a8e1175bSopenharmony_ci */
36a8e1175bSopenharmony_ci//#define MBEDTLS_SHA1_C
37a8e1175bSopenharmony_ci//#define MBEDTLS_SHA224_C
38a8e1175bSopenharmony_ci//#define MBEDTLS_SHA384_C
39a8e1175bSopenharmony_ci//#define MBEDTLS_SHA512_C
40a8e1175bSopenharmony_ci//#define MBEDTLS_MD_C
41a8e1175bSopenharmony_ci//#define MBEDTLS_PEM_PARSE_C
42a8e1175bSopenharmony_ci//#define MBEDTLS_BASE64_C
43a8e1175bSopenharmony_ci//#define MBEDTLS_THREADING_C
44a8e1175bSopenharmony_ci//#define MBEDTLS_THREADING_PTHREAD
45a8e1175bSopenharmony_ci
46a8e1175bSopenharmony_ci#endif /* MBEDTLS_CONFIG_H */
47