Skip to main content

FinishResult

Enum FinishResult 

Source
pub enum FinishResult {
    Done(Finished),
    Retry {
        retry_id: i64,
        dh_params: DhParamsForRetry,
        nonce: [u8; 16],
        server_nonce: [u8; 16],
        new_nonce: [u8; 32],
    },
}
Expand description

Result of finish either the handshake is done, or the server wants us to retry step 3 with the auth_key_aux_hash as retry_id.

Variants§

§

Done(Finished)

Handshake complete.

§

Retry

Server sent dh_gen_retry. Call retry_step3 with the returned retry_id and the stored DhParamsForRetry from the previous Step3.

Fields

§retry_id: i64

The auth_key_aux_hash to embed as retry_id in the next attempt.

§dh_params: DhParamsForRetry

DH parameters to feed back into retry_step3.

§nonce: [u8; 16]

Client nonce from the original step 1.

§server_nonce: [u8; 16]

Server nonce from the ResPQ response.

§new_nonce: [u8; 32]

Fresh nonce generated in step 2.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.