-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
TinyCrypt deprecation - library's usage removal part 1 #79653
TinyCrypt deprecation - library's usage removal part 1 #79653
Conversation
2762f2e
to
fb8fa9d
Compare
@ceolin and @tomi-font isn't this needed for the 4.0 release? AKA we're in RC1 right now, what needs to be done to make this into RC2? |
Yep. We have to keep it for external use cases but internally we can remove it. |
These changes look good to me :) |
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.
I only have one blocking comment: #79653 (comment)
Following the deprecation of TinyCrypt (zephyrproject-rtos#79566) we remove TinyCrypt usage in random generators. This basically only affects the CTR-DRBG random generator which from now only will only make use of Mbed TLS. Signed-off-by: Valerio Setti <[email protected]>
0637861
to
a44100c
Compare
As part of TinyCrypt deprecation process (zephyrproject-rtos#79566) this commit removes usage of this library from the JWT subsystem and its related tests. Signed-off-by: Valerio Setti <[email protected]>
a44100c
to
5cefd04
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.
Looks good to me! I realized we have one more reason to want this in for 4.0. (@dkalowsk @mmahadevan108)
This is replacing Kconfig options in JWT that themselves replaced older Kconfig options, within this release.
What this means if we only merge this for 4.1, is that there will be a few Kconfig options that are introduced in 4.0 and removed in 4.1. Really not great. Merging this for 4.0 makes this double change atomic, so I hope we can do that.
Also, this helps with the deprecation of TinyCrypt as this deprecates the shim driver (among others), which makes sense to have in 4.0 as well.
@ceolin @d3zd3z please re-review ASAP
I mentioned this PR in the Oct 30th TSC meeting for an exception so we can merge and include in the 4.0 release. I have also posted this PR for discussion in the release channel. |
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.
Looks right to me. @ceolin looking for your review as well.
One minor question, should the MAINTAINERS.yml file status be updated to also note that TinyCrypt is deprecated and not getting "odd fixes"?
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.
re-approving it
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.
I don't see anything in the PR that should block it (and it has my approval just not giving it in GitHub yet due the next steps). My understanding from conversations in Discord has been that this part 1 really needs to be merged with part 2. Even then there are some concerns that BT isn't quite ready for Tinycrypt to go away. @jhedberg can you confirm my understanding here?
I'd say it's actually three PRs that go together, starting with #79566 which was already merged. Ultimately this is something for the release engineering team and possibly the TSC to decide, i.e. whether to make an exception or not to the practice of not having upstream users of deprecated APIs when a release is made. If an exception isn't made, then my interpretation is that #79566 should be reverted. |
After discussion in the release meeting on Nov 5th, it was decided to merge this PR for the 4.0 release. |
This is the first step toward the removal of TinyCrypt library usage from the Zephyr's codebase. This is the continuation of the initial PR (#79566) that started the deprecation of the TinyCrypt library.
The idea is to do basic/simple removals here and keep BT stuff for a follow-up separated PR.
This PR depends on #79566. Initial commit is taken from there.