Skip to content

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]>

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

@de-nordic de-nordic closed this Oct 9, 2024
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