RUST + TEE (trusted execution environment)


Is there any on-going effort to use rust to write TEE code?

Are people interested in some collaborative effort?


would be a great match for Rust, at the moment this code tends to be written in C, often with the classic vulnerabilities that go along with that.

however, last time I checked, there is a maze of different proprietary APIs for trusted execution, so say, targeting the trusted enclave on an Intel processor is significantly different from AMD, en yet again different for ARM (and then there’s OS specific APIs for Android/Linux/Windows…).

so doing this generally would be no small feat !

there are specific projects like
this seems relevant too (ARM)


Thanks for the links. The Baidu framework is very interesting.


Try Rust -> Risc-V compilation. I’d like to take a look at this myself in the next couple of months.


happen to have done this a while ago, works pretty well with current nightly
(though there are some limitations, like no floating point support, but likely that’s not important for TEE)