sgx-keyreq

Crates.iosgx-keyreq
lib.rssgx-keyreq
version0.2.1
sourcesrc
created_at2021-10-30 20:11:18.013776
updated_at2021-10-31 17:28:40.195405
descriptionProvides a stable/no-std compatible library for requesting SGX keys
homepagehttps://github.com/riddleandcode/sgx-keyreq
repositoryhttps://github.com/riddleandcode/sgx-keyreq
max_upload_size
id474485
size24,363
Julian Popescu (jpopesculian)

documentation

https://docs.rs/sgx-keyreq/

README

sgx-keyreq

A library for simplifying the retrieval of keys in an SGX enclave. The library is both compatible with no_std environments as well as the stable rust compiler.

let mut key: [u8; 32] = RdRand::new()?.gen();
sgx_keyreq::get_key(Default::default(), &mut key)?;

Testing

Testing is done with the Fortanix Rust Enclave Development Platform. After installing the target, to run the tests:

cargo +nightly test --target x86_64-fortanix-unknown-sgx
# or
cargo +nightly sgx-test

License: MIT OR Apache-2.0

Commit count: 11

cargo fmt