BSB Developer Docs
Loading...
Searching...
No Matches
sl_mbedtls_config.h
1#ifndef SL_MBEDTLS_CONFIG_H
2#define SL_MBEDTLS_CONFIG_H
3
4// -----------------------------------------------------------------------------
5// User exposed config options
6
7// <<< Use Configuration Wizard in Context Menu >>>
8
9// <h> TLS/DTLS configuration
10
11// <o MBEDTLS_SSL_CIPHERSUITES> Complete list of ciphersuites to use, in order of preference.
12// <i> Default: MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8
13// <i> Complete list of ciphersuites to use, in order of preference.
14// <i> The value of this configuration should be updated for the application needs.
15#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8
16
17// <o SL_MBEDTLS_SSL_IN_CONTENT_LEN> Maximum TLS/DTLS fragment length in bytes (input).
18// <i> Default: 768
19// <i> The size configured here determines the size of the internal I/O
20// <i> buffer used in mbedTLS when receiving data.
21#define SL_MBEDTLS_SSL_IN_CONTENT_LEN 768
22
23// <o SL_MBEDTLS_SSL_OUT_CONTENT_LEN> Maximum TLS/DTLS fragment length in bytes (output).
24// <i> Default: 768
25// <i> The size configured here determines the size of the internal I/O
26// <i> buffer used in mbedTLS when sending data.
27#define SL_MBEDTLS_SSL_OUT_CONTENT_LEN 768
28
29// <q SL_MBEDTLS_SSL_MAX_FRAGMENT_LENGTH> Enable support for RFC 6066 max_fragment_length extension in SSL.
30// <i> Default: 1
31// <i> Enable support for RFC 6066 max_fragment_length extension in SSL.
32#define SL_MBEDTLS_SSL_MAX_FRAGMENT_LENGTH 1
33
34// <q SL_MBEDTLS_SSL_EXPORT_KEYS> Enable support for exporting key block and master secret.
35// <i> Default: 1
36// <i> Enable support for exporting key block and master secret.
37// <i> This is required for certain users of TLS, e.g. EAP-TLS.
38#define SL_MBEDTLS_SSL_EXPORT_KEYS 1
39
40// <q SL_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED> Enable the PSK based ciphersuite modes in SSL / TLS.
41// <i> Default: 0
42// <i> Enable the PSK based ciphersuite modes in SSL / TLS.
43#define SL_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED 0
44
45// <q SL_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED> Enable the ECDHE-PSK based ciphersuite modes in SSL / TLS.
46// <i> Default: 0
47// <i> Enable the ECDHE-PSK based ciphersuite modes in SSL / TLS.
48#define SL_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED 0
49
50// <q SL_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED> Enable the ECDHE-ECDSA based ciphersuite modes in SSL / TLS.
51// <i> Default: 0
52// <i> Enable the ECDHE-ECDSA based ciphersuite modes in SSL / TLS.
53#define SL_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED 0
54
55// <q SL_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED> Enable the ECDHE-RSA based ciphersuite modes in SSL / TLS.
56// <i> Default: 0
57// <i> Enable the ECDHE-RSA based ciphersuite modes in SSL / TLS.
58#define SL_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED 0
59
60// <q SL_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED> Enable the ECDH-ECDSA based ciphersuite modes in SSL / TLS.
61// <i> Default: 0
62// <i> Enable the ECDH-ECDSA based ciphersuite modes in SSL / TLS.
63#define SL_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED 0
64
65// <q SL_MBEDTLS_ECP_ENABLE_COMPRESSED_CURVE_PARSING> Enable parsing of the compressed curves.
66// <i> Default: 0
67// <i> Enable parsing of the compressed curves.
68#define SL_MBEDTLS_ECP_ENABLE_COMPRESSED_CURVE_PARSING 0
69
70// <q SL_MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS> Assume all buffers passed to PSA functions are owned exclusively by the PSA function.
71// <i> Default: 0
72// <i> This option may be enabled if all buffers passed to any PSA function reside
73// <i> in memory that is accessible only to the PSA function during its execution.
74// <i> This option MUST be disabled whenever buffer arguments are in memory shared
75// <i> with an untrusted party, for example where arguments to PSA calls are passed
76// <i> across a trust boundary.
77#define SL_MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS 0
78
79// </h>
80
81// <h> RSA configuration
82
83// <q SL_MBEDTLS_RSA_NO_CRT> Disable use of the Chinese Remainder Theorem for RSA.
84// <i> Default: 0
85// <i> Disable use of the Chinese Remainder Theorem for RSA private key
86// <i> computations.
87#define SL_MBEDTLS_RSA_NO_CRT 0
88
89// </h>
90
91// <h> Miscellaneous configuration
92
93// <q SL_MBEDTLS_DRIVERS_ENABLED> Enable Silicon Labs' Mbed TLS- and PSA Crypto drivers.
94// <i> Default: 1
95// <i> Enable drivers for hardware acceleration (Mbed TLS and PSA Crypto) and
96// <i> secure key handling (PSA Crypto).
97#define SL_MBEDTLS_DRIVERS_ENABLED 1
98
99// </h>
100
101// <<< end of configuration section >>>
102
103// -----------------------------------------------------------------------------
104// Sub-files
105
106#if defined(SLI_MBEDTLS_CONFIG_AUTOGEN_OVERRIDE_FILE)
107 #include SLI_MBEDTLS_CONFIG_AUTOGEN_OVERRIDE_FILE
108#else
109 #include "sli_mbedtls_config_autogen.h"
110#endif
111
112#include "sli_mbedtls_omnipresent.h"
113
114#if SL_MBEDTLS_DRIVERS_ENABLED
115 #include "sli_mbedtls_acceleration.h"
116#endif
117
118#include "sl_mbedtls_device_config.h"
119
120// Include transformation logic to apply CMSIS-config configuration options to
121// the correct Mbed TLS / PSA Crypto options.
122#include "sli_mbedtls_config_transform_autogen.h"
123
124// Included for backward compatibility reasons.
125#include "mbedtls/build_info.h"
126
127#endif // SL_MBEDTLS_CONFIG_H