#sgx #key #encryption-key #trusted #encryption

no-std sgx-keyreq

Provides a stable/no-std compatible library for requesting SGX keys

3 unstable releases

0.2.1 Oct 31, 2021
0.2.0 Oct 31, 2021
0.1.0 Oct 30, 2021

#2325 in Cryptography

27 downloads per month

MIT/Apache

16KB
293 lines

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


lib.rs:

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)?;

Dependencies

~110–320KB