Skip to content
This repository was archived by the owner on May 9, 2022. It is now read-only.

Commit e57a54d

Browse files
committed
feat(rtc_types::enclave_messages): add ARCHIVED_ENCLAVE_ID_SIZE
1 parent 576cf49 commit e57a54d

File tree

1 file changed

+8
-1
lines changed
  • rtc_types/src/enclave_messages

1 file changed

+8
-1
lines changed

rtc_types/src/enclave_messages/mod.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
use sgx_types::sgx_aes_gcm_128bit_tag_t;
1+
use core::mem;
2+
3+
use rkyv::Archive;
4+
use sgx_types::{sgx_aes_gcm_128bit_tag_t, sgx_enclave_id_t};
5+
6+
/// Size of [`Archive`] of [`sgx_enclave_id_t`].
7+
pub const ARCHIVED_ENCLAVE_ID_SIZE: usize =
8+
mem::size_of::<<sgx_enclave_id_t as Archive>::Archived>();
29

310
// NIST AES-GCM recommended IV size
411
pub type RecommendedAesGcmIv = [u8; 12];

0 commit comments

Comments
 (0)