You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds the OP-TEE target to the ring source code, enabling it to be used in TrustZone SDK TAs with std support.
An example demonstrating how to use this crate is provided here: DemesneGH/rust-optee-trustzone-sdk@2f26866
elliptic-curves is indeed a good crate, it supports no-std and fits the our need of crypto. But ring is the dependency of rustls, and rustls is the dependency of our tls examples. Our final goal is to provide a new rustls version which eliminate the security warnings https://github.com/apache/incubator-teaclave-trustzone-sdk/security/dependabot. To achieve that, we need to first port ring, then update rustls accordingly.
I see the new version of rustls supports no-std: rustls/rustls#157 (comment). I will try if it works for our case.
For this PR, I will fix the license issue then it's ready to merge.
For the ring ecdsa examples, it is just a test for the ported ring, maybe it should not be included in the trustzone sdk examples, let's keep it pending for now.
Please feel free to share any suggestions about this, thanks!
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
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.
This PR adds the OP-TEE target to the ring source code, enabling it to be used in TrustZone SDK TAs with std support.
An example demonstrating how to use this crate is provided here: DemesneGH/rust-optee-trustzone-sdk@2f26866
After this PR is merged, I will update the link of ring in Cargo.toml accordingly: DemesneGH/rust-optee-trustzone-sdk@2f26866#diff-f364a71ab8e7d11e3fae1e6ccf83fd0fe4254583945c71924405918dbe51dc59
Next, I will open a PR to the TrustZone SDK to integrate the ring ecdsa example.