Struct ruma::events::key::verification::accept::SasV1Content
source · [−]pub struct SasV1Content {
pub key_agreement_protocol: KeyAgreementProtocol,
pub hash: HashAlgorithm,
pub message_authentication_code: MessageAuthenticationCode,
pub short_authentication_string: Vec<ShortAuthenticationString, Global>,
pub commitment: Base64<Standard, Vec<u8, Global>>,
}
events
only.Expand description
The payload of an m.key.verification.accept
event using the m.sas.v1
method.
Fields
key_agreement_protocol: KeyAgreementProtocol
The key agreement protocol the device is choosing to use, out of the
options in the m.key.verification.start
message.
hash: HashAlgorithm
The hash method the device is choosing to use, out of the options in the
m.key.verification.start
message.
message_authentication_code: MessageAuthenticationCode
The message authentication code the device is choosing to use, out of
the options in the m.key.verification.start
message.
short_authentication_string: Vec<ShortAuthenticationString, Global>
The SAS methods both devices involved in the verification process understand.
Must be a subset of the options in the m.key.verification.start
message.
commitment: Base64<Standard, Vec<u8, Global>>
The hash (encoded as unpadded base64) of the concatenation of the
device’s ephemeral public key (encoded as unpadded base64) and the
canonical JSON representation of the m.key.verification.start
message.
Trait Implementations
sourceimpl Clone for SasV1Content
impl Clone for SasV1Content
sourcefn clone(&self) -> SasV1Content
fn clone(&self) -> SasV1Content
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for SasV1Content
impl Debug for SasV1Content
sourceimpl<'de> Deserialize<'de> for SasV1Content
impl<'de> Deserialize<'de> for SasV1Content
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<SasV1Content, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SasV1Content, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
sourceimpl From<SasV1ContentInit> for SasV1Content
impl From<SasV1ContentInit> for SasV1Content
sourcefn from(init: SasV1ContentInit) -> SasV1Content
fn from(init: SasV1ContentInit) -> SasV1Content
Creates a new SasV1Content
from the given init struct.