Expand description
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)?;
Re-exports§
pub use sgx_isa;
Modules§
- ecalls
- Low level
ENCLU
calls for extracting key information from the CPU
Structs§
- KeyOpts
- Options for requesting a key
Functions§
- get_key
- Fills a key in-place based on a seed