Skip to content

Conversation

Vge0rge
Copy link
Contributor

@Vge0rge Vge0rge commented Oct 2, 2025

The NRF_IRONSIDE is a provider of PSA services (including storage and storage) so it cannot be used along with the secure storage subsystem which provides PSA storage APIs or the mbedtls PSA implementation.

@Vge0rge Vge0rge requested a review from tomi-font October 2, 2025 12:13
@zephyrbot zephyrbot added area: Secure Storage Secure Storage size: XS A PR changing only a single line of code labels Oct 2, 2025
@Vge0rge Vge0rge changed the title secure_storage: Forbit usage with NRF_IRONSIDE Forbid usage with NRF_IRONSIDE in mbedtls and secure storage Oct 2, 2025
The NRF_IRONSIDE is a provider of PSA services (including storage)
so it cannot be used along with the secure storage subsystem which
provides PSA storage APIs.

Signed-off-by: Georgios Vasilakis <[email protected]>
The NRF_IRONSIDE provides PSA crypto APIs the same way that
the TF-M does. Take that into account in the MBEDTLS configuration
configuration.

Signed-off-by: Georgios Vasilakis <[email protected]>
@Vge0rge Vge0rge changed the title Forbid usage with NRF_IRONSIDE in mbedtls and secure storage Forbid usage of NRF_IRONSIDE in mbedtls and secure storage Oct 2, 2025
Copy link

sonarqubecloud bot commented Oct 2, 2025

@Vge0rge Vge0rge added the DNM This PR should not be merged (Do Not Merge) label Oct 3, 2025
@Vge0rge
Copy link
Contributor Author

Vge0rge commented Oct 3, 2025

Adding DNM because I see some breakages on the CI that I need to investigate.

bool
default y
depends on BUILD_WITH_TFM || MBEDTLS_PSA_CRYPTO_C
depends on BUILD_WITH_TFM || MBEDTLS_PSA_CRYPTO_C || NRF_IRONSIDE
Copy link
Contributor

Choose a reason for hiding this comment

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

@valeriosetti with your PR #96415 maybe we could make this Kconfig option just depend on PSA_CRYPTO_PROVIDER (or PSA_CRYPTO)?

config MBEDTLS_PSA_CRYPTO_C
bool "Platform Security Architecture cryptography API"
depends on !BUILD_WITH_TFM
depends on !NRF_IRONSIDE
Copy link
Contributor

Choose a reason for hiding this comment

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

commit message typos

The NRF_IRONSIDE provides PSA crypto APIs the same way that
the TF-M does. Take that into account in the MBEDTLS configuration
configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: mbedTLS / PSA Crypto area: Secure Storage Secure Storage DNM This PR should not be merged (Do Not Merge) size: XS A PR changing only a single line of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants