[][src]Struct srp::client::SrpClient

pub struct SrpClient<'a, D: Digest> { /* fields omitted */ }

SRP client state before handshake with the server.

Methods

impl<'a, D: Digest> SrpClient<'a, D>[src]

pub fn new(a: &[u8], params: &'a SrpGroup) -> Self[src]

Create new SRP client instance.

pub fn get_password_verifier(&self, private_key: &[u8]) -> Vec<u8>[src]

Get password verfier for user registration on the server

pub fn process_reply(
    self,
    private_key: &[u8],
    b_pub: &[u8]
) -> Result<SrpClientVerifier<D>, SrpAuthError>
[src]

Process server reply to the handshake.

pub fn get_a_pub(&self) -> Vec<u8>[src]

Get public ephemeral value for handshaking with the server.

Auto Trait Implementations

impl<'a, D> Send for SrpClient<'a, D> where
    D: Send

impl<'a, D> Sync for SrpClient<'a, D> where
    D: Sync

impl<'a, D> Unpin for SrpClient<'a, D> where
    D: Unpin

impl<'a, D> UnwindSafe for SrpClient<'a, D> where
    D: UnwindSafe

impl<'a, D> RefUnwindSafe for SrpClient<'a, D> where
    D: 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