Hello, I have a question about the "reserved" fields in the struct sgx_key_request_t as follow:
typedef struct _key_request_t { uint16_t key_name; uint16_t key_policy; sgx_isv_svn_t isv_svn; uint16_t reserved1; sgx_cpu_svn_t cpu_svn; sgx_attributes_t attribute_mask; sgx_key_id_t key_id; sgx_misc_select_t misc_mask; uint8_t reserved2[436]; } sgx_key_request_t
Link Copied
edit: The reserved2 field is supposed to keep the data alignment of the sgx_key_request_t of 512 bytes. So a new question comes to me: why should we use data alignment here and can we change the size of alignment? Thank you!
For more complete information about compiler optimizations, see our Optimization Notice.