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