Crates.io | sgx-keyreq |
lib.rs | sgx-keyreq |
version | 0.2.1 |
source | src |
created_at | 2021-10-30 20:11:18.013776 |
updated_at | 2021-10-31 17:28:40.195405 |
description | Provides a stable/no-std compatible library for requesting SGX keys |
homepage | https://github.com/riddleandcode/sgx-keyreq |
repository | https://github.com/riddleandcode/sgx-keyreq |
max_upload_size | |
id | 474485 |
size | 24,363 |
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 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