This repository was archived by the owner on May 9, 2022. It is now read-only.
File tree 5 files changed +11
-2
lines changed
rtc_types/src/enclave_messages
5 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 12
12
*/
13
13
#define DATA_UPLOAD_RESPONSE_LEN (16 + (24 + 16))
14
14
15
+ #define ARCHIVED_ENCLAVE_ID_SIZE 8
16
+
15
17
#define SET_ACCESS_KEY_REQUEST_SIZE 40
16
18
17
19
#define SET_ACCESS_KEY_RESPONSE_SIZE 1
Original file line number Diff line number Diff line change 12
12
*/
13
13
#define DATA_UPLOAD_RESPONSE_LEN (16 + (24 + 16))
14
14
15
+ #define ARCHIVED_ENCLAVE_ID_SIZE 8
16
+
15
17
#define SET_ACCESS_KEY_REQUEST_SIZE 40
16
18
17
19
#define SET_ACCESS_KEY_RESPONSE_SIZE 1
Original file line number Diff line number Diff line change 12
12
*/
13
13
#define DATA_UPLOAD_RESPONSE_LEN (16 + (24 + 16))
14
14
15
+ #define ARCHIVED_ENCLAVE_ID_SIZE 8
16
+
15
17
#define SET_ACCESS_KEY_REQUEST_SIZE 40
16
18
17
19
#define SET_ACCESS_KEY_RESPONSE_SIZE 1
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ use sgx_types::sgx_aes_gcm_128bit_tag_t;
13
13
14
14
use super :: { set_access_key, RecommendedAesGcmIv } ;
15
15
16
+ // See enclave_messages::ARCHIVED_ENCLAVE_ID_SIZE
17
+ pub const ARCHIVED_ENCLAVE_ID_SIZE : usize = 8 ;
18
+
16
19
// Begin FFI types
17
20
// (Keep these FFI type comments in sync between set_access_key and ffi_set_access_key, for diffing!)
18
21
@@ -24,7 +27,7 @@ pub const SET_ACCESS_KEY_REQUEST_SIZE: usize = 40;
24
27
pub struct SetAccessKeyEncryptedRequest {
25
28
pub tag : sgx_aes_gcm_128bit_tag_t ,
26
29
pub ciphertext : [ u8 ; SET_ACCESS_KEY_REQUEST_SIZE ] ,
27
- pub aad : [ u8 ; 0 ] ,
30
+ pub aad : [ u8 ; ARCHIVED_ENCLAVE_ID_SIZE ] ,
28
31
pub nonce : RecommendedAesGcmIv ,
29
32
}
30
33
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pub struct Response {
24
24
pub const REQUEST_SIZE : usize = mem:: size_of :: < ArchivedRequest > ( ) ;
25
25
26
26
// FFI type: EncryptedRequest
27
- pub type EncryptedRequest = EncryptedEnclaveMessage < REQUEST_SIZE , 0 > ;
27
+ pub type EncryptedRequest = EncryptedEnclaveMessage < REQUEST_SIZE , ARCHIVED_ENCLAVE_ID_SIZE > ;
28
28
29
29
// FFI type: RESPONSE_SIZE
30
30
pub const RESPONSE_SIZE : usize = mem:: size_of :: < ArchivedResponse > ( ) ;
You can’t perform that action at this time.
0 commit comments