intel / intel/confidential-computing.sgx.sdk

question about remote attestation :how to edit information of msg3

Open
#68 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

At the remote attestation,we can use the function: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:
```
typedef struct_report_body_t {
sgx_cpu_svn_t cpu_svn;
sgx_misc_select_t misc_select;
uint8_t reserved1[28];
sgx_attributes_t attributes;
sgx_measurement_t mr_enclave;
uint8_t reserved2[32];
sgx_measurement_t mr_signer;
uint8_t reserved3[96];
sgx_prod_id_t isv_prod_id;
sgx_isv_svn_t isv_svn;
uint8_t reserved4[60];
sgx_report_data_t report_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

Open the contributing guide

Research direction

Start with the remote-attestation flow around sgx_ra_proc_msg2(), msg3, and the quote's sgx_report_body_t, then read the developer reference for sgx_create_report() and sgx_target_info_t. Done means clearly documenting how report_data can be supplied and how target_info is obtained, or explaining whether this is supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
security
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.