Skip to content

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

Merged
merged 3 commits into from
May 27, 2025

Conversation

valeriosetti
Copy link
Collaborator

  • 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>
Copy link
Collaborator

@tomi-font tomi-font left a 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?

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
Copy link
Collaborator

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>
@valeriosetti valeriosetti force-pushed the uoscore-uedhoc-rework branch from 7494511 to a6ff67a Compare May 26, 2025 13:49
@valeriosetti valeriosetti requested a review from tomi-font May 26, 2025 13:49
Copy link

@kartben kartben merged commit a03b06f into zephyrproject-rtos:main May 27, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants