-
Notifications
You must be signed in to change notification settings - Fork 8.1k
storage: flash_map: deprecate legacy Mbed TLS crypto #97605
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
storage: flash_map: deprecate legacy Mbed TLS crypto #97605
Conversation
000762e
to
c86ad3d
Compare
subsys/storage/flash_map/Kconfig
Outdated
|
||
config FLASH_AREA_CHECK_INTEGRITY_PSA | ||
bool "Use PSA" | ||
select PSA_WANT_ALG_SHA_256 | ||
select MBEDTLS if !BUILD_WITH_TFM | ||
select MBEDTLS_PSA_CRYPTO_C if !BUILD_WITH_TFM | ||
select PSA_WANT_ALG_SHA_256 if !BUILD_WITH_TFM |
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.
there is already a select PSA_WANT_ALG_SHA_256
before
c86ad3d
to
2259aec
Compare
subsys/storage/flash_map/Kconfig
Outdated
help | ||
Use the PSA API to perform the integrity check. | ||
|
||
config FLASH_AREA_CHECK_INTEGRITY_MBEDTLS | ||
bool "Use Mbed TLS" | ||
bool "[DEPRECATED] Use Mbed TLS" |
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.
Is there some existing guidance on how "[DEPRECATED]" should be formatted in the Kconfig description? It seems like it's more common to put it at the end of the string rather than the beginning:
❯ git grep '"\[DEPRECATED\] '|wc -l
3
❯ git grep ' \[DEPRECATED\]"'|wc -l
15
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.
at the end seems better
2259aec
to
00228e5
Compare
00228e5
to
8310309
Compare
The long-term goal of the Zephyr project is to rely exclusively on PSA Crypto API for the crypto support. In parallel Mbed TLS is going to remove legacy crypto support from the next (4.0) release. Therefore this commit deprecates CONFIG_FLASH_AREA_CHECK_INTEGRITY_MBEDTLS and it also updates the migration guide document about this change. Signed-off-by: Valerio Setti <[email protected]>
8310309
to
7df3ee4
Compare
The double force push is intentional:
|
|
The long-term goal of the Zephyr project is to rely exclusively on PSA Crypto API for the crypto support. In parallel Mbed TLS is going to remove legacy crypto support from the next (4.0) release.
Therefore this PR deprecates CONFIG_FLASH_AREA_CHECK_INTEGRITY_MBEDTLS and it also updates the migration guide document about this change.