Expand description
Macros§
- derive_
measurement_ hex_ from_ as_ ref - Derive [UpperHex] and [LowerHex] from AsRef
to render as a hexadecimal string. - impl_
display_ and_ debug_ for_ measurement - 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.
- impl_
display_ for_ bytestruct - 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.
- impl_
newtype - Newtype wrapper for a primitive or struct type
- impl_
newtype_ for_ bytestruct - This macro provides common byte-handling operations when the type being wrapped is a struct containing a single fixed-size array of bytes.
- impl_
newtype_ no_ display - Newtype wrapper without a display implementation. TODO: Remove once every type has a Display impl.
- newtype_
accessors_ impls - 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
KeyId - Attestation key from th quoting library. contains the quoting enclaves ID and the attestation algorithm
- Attribute
Flags - Attribute flags of an enclave
- Attributes
- Attributes of the enclave
- Config
Id - Config ID
- Config
Svn - Config security version number (SVN)
- CpuSvn
- CPU security version number (SVN)
- Extended
Attestation KeyId - Extended Attestation Key ID
- Extended
Feature Request Mask - Extended feature request mask (XFRM) of an enclave
- Extended
Product Id - Extended Product ID
- Family
Id - ISV Family ID
- IsvProduct
Id - ISV Product ID
- IsvSvn
- Independent software vendor (ISV) security version number (SVN)
- KeyPolicy
- Policy to use for the key derivation
- KeyRequest
- Key request
- KeyRequest
Builder - A builder for creating a
KeyRequest
- Miscellaneous
Attribute - Miscellaneous attributes and select bits for target enclave.
- Miscellaneous
Select - Miscellaneous select bits for target enclave. Reserved for future extension.
- MrEnclave
- An opaque type for MRENCLAVE values
- MrSigner
- An opaque type for MRSIGNER values.
- Quote
Nonce - Quote Nonce
- Report
- An enclave Report
- Report
Body - The main body of a report from SGX
- Report
Data - Report Data
- Target
Info - The target info