blob: 1964e8e559a601e8e5483a9ea4db758f1a6a9953 [file] [log] [blame]
Andres AGf84f8922016-09-19 15:33:30 +01001/**
Darryl Greena40a1012018-01-05 15:33:17 +00002 * \file config-no-entropy.h
Andres AGf84f8922016-09-19 15:33:30 +01003 *
Darryl Greena40a1012018-01-05 15:33:17 +00004 * \brief Minimal configuration of features that do not require an entropy source
5 */
6/*
Bence Szépkúti1e148272020-08-07 13:07:28 +02007 * Copyright The Mbed TLS Contributors
Andres AGf84f8922016-09-19 15:33:30 +01008 * SPDX-License-Identifier: Apache-2.0
9 *
10 * Licensed under the Apache License, Version 2.0 (the "License"); you may
11 * not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
Andres AGf84f8922016-09-19 15:33:30 +010021 */
22/*
23 * Minimal configuration of features that do not require an entropy source
Jacob Schlossd8a573b2019-02-27 22:22:00 -080024 * Distinguishing features:
Andres AGf84f8922016-09-19 15:33:30 +010025 * - no entropy module
Andres AG7abc9742016-09-23 17:58:49 +010026 * - no TLS protocol implementation available due to absence of an entropy
27 * source
Andres AGf84f8922016-09-19 15:33:30 +010028 *
29 * See README.txt for usage instructions.
30 */
31
Andres AGf84f8922016-09-19 15:33:30 +010032/* System support */
33#define MBEDTLS_HAVE_ASM
34#define MBEDTLS_HAVE_TIME
35
Gilles Peskinee820c0a2023-08-03 17:45:20 +020036/* Mbed TLS feature support */
Andres AGf84f8922016-09-19 15:33:30 +010037#define MBEDTLS_CIPHER_MODE_CBC
38#define MBEDTLS_CIPHER_PADDING_PKCS7
Andres AGf84f8922016-09-19 15:33:30 +010039#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
40#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
41#define MBEDTLS_ECP_DP_CURVE25519_ENABLED
42#define MBEDTLS_ECP_NIST_OPTIM
43#define MBEDTLS_ECDSA_DETERMINISTIC
44#define MBEDTLS_PK_RSA_ALT_SUPPORT
45#define MBEDTLS_PKCS1_V15
46#define MBEDTLS_PKCS1_V21
47#define MBEDTLS_SELF_TEST
48#define MBEDTLS_VERSION_FEATURES
Andres AGf84f8922016-09-19 15:33:30 +010049
Gilles Peskinee820c0a2023-08-03 17:45:20 +020050/* Mbed TLS modules */
Andres AGf84f8922016-09-19 15:33:30 +010051#define MBEDTLS_AES_C
52#define MBEDTLS_ASN1_PARSE_C
53#define MBEDTLS_ASN1_WRITE_C
54#define MBEDTLS_BASE64_C
55#define MBEDTLS_BIGNUM_C
56#define MBEDTLS_CCM_C
57#define MBEDTLS_CIPHER_C
58#define MBEDTLS_ECDSA_C
59#define MBEDTLS_ECP_C
60#define MBEDTLS_ERROR_C
61#define MBEDTLS_GCM_C
62#define MBEDTLS_HMAC_DRBG_C
63#define MBEDTLS_MD_C
64#define MBEDTLS_OID_C
65#define MBEDTLS_PEM_PARSE_C
66#define MBEDTLS_PK_C
67#define MBEDTLS_PK_PARSE_C
68#define MBEDTLS_PK_WRITE_C
69#define MBEDTLS_PLATFORM_C
70#define MBEDTLS_RSA_C
Mateusz Starzyk9d2d6c92021-05-18 15:54:20 +020071/* The library does not currently support enabling SHA-224 without SHA-256.
72 * A future version of the library will have this option disabled
73 * by default. */
Mateusz Starzyke3c48b42021-04-19 16:46:28 +020074#define MBEDTLS_SHA224_C
Mateusz Starzyk6326a8d2021-05-10 13:51:53 +020075#define MBEDTLS_SHA256_C
Mateusz Starzyk3352a532021-04-06 14:28:22 +020076#define MBEDTLS_SHA384_C
Mateusz Starzyk6326a8d2021-05-10 13:51:53 +020077#define MBEDTLS_SHA512_C
Andres AGf84f8922016-09-19 15:33:30 +010078#define MBEDTLS_VERSION_C
Gilles Peskine252e3912020-02-26 18:33:58 +010079#define MBEDTLS_X509_USE_C
80#define MBEDTLS_X509_CRT_PARSE_C
81#define MBEDTLS_X509_CRL_PARSE_C
Krzysztof Stachowiakab727272018-06-06 13:55:05 +020082//#define MBEDTLS_CMAC_C
Andres AGf84f8922016-09-19 15:33:30 +010083
Andres Amaya Garcia28f320e2017-06-23 13:05:44 +010084/* Miscellaneous options */
85#define MBEDTLS_AES_ROM_TABLES