Struct srp::client::SrpClientVerifier
[−]
[src]
pub struct SrpClientVerifier<D: Digest> { /* fields omitted */ }
SRP client state after handshake with the server.
Methods
impl<D: Digest> SrpClientVerifier<D>
[src]
fn get_key(self) -> GenericArray<u8, D::OutputSize>
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 authentification.
fn get_proof(&self) -> GenericArray<u8, D::OutputSize>
Verification data for sending to the server.
fn verify_server(
self,
reply: &[u8]
) -> Result<GenericArray<u8, D::OutputSize>, SrpAuthError>
self,
reply: &[u8]
) -> Result<GenericArray<u8, D::OutputSize>, SrpAuthError>
Verify server reply to verification data. It will return shared secret key in case of success.