@@ -9,6 +9,8 @@ menu "TLS configuration"
9
9
10
10
menu "Supported TLS version"
11
11
12
+ if !(NRF_SECURITY || NORDIC_SECURITY_BACKEND)
13
+
12
14
config MBEDTLS_TLS_VERSION_1_0
13
15
bool "Enable support for TLS 1.0"
14
16
select MBEDTLS_CIPHER
@@ -33,6 +35,8 @@ config MBEDTLS_DTLS
33
35
bool "Enable support for DTLS"
34
36
depends on MBEDTLS_TLS_VERSION_1_1 || MBEDTLS_TLS_VERSION_1_2
35
37
38
+ endif
39
+
36
40
config MBEDTLS_SSL_EXPORT_KEYS
37
41
bool "Enable support for exporting SSL key block and master secret"
38
42
depends on MBEDTLS_TLS_VERSION_1_0 || MBEDTLS_TLS_VERSION_1_1 || MBEDTLS_TLS_VERSION_1_2
@@ -47,6 +51,8 @@ menu "Ciphersuite configuration"
47
51
48
52
comment "Supported key exchange modes"
49
53
54
+ if !(NRF_SECURITY || NORDIC_SECURITY_BACKEND)
55
+
50
56
config MBEDTLS_KEY_EXCHANGE_ALL_ENABLED
51
57
bool "Enable all available ciphersuite modes"
52
58
select MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
@@ -80,13 +86,17 @@ config MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED
80
86
MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED || \
81
87
MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
82
88
89
+ endif
90
+
83
91
config MBEDTLS_PSK_MAX_LEN
84
92
int "Max size of TLS pre-shared keys"
85
93
default 32
86
94
depends on MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED
87
95
help
88
96
Max size of TLS pre-shared keys, in bytes.
89
97
98
+ if !(NRF_SECURITY || NORDIC_SECURITY_BACKEND)
99
+
90
100
config MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
91
101
bool "Enable the RSA-only based ciphersuite modes"
92
102
default y if !NET_L2_OPENTHREAD
@@ -119,8 +129,12 @@ if MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED || \
119
129
MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED || \
120
130
MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
121
131
132
+ endif
133
+
122
134
comment "Supported elliptic curves"
123
135
136
+ if !(NRF_SECURITY || NORDIC_SECURITY_BACKEND)
137
+
124
138
config MBEDTLS_ECP_ALL_ENABLED
125
139
bool "Enable all available elliptic curves"
126
140
select MBEDTLS_ECP_DP_SECP192R1_ENABLED
@@ -182,9 +196,12 @@ config MBEDTLS_ECP_NIST_OPTIM
182
196
bool "Enable NSIT curves optimization"
183
197
184
198
endif
199
+ endif
185
200
186
201
comment "Supported cipher modes"
187
202
203
+ if !(NRF_SECURITY || NORDIC_SECURITY_BACKEND)
204
+
188
205
config MBEDTLS_CIPHER_ALL_ENABLED
189
206
bool "Enable all available ciphers"
190
207
select MBEDTLS_CIPHER_AES_ENABLED
@@ -248,8 +265,12 @@ config MBEDTLS_CHACHAPOLY_AEAD_ENABLED
248
265
bool "Enable the ChaCha20-Poly1305 AEAD algorithm"
249
266
depends on MBEDTLS_CIPHER_CHACHA20_ENABLED || MBEDTLS_MAC_POLY1305_ENABLED
250
267
268
+ endif
269
+
251
270
comment "Supported message authentication methods"
252
271
272
+ if !(NRF_SECURITY || NORDIC_SECURITY_BACKEND)
273
+
253
274
config MBEDTLS_MAC_ALL_ENABLED
254
275
bool "Enable all available MAC methods"
255
276
select MBEDTLS_MAC_MD4_ENABLED
@@ -293,10 +314,14 @@ config MBEDTLS_MAC_CMAC_ENABLED
293
314
bool "Enable the CMAC (Cipher-based Message Authentication Code) mode for block ciphers."
294
315
depends on MBEDTLS_CIPHER_AES_ENABLED || MBEDTLS_CIPHER_DES_ENABLED
295
316
317
+ endif
318
+
296
319
endmenu
297
320
298
321
comment "Random number generators"
299
322
323
+ if !(NRF_SECURITY || NORDIC_SECURITY_BACKEND)
324
+
300
325
config MBEDTLS_CTR_DRBG_ENABLED
301
326
bool "Enable the CTR_DRBG AES-256-based random generator"
302
327
depends on MBEDTLS_CIPHER_AES_ENABLED
@@ -306,14 +331,20 @@ config MBEDTLS_HMAC_DRBG_ENABLED
306
331
bool "Enable the HMAC_DRBG random generator"
307
332
select MBEDTLS_MD
308
333
334
+ endif
335
+
309
336
comment "Other configurations"
310
337
311
338
config MBEDTLS_CIPHER
312
339
bool "Enable the generic cipher layer."
313
340
341
+ if !(NRF_SECURITY || NORDIC_SECURITY_BACKEND)
342
+
314
343
config MBEDTLS_MD
315
344
bool "Enable the generic message digest layer."
316
345
346
+ endif
347
+
317
348
config MBEDTLS_GENPRIME_ENABLED
318
349
bool "Enable the prime-number generation code."
319
350
@@ -331,10 +362,14 @@ config MBEDTLS_HAVE_ASM
331
362
of asymmetric cryptography, however this might have an impact on the
332
363
code size.
333
364
365
+ if !(NRF_SECURITY || NORDIC_SECURITY_BACKEND)
366
+
334
367
config MBEDTLS_ENTROPY_ENABLED
335
368
bool "Enable mbedTLS generic entropy pool"
336
369
depends on MBEDTLS_MAC_SHA256_ENABLED || MBEDTLS_MAC_SHA512_ENABLED
337
370
371
+ endif
372
+
338
373
config MBEDTLS_OPENTHREAD_OPTIMIZATIONS_ENABLED
339
374
bool "Enable mbedTLS optimizations for OpenThread"
340
375
depends on NET_L2_OPENTHREAD
0 commit comments