[][src]Struct srp::client::SrpClientVerifier

pub struct SrpClientVerifier<D: Digest> { /* fields omitted */ }

SRP client state after handshake with the server.

Methods

impl<D: Digest> SrpClientVerifier<D>[src]

pub fn get_key(self) -> GenericArray<u8, D::OutputSize>[src]

Get shared secret key without authenticating server, e.g. for using with authenticated encryption modes. DO NOT USE this method without some kind of secure authentication

pub fn get_proof(&self) -> GenericArray<u8, D::OutputSize>[src]

Verification data for sending to the server.

pub fn verify_server(
    self,
    reply: &[u8]
) -> Result<GenericArray<u8, D::OutputSize>, SrpAuthError>
[src]

Verify server reply to verification data. It will return shared secret key in case of success.

Auto Trait Implementations

impl<D> Send for SrpClientVerifier<D> where
    <D as Digest>::OutputSize: ArrayLength<u8>, 

impl<D> Sync for SrpClientVerifier<D> where
    <D as Digest>::OutputSize: ArrayLength<u8>, 

impl<D> Unpin for SrpClientVerifier<D> where
    <<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin

impl<D> UnwindSafe for SrpClientVerifier<D> where
    <<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: UnwindSafe

impl<D> RefUnwindSafe for SrpClientVerifier<D> where
    <<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self