Struct srp::client::SrpClient
[−]
[src]
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]
fn new(a: &[u8], params: &'a SrpGroup) -> Self
Create new SRP client instance.
fn get_password_verifier(&self, private_key: &[u8]) -> Vec<u8>
Get password verfier for user registration on the server
fn process_reply(
self,
private_key: &[u8],
b_pub: &[u8]
) -> Result<SrpClientVerifier<D>, SrpAuthError>
self,
private_key: &[u8],
b_pub: &[u8]
) -> Result<SrpClientVerifier<D>, SrpAuthError>
Process server reply to the handshake.
fn get_a_pub(&self) -> Vec<u8>
Get public ephemeral value for handshaking with the server.