pub struct EncryptedSessionDataInit {
pub ephemeral: Base64,
pub ciphertext: Base64,
pub mac: Base64,
}
Available on (crate features
client-api-c
or client-api-s
) and (crate features client
or server
) and crate feature api
only.Expand description
The encrypted algorithm-dependent data for backups.
This struct will not be updated even if additional fields are added to EncryptedSessionData
in a new (non-breaking) release of the Matrix specification.
Fields§
§ephemeral: Base64
Unpadded base64-encoded public half of the ephemeral key.
ciphertext: Base64
Ciphertext, encrypted using AES-CBC-256 with PKCS#7 padding, encoded in base64.
mac: Base64
First 8 bytes of MAC key, encoded in base64.
Trait Implementations§
Source§impl Debug for EncryptedSessionDataInit
impl Debug for EncryptedSessionDataInit
Source§impl From<EncryptedSessionDataInit> for EncryptedSessionData
impl From<EncryptedSessionDataInit> for EncryptedSessionData
Source§fn from(init: EncryptedSessionDataInit) -> EncryptedSessionData
fn from(init: EncryptedSessionDataInit) -> EncryptedSessionData
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncryptedSessionDataInit
impl RefUnwindSafe for EncryptedSessionDataInit
impl Send for EncryptedSessionDataInit
impl Sync for EncryptedSessionDataInit
impl Unpin for EncryptedSessionDataInit
impl UnwindSafe for EncryptedSessionDataInit
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