Skip to content

Commit 1c03013

Browse files
committed
[nrf noup]: Add PSA_WANT Kconfigs for key types
The new Oberon PSA core (1.2.0) uses new PSA_WANT symbols for the ECC and RSA keys. This adds these new Kconfigs without removing the old ones to avoid necessary changes in the configuration of an application. Signed-off-by: Georgios Vasilakis <[email protected]> Signed-off-by: Markus Swarowsky <[email protected]>
1 parent bd3870d commit 1c03013

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

modules/mbedtls/Kconfig.psa

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,40 @@ config PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY
133133
help
134134
Elliptic curve public key.
135135

136+
137+
config PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT
138+
bool "PSA ECC import key pair support"
139+
default y if PSA_WANT_KEY_TYPE_ECC_KEY_PAIR
140+
select PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY
141+
help
142+
Elliptic curve key pair: import for both the private and public key.
143+
144+
config PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT
145+
bool "PSA ECC export key pair support"
146+
default y if PSA_WANT_KEY_TYPE_ECC_KEY_PAIR
147+
select PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY
148+
help
149+
Elliptic curve key pair: export for both the private and public key.
150+
151+
config PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE
152+
bool "PSA ECC generate key pair support"
153+
default y if PSA_WANT_KEY_TYPE_ECC_KEY_PAIR
154+
select PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY
155+
help
156+
Elliptic curve key pair: generate for both the private and public key.
157+
158+
config PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC
159+
bool
160+
default y
161+
depends on PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT || \
162+
PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT || \
163+
PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE
164+
165+
config PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE
166+
bool
167+
default y
168+
depends on PSA_WANT_KEY_TYPE_ECC_KEY_PAIR
169+
136170
config PSA_WANT_KEY_TYPE_RSA_KEY_PAIR
137171
bool "PSA RSA key pair type support"
138172
select PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY
@@ -144,6 +178,34 @@ config PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY
144178
help
145179
RSA public key.
146180

181+
config PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_IMPORT
182+
bool "PSA RSA key pair import key"
183+
default y if PSA_WANT_KEY_TYPE_RSA_KEY_PAIR
184+
select PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY
185+
help
186+
RSA key pair: import key for both the private and public key.
187+
188+
config PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_EXPORT
189+
bool "PSA RSA key pair export key"
190+
default y if PSA_WANT_KEY_TYPE_RSA_KEY_PAIR
191+
select PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY
192+
help
193+
RSA key pair: export key for both the private and public key.
194+
195+
config PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_GENERATE
196+
bool "PSA RSA key pair generate key"
197+
default y if PSA_WANT_KEY_TYPE_RSA_KEY_PAIR
198+
select PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY
199+
help
200+
RSA key pair: key generation for both the private and public key.
201+
202+
config PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_BASIC
203+
bool
204+
default y
205+
depends on PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_IMPORT || \
206+
PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_EXPORT || \
207+
PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_GENERATE
208+
147209
config PSA_WANT_KEY_TYPE_DH_KEY_PAIR
148210
bool "PSA DH key pair type support"
149211
select PSA_WANT_KEY_TYPE_DH_PUBLIC_KEY

0 commit comments

Comments
 (0)