DemesneGH commented on issue #99: URL: https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/99#issuecomment-1292941834
Hi @HakonToemte The main commit of porting to OP-TEE in `ring` is: https://github.com/veracruz-project/ring/commit/808f1f6184b72266ac633e2f0e9a05ad4942a77c, where the random generation function has been patched to `optee_utee::Random`. The other example is the `Rustls` crate in `tls-client` and `tls-server`, we patched `time` for OP-TEE use: https://github.com/DemesneGH/rustls/commit/5517587a235f27dee09a88010f57f2ea5d5a90b3. > How can one turn a non-compatible crate into a compatible one? Replace the incompatible syscalls with the ones provided in TrustZone SDK. The functionalities TrustZone SDK provided are in `SDK/optee-utee/src`. But if a crate uses the syscall OP-TEE unsupported, it cannot be compatible with OP-TEE. You can find the already altered crates in our examples. There are `Ring` and `Rustls` for now. If we have ported a new crate we will add an example for it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org For additional commands, e-mail: dev-h...@teaclave.apache.org