123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
-
- #ifndef _SGX_QUOTE_H_
- #define _SGX_QUOTE_H_
- #include "sgx_report.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #pragma pack(push, 1)
- typedef uint8_t sgx_epid_group_id_t[4];
- typedef struct _spid_t
- {
- uint8_t id[16];
- } sgx_spid_t;
- typedef struct _basename_t
- {
- uint8_t name[32];
- } sgx_basename_t;
- typedef struct _quote_nonce
- {
- uint8_t rand[16];
- } sgx_quote_nonce_t;
- typedef enum
- {
- SGX_UNLINKABLE_SIGNATURE,
- SGX_LINKABLE_SIGNATURE
- } sgx_quote_sign_type_t;
- typedef struct _quote_t
- {
- uint16_t version;
- uint16_t sign_type;
- sgx_epid_group_id_t epid_group_id;
- sgx_isv_svn_t qe_svn;
- sgx_isv_svn_t pce_svn;
- uint32_t xeid;
- sgx_basename_t basename;
- sgx_report_body_t report_body;
- uint32_t signature_len;
- uint8_t signature[];
- } sgx_quote_t;
- #define SGX_PLATFORM_INFO_SIZE 101
- typedef struct _platform_info
- {
- uint8_t platform_info[SGX_PLATFORM_INFO_SIZE];
- } sgx_platform_info_t;
- typedef struct _update_info_bit
- {
- int ucodeUpdate;
- int csmeFwUpdate;
- int pswUpdate;
- } sgx_update_info_bit_t;
- #pragma pack(pop)
- #ifdef __cplusplus
- }
- #endif
- #endif
|