Skip to content

Commit 7bbc1db

Browse files
committed
modules: mbedtls: remove deprecated PSA_WANT symbols
DES and elliptic curves secp192r1, secp192k1 and secp224r1 were removed from tf-psa-crypto. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
1 parent 69fb7f1 commit 7bbc1db

File tree

3 files changed

+4
-36
lines changed

3 files changed

+4
-36
lines changed

‎modules/mbedtls/Kconfig.psa.auto‎

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# This file was automatically generated by create_psa_files.py
5-
# from: ../../../modules/crypto/mbedtls/include/psa/crypto_config.h.
5+
# from: ../../../modules/crypto/mbedtls-4/tf-psa-crypto/include/psa/crypto_config.h.
66
# Do not edit it manually.
77

88
config PSA_CRYPTO_CLIENT
@@ -200,22 +200,10 @@ config PSA_WANT_ECC_MONTGOMERY_448
200200
bool "PSA_WANT_ECC_MONTGOMERY_448" if !MBEDTLS_PROMPTLESS
201201
default y if PSA_CRYPTO_ENABLE_ALL
202202

203-
config PSA_WANT_ECC_SECP_K1_192
204-
bool "PSA_WANT_ECC_SECP_K1_192" if !MBEDTLS_PROMPTLESS
205-
default y if PSA_CRYPTO_ENABLE_ALL
206-
207203
config PSA_WANT_ECC_SECP_K1_256
208204
bool "PSA_WANT_ECC_SECP_K1_256" if !MBEDTLS_PROMPTLESS
209205
default y if PSA_CRYPTO_ENABLE_ALL
210206

211-
config PSA_WANT_ECC_SECP_R1_192
212-
bool "PSA_WANT_ECC_SECP_R1_192" if !MBEDTLS_PROMPTLESS
213-
default y if PSA_CRYPTO_ENABLE_ALL
214-
215-
config PSA_WANT_ECC_SECP_R1_224
216-
bool "PSA_WANT_ECC_SECP_R1_224" if !MBEDTLS_PROMPTLESS
217-
default y if PSA_CRYPTO_ENABLE_ALL
218-
219207
config PSA_WANT_ECC_SECP_R1_256
220208
bool "PSA_WANT_ECC_SECP_R1_256" if !MBEDTLS_PROMPTLESS
221209
default y if PSA_CRYPTO_ENABLE_ALL
@@ -280,10 +268,6 @@ config PSA_WANT_KEY_TYPE_CHACHA20
280268
bool "PSA_WANT_KEY_TYPE_CHACHA20" if !MBEDTLS_PROMPTLESS
281269
default y if PSA_CRYPTO_ENABLE_ALL
282270

283-
config PSA_WANT_KEY_TYPE_DES
284-
bool "PSA_WANT_KEY_TYPE_DES" if !MBEDTLS_PROMPTLESS
285-
default y if PSA_CRYPTO_ENABLE_ALL
286-
287271
config PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY
288272
bool "PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY" if !MBEDTLS_PROMPTLESS
289273
default y if PSA_CRYPTO_ENABLE_ALL

‎modules/mbedtls/configs/config-psa.h‎

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
/* This file was automatically generated by create_psa_files.py
8-
* from: ../../../modules/crypto/mbedtls/include/psa/crypto_config.h
8+
* from: ../../../modules/crypto/mbedtls-4/tf-psa-crypto/include/psa/crypto_config.h
99
* Do not edit it manually.
1010
*/
1111

@@ -196,22 +196,10 @@
196196
#define PSA_WANT_ECC_MONTGOMERY_448 1
197197
#endif
198198

199-
#if defined(CONFIG_PSA_WANT_ECC_SECP_K1_192)
200-
#define PSA_WANT_ECC_SECP_K1_192 1
201-
#endif
202-
203199
#if defined(CONFIG_PSA_WANT_ECC_SECP_K1_256)
204200
#define PSA_WANT_ECC_SECP_K1_256 1
205201
#endif
206202

207-
#if defined(CONFIG_PSA_WANT_ECC_SECP_R1_192)
208-
#define PSA_WANT_ECC_SECP_R1_192 1
209-
#endif
210-
211-
#if defined(CONFIG_PSA_WANT_ECC_SECP_R1_224)
212-
#define PSA_WANT_ECC_SECP_R1_224 1
213-
#endif
214-
215203
#if defined(CONFIG_PSA_WANT_ECC_SECP_R1_256)
216204
#define PSA_WANT_ECC_SECP_R1_256 1
217205
#endif
@@ -276,10 +264,6 @@
276264
#define PSA_WANT_KEY_TYPE_CHACHA20 1
277265
#endif
278266

279-
#if defined(CONFIG_PSA_WANT_KEY_TYPE_DES)
280-
#define PSA_WANT_KEY_TYPE_DES 1
281-
#endif
282-
283267
#if defined(CONFIG_PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY)
284268
#define PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY 1
285269
#endif

‎modules/mbedtls/create_psa_files.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
from typing import List
1212

1313
SCRIPT_PATH = os.path.dirname(__file__)
14-
INPUT_REL_PATH = os.path.join("..", "..", "..", "modules", "crypto", "mbedtls",
15-
"include", "psa", "crypto_config.h")
14+
INPUT_REL_PATH = os.path.join("..", "..", "..", "modules", "crypto", "mbedtls-4",
15+
"tf-psa-crypto", "include", "psa", "crypto_config.h")
1616
INPUT_FILE = os.path.normpath(os.path.join(SCRIPT_PATH, INPUT_REL_PATH))
1717

1818
KCONFIG_PATH=os.path.join(SCRIPT_PATH, "Kconfig.psa.auto")

0 commit comments

Comments
 (0)