-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mbedtls: auto-enable PSA_WANT_KEY_TYPE_xxx_KEY_PAIR_BASIC
PSA_WANT_KEY_TYPE_xxx_KEY_PAIR_BASIC build symbols are automatically enabled in Mbed TLS header files whenever any key pair feature between IMPORT,EXPORT, GENERATE,DERIVE is set. So we mimic the same behavior with Kconfig symbols: - do not add BASIC to the automatic generated Kconfig file; - let BASIC be auto-enabled as soon as any other feature (IMPORT,EXPORT, GENERATE,DERIVE) is enabled for the same key type. 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. Signed-off-by: Valerio Setti <[email protected]>
- Loading branch information
1 parent
90ff9c0
commit 91999fb
Showing
4 changed files
with
44 additions
and
12 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,27 @@ | ||
# 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 | ||
bool | ||
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 | ||
bool | ||
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 | ||
bool | ||
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