Skip to content
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

[nrf noup] Sysbuild support for MCUboot crypto backend selection #2056

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

de-nordic
Copy link
Contributor

The commit adds support for selecting MCUboot crypto backend, when building with sysbuild.

This currently adds two options:

  • SB_CONFIG_BOOT_CRYPTO_LIBRARY_DEFAULT -- which keeps current behaviour where a library is selected depending on preferred signature method
  • SB_CONFIG_BOOT_CRYPTO_LIBRARY_PSA -- enforces usage of PSA, regardless of signature algorithm; the option currently supports the ED25519 only.

The commit adds support for selecting MCUboot crypto backend,
when building with sysbuild.

This currently adds two options:
 - SB_CONFIG_BOOT_CRYPTO_LIBRARY_DEFAULT -- which keeps current
   behaviour where a library is selected depending on preferred
   signature method
 - SB_CONFIG_BOOT_CRYPTO_LIBRARY_PSA -- enforces usage of PSA,
   regardless of signature algorithm; the option currently supports
   the ED25519 only.

Signed-off-by: Dominik Ermel <[email protected]>
@@ -55,6 +55,35 @@ config BOOT_SIGNATURE_TYPE_ED25519

endchoice

choice BOOT_CRYPTO_LIBRARY
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this goes in sdk-nrf under sysbuild/Kconfig.sysbuild

Comment on lines +71 to +83
if BOOT_CRYPTO_LIBRARY_PSA

config MBEDTLS
bool
default n

config MBEDTLS_PSA_CRYPTO_C
bool
default y

config NRF_SECURITY
bool
default y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does not do anything to the target image, these can go

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