#[repr(C)]pub struct SessionBody {Show 13 fields
pub nonce: [u8; 16],
pub wrap_tk: [u8; 32],
pub wrap_iv: [u8; 16],
pub wrap_mac: [u8; 32],
pub session_mac: [u8; 32],
pub key_id: [u8; 16],
pub rnd_pub_key_data: [u8; 148],
pub ms_enc: [u8; 256],
pub vm_digest: [u8; 32],
pub pubkey_digest: [u8; 32],
pub vm_id: [u8; 16],
pub vm_version: [u8; 16],
pub user_data: [u8; 64],
}Expand description
the SessionBody of the session
Fields§
§nonce: [u8; 16]Used for deriving a shared secret between the tenant and the HYGON SP.
wrap_tk: [u8; 32]The TEK and TIK concatenated together and wrapped by the Key Encryption Key and the Key Integrity Key. (KIK (KEK (TEK|TIK))).
wrap_iv: [u8; 16]The initialization vector.
wrap_mac: [u8; 32]Integrity protection for the wrapped keys (see the
wrap_tk field of this struct).
session_mac: [u8; 32]The integrity-protected CSV session data.
key_id: [u8; 16]§rnd_pub_key_data: [u8; 148]used in random public key convert from command data buffer
ms_enc: [u8; 256]ms_enc
vm_digest: [u8; 32]vm_digest
pubkey_digest: [u8; 32]pubkey_digest
vm_id: [u8; 16]vm_id
vm_version: [u8; 16]vm_version
user_data: [u8; 64]user_data
Trait Implementations§
Source§impl Clone for SessionBody
impl Clone for SessionBody
Source§fn clone(&self) -> SessionBody
fn clone(&self) -> SessionBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionBody
impl Debug for SessionBody
Source§impl<'de> Deserialize<'de> for SessionBody
impl<'de> Deserialize<'de> for SessionBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SessionBody
impl PartialEq for SessionBody
Source§fn eq(&self, other: &SessionBody) -> bool
fn eq(&self, other: &SessionBody) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionBody
impl Serialize for SessionBody
impl Copy for SessionBody
impl Eq for SessionBody
impl StructuralPartialEq for SessionBody
Auto Trait Implementations§
impl Freeze for SessionBody
impl RefUnwindSafe for SessionBody
impl Send for SessionBody
impl Sync for SessionBody
impl Unpin for SessionBody
impl UnsafeUnpin for SessionBody
impl UnwindSafe for SessionBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more