Hello,
First sorry for opening an Issue, but I did not know where to put the following (no discussion enabled?). I am opening this mostly for tracking, and to maybe help other people find this code in the future.
Long story short: I have been trying to run integritee-cli on mobile(ie an Android app), and it seems to be working! [NOTE: WIP, not prod-ready!].
The results are there.
It was not too much work:
- refactor
integritee-cli to return Result everywhere
- move most
Cli code from main.rs to lib.rs
- add
pub enum CliResultOk and pub enum CliError
- most changes are in
perform_trusted_operation/send_request/etc to expose an Error instead returning None
Then on the Android project:
- a
[patch."https://github.com/apache/teaclave-sgx-sdk.git"] sgx_crypto_helper
Which replaces sgx_tcrypto/sgx_ucrypto by an impl that uses rsa+sha2+rand cf the fork[NOTE: REALLY WIP]
- a
[patch.crates-io] wasmtime and one-liner fix cf this fork[NOTE: REALLY WIP too]
Note that both of those are definitely PoC-level; as in "make sure it can run an Android" and I will see later to clean it up.
If you are interested, I could find some time to clean up the code and make a proper PR?
Maybe at least for integritee-cli at first?
Hello,
First sorry for opening an Issue, but I did not know where to put the following (no discussion enabled?). I am opening this mostly for tracking, and to maybe help other people find this code in the future.
Long story short: I have been trying to run
integritee-clion mobile(ie an Android app), and it seems to be working! [NOTE: WIP, not prod-ready!].The results are there.
It was not too much work:
integritee-clito returnResulteverywhereClicode frommain.rstolib.rspub enum CliResultOkandpub enum CliErrorperform_trusted_operation/send_request/etc to expose anErrorinstead returningNoneThen on the Android project:
[patch."https://github.com/apache/teaclave-sgx-sdk.git"]sgx_crypto_helperWhich replaces
sgx_tcrypto/sgx_ucryptoby an impl that usesrsa+sha2+randcf the fork[NOTE: REALLY WIP][patch.crates-io] wasmtimeand one-liner fix cf this fork[NOTE: REALLY WIP too]Note that both of those are definitely PoC-level; as in "make sure it can run an Android" and I will see later to clean it up.
If you are interested, I could find some time to clean up the code and make a proper PR?
Maybe at least for
integritee-cliat first?