-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mbedtls: make PSA_WANT_KEY_TYPE_xxx_KEY_PAIR_BASIC Kconfig promptless
The corresponding build symbols are automatically enabled in Mbed TLS header files whenever any key pair feature between IMPORT,EXPORT, GENERATE,DERIVE is set. So we do the same with Kconfig symbols: - make BASIC promptless - let key pair features (IMPORT,EXPORT,GENERATE,DERIVE) select BASIC. The 2nd point is achieved by adding a new Kconfig file which is meant to hold the logic between PSA_WANT symbols. This is necessary because Kconfig.psa is automatically generated. This commit also removes manual enablement of CONFIG_PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC from one test case. Signed-off-by: Valerio Setti <[email protected]>
- Loading branch information
1 parent
90ff9c0
commit 75fb9f8
Showing
5 changed files
with
47 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (c) 2024 BayLibre SAS | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# This file extends Kconfig.psa (which is automatically generated) by adding | ||
# some logic between PSA_WANT symbols. | ||
|
||
config PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC | ||
default y | ||
depends on PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT || \ | ||
PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT || \ | ||
PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE || \ | ||
PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE | ||
|
||
config PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_BASIC | ||
default y | ||
depends on PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_IMPORT || \ | ||
PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_EXPORT || \ | ||
PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_GENERATE | ||
|
||
config PSA_WANT_KEY_TYPE_DH_KEY_PAIR_BASIC | ||
default y | ||
depends on PSA_WANT_KEY_TYPE_DH_KEY_PAIR_IMPORT || \ | ||
PSA_WANT_KEY_TYPE_DH_KEY_PAIR_EXPORT || \ | ||
PSA_WANT_KEY_TYPE_DH_KEY_PAIR_GENERATE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
CONFIG_PSA_WANT_ALG_ECDH=y | ||
CONFIG_PSA_WANT_ALG_ECDSA=y | ||
CONFIG_PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC=y | ||
CONFIG_PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE=y | ||
CONFIG_PSA_WANT_ECC_SECP_R1_256=y |