-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Backport 3.6: md: allow dispatch to PSA whenever CRYPTO_CLIENT is enabled #9562
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
Conversation
@mpg I took the liberty to add you as reviewer because you were the one who improved MD last year, allowing for the PSA dispatch, and we also discussed about this change in Slack. However if you don't have enough review bandwidth for this, please let me know and I'll remove you ;) |
a011d15
to
51772c4
Compare
The ABI-API break is expected because |
acd4c96
to
e43f2e1
Compare
CI green (a part from the ABI-API failure mentioned above), so I think the PR is ready for reviews |
IMO not ChangeLog for this, as support for |
The current plan is for MD to remain public in 4.0, so I think we want to forward-port this to development. However there might be other changes planned (or already done) in development that would make this moot, I'm not sure. Cc @gilles-peskine-arm |
Aw, I'm afraid this is a blocker. We promise not to change the ABI in LTS branches (which 3.6 now is) unless we can't find another way to fix a security issue. So, changing the size of Would there be a way to achieve what you're after while keeping the structure unchanged in the default config, and only changing it in a few specific configs? |
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.
Oh, I see. I based my previous comment on the fact that
I think the easiest way will be to enable PSA dispatching based on PSA_WANTs only in the usual |
Currently all of the legacy crypto headers have moved as part of the work to split the repositories. We'll move some of them again as part of the work to evolve the API. Sorry about the lack of clarity. We're still working on clarifying what's going to happen and making a plan for it to happen in time. |
e43f2e1
to
de2f6f9
Compare
Thanks to this change the ABI-API failure disappeared and the CI is fully green now :)
Thanks a lot for the update! So I think that the forward port of this fix will need to wait until MD design is stabilized/planned on |
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.
LGTM, thanks!
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.
Thanks for updating the documentation! Looks good to me now.
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.
LGTM, thanks!
@valeriosetti can you update the submodule pointer now that Mbed-TLS/mbedtls-framework#140 has been merged? |
Signed-off-by: Valerio Setti <[email protected]>
bc55af8
d16e262
to
bc55af8
Compare
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.
LGTM after framework update
Can you please make a PR to development? Sure, the md interface will change, but that doesn't affect the changes here. |
I was about to start the forward porting few days ago, but then went checking the current status of |
|
Description
Instead of allowing PSA dispatching only when CRYPTO_C is set and some MBEDTLS_PSA_ACCEL_ALG_xxx is set, we enable dispatching when CRYPTO_CLIENT and PSA_WANT_ALG_xxx are set. This makes the feature more useful in cases where the PSA support is provided externally, like for example TF-M in Zephyr.
PR checklist