1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /* Copyright (c) 2018, Linaro Limited */
3 #ifndef __MBEDTLS_CONFIG_UTA_H
4 #define __MBEDTLS_CONFIG_UTA_H
5 
6 /*
7  * When wrapping using TEE_BigInt to represent a mbedtls_mpi we can only
8  * use 32-bit arithmetics.
9  */
10 #define MBEDTLS_HAVE_INT32
11 
12 #define MBEDTLS_CIPHER_MODE_CBC
13 #define MBEDTLS_PKCS1_V15
14 
15 #define MBEDTLS_CIPHER_C
16 #define MBEDTLS_DES_C
17 #define MBEDTLS_AES_C
18 
19 #define MBEDTLS_SHA1_C
20 #define MBEDTLS_SHA256_C
21 #define MBEDTLS_MD_C
22 #define MBEDTLS_MD5_C
23 
24 #define MBEDTLS_CTR_DRBG_C
25 #define MBEDTLS_ENTROPY_C
26 #define MBEDTLS_NO_PLATFORM_ENTROPY
27 
28 #define MBEDTLS_BIGNUM_C
29 #define MBEDTLS_GENPRIME
30 #define MBEDTLS_RSA_C
31 #define MBEDTLS_ECDH_C
32 #define MBEDTLS_ECDSA_C
33 #define MBEDTLS_ECP_C
34 #define MBEDTLS_ECP_DP_SECP192R1_ENABLED
35 #define MBEDTLS_ECP_DP_SECP224R1_ENABLED
36 #define MBEDTLS_ECP_DP_SECP256R1_ENABLED
37 #define MBEDTLS_ECP_DP_SECP384R1_ENABLED
38 #define MBEDTLS_ECP_DP_SECP521R1_ENABLED
39 #define MBEDTLS_ECP_DP_BP256R1_ENABLED
40 #define MBEDTLS_ECP_DP_BP384R1_ENABLED
41 #define MBEDTLS_ECP_DP_BP512R1_ENABLED
42 #define MBEDTLS_ECP_DP_SECP192K1_ENABLED
43 #define MBEDTLS_ECP_DP_SECP224K1_ENABLED
44 #define MBEDTLS_ECP_DP_SECP256K1_ENABLED
45 
46 #define MBEDTLS_PK_C
47 #define MBEDTLS_PK_PARSE_C
48 #define MBEDTLS_PK_WRITE_C
49 #define MBEDTLS_OID_C
50 #define MBEDTLS_ASN1_PARSE_C
51 #define MBEDTLS_ASN1_WRITE_C
52 #define MBEDTLS_X509_CRT_PARSE_C
53 #define MBEDTLS_X509_CRT_WRITE_C
54 #define MBEDTLS_X509_CSR_PARSE_C
55 #define MBEDTLS_X509_CSR_WRITE_C
56 #define MBEDTLS_X509_CREATE_C
57 #define MBEDTLS_X509_CHECK_KEY_USAGE
58 #define MBEDTLS_X509_USE_C
59 #define MBEDTLS_BASE64_C
60 #define MBEDTLS_CERTS_C
61 #define MBEDTLS_PEM_PARSE_C
62 #define MBEDTLS_PEM_WRITE_C
63 
64 #include <mbedtls/check_config.h>
65 
66 #endif /* __MBEDTLS_CONFIG_UTA_H */
67