-
Notifications
You must be signed in to change notification settings - Fork 7.4k
modules: uoscore/uedhoc: fix PSA Crypto dependencies selection #90341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modules: uoscore/uedhoc: fix PSA Crypto dependencies selection #90341
Conversation
valeriosetti
commented
May 22, 2025
- Remove selection of RSA crypto support because uoscore/uedhoc only use EC keys, not RSA ones
- Instead of having uoscore/uedhoc dependencies all over the Mbed TLS' Kconfig move the selection of required PSA Crypto features in uoscore-uedhoc's Kconfig
uOSCORE and uEDHOC only use ECDSA and ECDH for signatures and key agreement respectively, so the support for RSA is not required. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, but how about using a helper (promptless) Kconfig option that both UOSCORE
and UEDHOC
would select
which would have all you're adding?
modules/uoscore-uedhoc/Kconfig
Outdated
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT | ||
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT | ||
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE | ||
# select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to be removed
Let uOSCORE and uEDHOC Kconfigs select required PSA Crypto features instead of having them selected in Mbed TLS' Kconfigs. Besides this the previous configuration was enabling legacy support in Mbed TLS whereas uOSCORE/uEDHOC use PSA Crypto APIs. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
PSA Crypto dependencies are automatically selected in the uOSCORE's Kconfig. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
7494511
to
a6ff67a
Compare
|