Crate mc_sgx_core_types
source ·Expand description
Macros§
- Derive [UpperHex] and [LowerHex] from AsRef
to render as a hexadecimal string. - Implement Debug and [Display] for enclave measurement types. Measurement types are usually stored/shared a lowercase hex strings with no byte delimiters and no leading ‘0x’ This implementation differs from other bytestruct types.
- Implement [Display] for bytestruct types. bytestruct types should display as an uppercase, two-byte underscore-delimited hex string prefixed with a ‘0x’ Non-measurement bytestruct types derive Debug, so it is not implemented here.
- Newtype wrapper for a primitive or struct type
- This macro provides common byte-handling operations when the type being wrapped is a struct containing a single fixed-size array of bytes.
- Newtype wrapper without a display implementation. TODO: Remove once every type has a Display impl.
- Boilerplate macro to fill in any trait implementations required by an SgxWrapperType that don’t depend on the contents of the inner type.
Structs§
- Attestation key from th quoting library. contains the quoting enclaves ID and the attestation algorithm
- Attribute flags of an enclave
- Attributes of the enclave
- Config ID
- Config security version number (SVN)
- CPU security version number (SVN)
- Extended Attestation Key ID
- Extended feature request mask (XFRM) of an enclave
- Extended Product ID
- ISV Family ID
- ISV Product ID
- Independent software vendor (ISV) security version number (SVN)
- Policy to use for the key derivation
- Key request
- A builder for creating a
KeyRequest
- Miscellaneous attributes and select bits for target enclave.
- Miscellaneous select bits for target enclave. Reserved for future extension.
- An opaque type for MRENCLAVE values
- An opaque type for MRSIGNER values.
- Quote Nonce
- An enclave Report
- The main body of a report from SGX
- Report Data
- The target info
Enums§
- A enumeration of SGX errors.
- Errors seen when converting to, or from, rust for the SGX types
- Key Name