├── .gitignore ├── LICENSE ├── README.md ├── ra-client ├── Cargo.toml ├── examples │ └── tls-client.rs └── src │ ├── context.rs │ ├── error.rs │ └── lib.rs ├── ra-common ├── Cargo.toml └── src │ ├── lib.rs │ ├── msg.rs │ └── tcp.rs ├── ra-enclave ├── .cargo │ └── config ├── Cargo.toml ├── examples │ ├── data │ │ └── vendor-keys │ │ │ └── private_key.pem │ ├── sp_vkey.rs │ └── tls-enclave.rs └── src │ ├── context.rs │ ├── error.rs │ ├── lib.rs │ └── local_attestation.rs ├── ra-sp ├── Cargo.toml ├── examples │ ├── data │ │ ├── settings.json │ │ └── sp-keys │ │ │ ├── private_key.pem │ │ │ └── public_key.pem │ └── tls-sp.rs └── src │ ├── attestation_response.rs │ ├── config.rs │ ├── context.rs │ ├── error.rs │ ├── ias.rs │ └── lib.rs ├── run.sh └── sgx-crypto ├── Cargo.toml └── src ├── certificate.rs ├── cmac.rs ├── digest.rs ├── error.rs ├── key_exchange.rs ├── lib.rs ├── random.rs ├── signature.rs └── tls_psk.rs /.gitignore: -------------------------------------------------------------------------------- 1 | */target 2 | Cargo.lock 3 | Intel_SGX_Attestation_RootCA.pem 4 | settings.json 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/README.md -------------------------------------------------------------------------------- /ra-client/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-client/Cargo.toml -------------------------------------------------------------------------------- /ra-client/examples/tls-client.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-client/examples/tls-client.rs -------------------------------------------------------------------------------- /ra-client/src/context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-client/src/context.rs -------------------------------------------------------------------------------- /ra-client/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-client/src/error.rs -------------------------------------------------------------------------------- /ra-client/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-client/src/lib.rs -------------------------------------------------------------------------------- /ra-common/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-common/Cargo.toml -------------------------------------------------------------------------------- /ra-common/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-common/src/lib.rs -------------------------------------------------------------------------------- /ra-common/src/msg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-common/src/msg.rs -------------------------------------------------------------------------------- /ra-common/src/tcp.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-common/src/tcp.rs -------------------------------------------------------------------------------- /ra-enclave/.cargo/config: -------------------------------------------------------------------------------- 1 | [build] 2 | target = "x86_64-fortanix-unknown-sgx" 3 | -------------------------------------------------------------------------------- /ra-enclave/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-enclave/Cargo.toml -------------------------------------------------------------------------------- /ra-enclave/examples/data/vendor-keys/private_key.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-enclave/examples/data/vendor-keys/private_key.pem -------------------------------------------------------------------------------- /ra-enclave/examples/sp_vkey.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-enclave/examples/sp_vkey.rs -------------------------------------------------------------------------------- /ra-enclave/examples/tls-enclave.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-enclave/examples/tls-enclave.rs -------------------------------------------------------------------------------- /ra-enclave/src/context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-enclave/src/context.rs -------------------------------------------------------------------------------- /ra-enclave/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-enclave/src/error.rs -------------------------------------------------------------------------------- /ra-enclave/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-enclave/src/lib.rs -------------------------------------------------------------------------------- /ra-enclave/src/local_attestation.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-enclave/src/local_attestation.rs -------------------------------------------------------------------------------- /ra-sp/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-sp/Cargo.toml -------------------------------------------------------------------------------- /ra-sp/examples/data/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-sp/examples/data/settings.json -------------------------------------------------------------------------------- /ra-sp/examples/data/sp-keys/private_key.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-sp/examples/data/sp-keys/private_key.pem -------------------------------------------------------------------------------- /ra-sp/examples/data/sp-keys/public_key.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-sp/examples/data/sp-keys/public_key.pem -------------------------------------------------------------------------------- /ra-sp/examples/tls-sp.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-sp/examples/tls-sp.rs -------------------------------------------------------------------------------- /ra-sp/src/attestation_response.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-sp/src/attestation_response.rs -------------------------------------------------------------------------------- /ra-sp/src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-sp/src/config.rs -------------------------------------------------------------------------------- /ra-sp/src/context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-sp/src/context.rs -------------------------------------------------------------------------------- /ra-sp/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-sp/src/error.rs -------------------------------------------------------------------------------- /ra-sp/src/ias.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-sp/src/ias.rs -------------------------------------------------------------------------------- /ra-sp/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/ra-sp/src/lib.rs -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/run.sh -------------------------------------------------------------------------------- /sgx-crypto/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/sgx-crypto/Cargo.toml -------------------------------------------------------------------------------- /sgx-crypto/src/certificate.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/sgx-crypto/src/certificate.rs -------------------------------------------------------------------------------- /sgx-crypto/src/cmac.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/sgx-crypto/src/cmac.rs -------------------------------------------------------------------------------- /sgx-crypto/src/digest.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/sgx-crypto/src/digest.rs -------------------------------------------------------------------------------- /sgx-crypto/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/sgx-crypto/src/error.rs -------------------------------------------------------------------------------- /sgx-crypto/src/key_exchange.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/sgx-crypto/src/key_exchange.rs -------------------------------------------------------------------------------- /sgx-crypto/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/sgx-crypto/src/lib.rs -------------------------------------------------------------------------------- /sgx-crypto/src/random.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/sgx-crypto/src/random.rs -------------------------------------------------------------------------------- /sgx-crypto/src/signature.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/sgx-crypto/src/signature.rs -------------------------------------------------------------------------------- /sgx-crypto/src/tls_psk.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ndokmai/rust-sgx-remote-attestation/HEAD/sgx-crypto/src/tls_psk.rs --------------------------------------------------------------------------------