@@ -131,6 +131,44 @@ typedef struct UploadMetadata {
131
131
uint8_t nonce [24 ];
132
132
} UploadMetadata ;
133
133
134
+ typedef uint8_t RecommendedAesGcmIv [12 ];
135
+
136
+ typedef struct SetAccessKeyEncryptedResponse {
137
+ sgx_aes_gcm_128bit_tag_t tag ;
138
+ uint8_t ciphertext [SET_ACCESS_KEY_RESPONSE_SIZE ];
139
+ uint8_t aad [0 ];
140
+ RecommendedAesGcmIv nonce ;
141
+ } SetAccessKeyEncryptedResponse ;
142
+
143
+ /**
144
+ * FFI safe result type that can be converted to and from a rust result.
145
+ */
146
+ typedef enum EcallResult_SetAccessKeyEncryptedResponse__SealingError_Tag {
147
+ ECALL_RESULT_SET_ACCESS_KEY_ENCRYPTED_RESPONSE_SEALING_ERROR_OK_SET_ACCESS_KEY_ENCRYPTED_RESPONSE_SEALING_ERROR ,
148
+ ECALL_RESULT_SET_ACCESS_KEY_ENCRYPTED_RESPONSE_SEALING_ERROR_ERR_SET_ACCESS_KEY_ENCRYPTED_RESPONSE_SEALING_ERROR ,
149
+ } EcallResult_SetAccessKeyEncryptedResponse__SealingError_Tag ;
150
+
151
+ typedef struct EcallResult_SetAccessKeyEncryptedResponse__SealingError {
152
+ EcallResult_SetAccessKeyEncryptedResponse__SealingError_Tag tag ;
153
+ union {
154
+ struct {
155
+ struct SetAccessKeyEncryptedResponse ok ;
156
+ };
157
+ struct {
158
+ struct SealingError err ;
159
+ };
160
+ };
161
+ } EcallResult_SetAccessKeyEncryptedResponse__SealingError ;
162
+
163
+ typedef struct EcallResult_SetAccessKeyEncryptedResponse__SealingError SetAccessKeyResult ;
164
+
165
+ typedef struct SetAccessKeyEncryptedRequest {
166
+ sgx_aes_gcm_128bit_tag_t tag ;
167
+ uint8_t ciphertext [SET_ACCESS_KEY_REQUEST_SIZE ];
168
+ uint8_t aad [ARCHIVED_ENCLAVE_ID_SIZE ];
169
+ RecommendedAesGcmIv nonce ;
170
+ } SetAccessKeyEncryptedRequest ;
171
+
134
172
/**
135
173
* FFI safe result type that can be converted to and from a rust result.
136
174
*/
0 commit comments