Darryl Green | a40a101 | 2018-01-05 15:33:17 +0000 | [diff] [blame] | 1 | /** |
| 2 | * \file config-thread.h |
Manuel Pégourié-Gonnard | 9f52cac | 2015-10-19 14:06:07 +0200 | [diff] [blame] | 3 | * |
Darryl Green | a40a101 | 2018-01-05 15:33:17 +0000 | [diff] [blame] | 4 | * \brief Minimal configuration for using TLS as part of Thread |
| 5 | */ |
| 6 | /* |
Bence Szépkúti | 1e14827 | 2020-08-07 13:07:28 +0200 | [diff] [blame] | 7 | * Copyright The Mbed TLS Contributors |
Dave Rodgman | 16799db | 2023-11-02 19:47:20 +0000 | [diff] [blame] | 8 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later |
Manuel Pégourié-Gonnard | 9f52cac | 2015-10-19 14:06:07 +0200 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | /* |
| 12 | * Minimal configuration for using TLS a part of Thread |
| 13 | * http://threadgroup.org/ |
| 14 | * |
| 15 | * Distinguishing features: |
| 16 | * - no RSA or classic DH, fully based on ECC |
| 17 | * - no X.509 |
| 18 | * - support for experimental EC J-PAKE key exchange |
| 19 | * |
Ryan Everett | 885ea8d | 2024-04-24 16:34:14 +0100 | [diff] [blame] | 20 | * To be used in conjunction with configs/crypto-config-thread.h. |
Manuel Pégourié-Gonnard | 9f52cac | 2015-10-19 14:06:07 +0200 | [diff] [blame] | 21 | * See README.txt for usage instructions. |
| 22 | */ |
| 23 | |
Gilles Peskine | e820c0a | 2023-08-03 17:45:20 +0200 | [diff] [blame] | 24 | /* Mbed TLS feature support */ |
Manuel Pégourié-Gonnard | 9f52cac | 2015-10-19 14:06:07 +0200 | [diff] [blame] | 25 | #define MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED |
| 26 | #define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH |
| 27 | #define MBEDTLS_SSL_PROTO_TLS1_2 |
| 28 | #define MBEDTLS_SSL_PROTO_DTLS |
| 29 | #define MBEDTLS_SSL_DTLS_ANTI_REPLAY |
| 30 | #define MBEDTLS_SSL_DTLS_HELLO_VERIFY |
Manuel Pégourié-Gonnard | 9f52cac | 2015-10-19 14:06:07 +0200 | [diff] [blame] | 31 | |
Gilles Peskine | e820c0a | 2023-08-03 17:45:20 +0200 | [diff] [blame] | 32 | /* Mbed TLS modules */ |
Manuel Pégourié-Gonnard | 9f52cac | 2015-10-19 14:06:07 +0200 | [diff] [blame] | 33 | #define MBEDTLS_SSL_COOKIE_C |
| 34 | #define MBEDTLS_SSL_CLI_C |
| 35 | #define MBEDTLS_SSL_SRV_C |
| 36 | #define MBEDTLS_SSL_TLS_C |
Manuel Pégourié-Gonnard | b6fe70b | 2015-10-19 15:56:43 +0200 | [diff] [blame] | 37 | |
Manuel Pégourié-Gonnard | ca700b2 | 2015-10-20 14:47:00 +0200 | [diff] [blame] | 38 | /* For tests using ssl-opt.sh */ |
| 39 | #define MBEDTLS_NET_C |
| 40 | #define MBEDTLS_TIMING_C |
| 41 | |
Manuel Pégourié-Gonnard | b6fe70b | 2015-10-19 15:56:43 +0200 | [diff] [blame] | 42 | /* Save ROM and a few bytes of RAM by specifying our own ciphersuite list */ |
| 43 | #define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8 |