boot: zephyr: kconfig: add choice for RSA crypto library#140
Draft
valeriosetti wants to merge 3 commits intozephyrproject-rtos:mainfrom
Draft
boot: zephyr: kconfig: add choice for RSA crypto library#140valeriosetti wants to merge 3 commits intozephyrproject-rtos:mainfrom
valeriosetti wants to merge 3 commits intozephyrproject-rtos:mainfrom
Conversation
1a64307 to
7a93025
Compare
7a93025 to
921e9aa
Compare
Intead of keeping Mbed TLS 2.x like calls to SHA functions and then include "compat-2.x.h" to get that compatibility, simply use Mbed TLS 3.x functions. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
921e9aa to
b388174
Compare
"bootutil_rsa_parse_public_key" is already setting up N, E and len parameters in the RSA context so calling "mbedtls_rsa_import" is useless since it would redo the same operations. Moreover "mbedtls_rsa_import" is removed from TF-PSA-Crypto. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
b388174 to
a0809fe
Compare
Allow to select either Mbed TLS legacy crypto or PSA API as crypto for RSA operations. By default legacy crypto is used because PSA API cause a flash footprint increase and this is not OK for all the targets. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
a0809fe to
ffeadd8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow to select either Mbed TLS legacy crypto or PSA API as crypto library to be used for RSA operations.
Note
I know that no PR should be opened on this repo, but I would like to ensure that zephyrproject-rtos/zephyr#104031 is OK from CI point of view before opening the official PR. That's why I'm opening this in draft mode.