File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 4747
4848typedef struct _aes_gcm_data_t
4949{
50- uint32_t payload_size ; /* 0: Size of the payload which includes both the encrypted data and the optional additional MAC text */
51- uint8_t reserved [12 ]; /* 4: Reserved bits */
50+ uint32_t payload_size ; /* 0: Size of the payload which includes the encrypted data: payload[] */
51+ uint8_t reserved [SGX_SEAL_IV_SIZE ]; /* 4: Reserved bits used as iv */
5252 uint8_t payload_tag [SGX_SEAL_TAG_SIZE ]; /* 16: AES-GMAC of the plain text, payload, and the sizes */
53- uint8_t payload []; /* 32: The payload data which includes the encrypted data followed by the optional additional MAC text */
53+ uint8_t payload []; /* 32: The payload data which includes the encrypted data followed by payload_tag */
5454} sgx_aes_gcm_data_t ;
5555
5656typedef struct _sealed_data_t
5757{
5858 sgx_key_request_t key_request ; /* 00: The key request used to obtain the sealing key */
59- uint32_t plain_text_offset ; /* 64 : Offset within aes_data.playload to the start of the optional additional MAC text */
60- uint8_t reserved [12 ]; /* 68 : Reserved bits */
61- sgx_aes_gcm_data_t aes_data ; /* 80 : Data structure holding the AES/GCM related data */
59+ uint32_t plain_text_offset ; /* 512 : Offset within aes_data.playload to the start of the optional additional MAC text */
60+ uint8_t reserved [12 ]; /* 516 : Reserved bits */
61+ sgx_aes_gcm_data_t aes_data ; /* 528 : Data structure holding the AES/GCM related data */
6262} sgx_sealed_data_t ;
6363
6464#ifdef __cplusplus
You can’t perform that action at this time.
0 commit comments