Skip to content

integritee-cli: run without SGX, eg on apps(Android) #1167

@n-prat

Description

@n-prat

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions