intel / intel/confidential-computing.sgx.sdk
question about remote attestation
- Dominant language
- C++
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
At the remot attestation,we can use the fuction:sgx_ra_proc_msg2() to get the msg3, and the struct of msg3 include a quote[], and the structure of quote include a sgx_report_body_t, I learn the structure of report:
```
typedefstruct_report_body_t {
sgx_cpu_svn_tcpu_svn;
sgx_misc_select_tmisc_select;
uint8_treserved1[28];
sgx_attributes_tattributes;
sgx_measurement_tmr_enclave;
uint8_treserved2[32];
sgx_measurement_tmr_signer;
uint8_treserved3[96];
sgx_prod_id_tisv_prod_id;
sgx_isv_svn_tisv_svn;
uint8_treserved4[60];
sgx_report_data_treport_data;
}sgx_report_body_t;
```
there is a sgx_report_data_treport_data, can set some data, I want to add some data in sgx_report_data_treport_data, but I don't know how to do, because in remot attestation process, which only give an sgx_ra_proc_msg2 to get msg3, and I learn the developer reference, we can pass in some data into report by the function sgx_create_report :
```
sgx_status_t sgx_create_report(
const sgx_target_info_t* target_info,
const sgx_report_data_t*report_data,
sgx_report_t* report);
```
but I don't know how to get the parameter target_info.
Can someone help me,thank you very much !
Contributor guide
Assessment
This issue has not been assessed yet.