Skip to content

Instantly share code, notes, and snippets.

@glassonion1
Created September 6, 2021 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glassonion1/0a6618666a28729c394f5f3fe0ae0a0e to your computer and use it in GitHub Desktop.
Save glassonion1/0a6618666a28729c394f5f3fe0ae0a0e to your computer and use it in GitHub Desktop.
class sgx_tse {
rsgx_create_report()
rsgx_verify_report()
}
class sgx_types {
sgx_init_quote()
sgx_calc_quote_size()
sgx_get_quote_size()
}
class sgx_target_info_t {
mr_enclave: [u8; 32]
attributes: sgx_attributes_t
config_svn: u16
misc_select: u32
config_id: [u8; 64]
}
class sgx_report_t {
key_id: [u8; 32]
mac: [u8; 16]
}
class sgx_quote_t {
version: u16
sign_type: u16
epid_group_id: [u8; 4]
qe_svn: u16
pce_svn: u16
xeid: u32
basename: [u8; 32]
signature_len: u32
signature: [u8; 0]
}
class sgx_report_body_t {
cpu_svn: [u8; 16]
misc_select: u32
isv_ext_prod_id: [u8; 16]
attributes: sgx_attributes_t
mr_enclave: [u8; 32]
mr_signer: [u8; 32]
config_id: [u8; 64]
isv_prod_id: u16
isv_svn: u16
config_svn: u16
isv_family_id: [u8; 16]
report_data: [u8; 64]
}
sgx_tse ..> sgx_report_t
sgx_tse ..> sgx_target_info_t
sgx_types ..> sgx_target_info_t
sgx_types ..> sgx_report_t
sgx_types ..> sgx_quote_t
sgx_report_t *-- sgx_report_body_t: body
sgx_quote_t *-- sgx_report_body_t: report_body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment