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 47
47
48
48
typedef struct _aes_gcm_data_t
49
49
{
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 */
51
+ uint8_t reserved [SGX_SEAL_IV_SIZE ]; /* 4: Reserved bits used as iv */
52
52
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 */
54
54
} sgx_aes_gcm_data_t ;
55
55
56
56
typedef struct _sealed_data_t
57
57
{
58
58
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 */
62
62
} sgx_sealed_data_t ;
63
63
64
64
#ifdef __cplusplus
You can’t perform that action at this time.
0 commit comments