pub struct Sas { /* private fields */ }
Expand description

A struct representing a short auth string verification object.

This object can be used to establish a shared secret to perform the short auth string based key verification.

Implementations

Create a new random verification object

This creates an ephemeral curve25519 keypair that can be used to establish a shared secret.

Get the public key that can be used to establish a shared secret.

Establishes a SAS secret by performing a DH handshake with another public key.

Returns an EstablishedSas object which can be used to generate SasBytes if the given public key was valid, otherwise None.

Establishes a SAS secret by performing a DH handshake with another public key in “raw”, base64-encoded form.

Returns an EstablishedSas object which can be used to generate SasBytes if the received public key is valid, otherwise None.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.