Struct ruma_client_api::backup::SessionDataInit
source · pub struct SessionDataInit {
pub ephemeral: Base64,
pub ciphertext: Base64,
pub mac: Base64,
}
Available on crate features
client
or server
only.Expand description
The algorithm used for storing backups.
This struct will not be updated even if additional fields are added to SessionData
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 SessionDataInit
impl Debug for SessionDataInit
source§impl From<SessionDataInit> for SessionData
impl From<SessionDataInit> for SessionData
source§fn from(init: SessionDataInit) -> Self
fn from(init: SessionDataInit) -> Self
Converts to this type from the input type.