pub struct ClientStep3Result<D: Digest> { /* private fields */ }
Expand description
Result of step 3
The result of step 3 can be used to verify the server’s proof and to generate a client proof, as well as to generate the common key.
Implementations§
Source§impl<D: Digest> ClientStep3Result<D>
impl<D: Digest> ClientStep3Result<D>
Sourcepub fn key(&self) -> &[u8] ⓘ
pub fn key(&self) -> &[u8] ⓘ
Get the common secret key
SRP6a authentication results in a secret key shared by the client and server.
Sourcepub fn proof(&self) -> &[u8] ⓘ
pub fn proof(&self) -> &[u8] ⓘ
Generate a client proof
The generated value can be used to proof to the server that the client is using the same secret key.
Sourcepub fn verify_server(&self, proof: &[u8]) -> Result<()>
pub fn verify_server(&self, proof: &[u8]) -> Result<()>
Verify the server’s proof
This method verifies the the server’s proof
is correct, thereby
verifying that the server uses the same secret key as the client.
Auto Trait Implementations§
impl<D> Freeze for ClientStep3Result<D>
impl<D> RefUnwindSafe for ClientStep3Result<D>
impl<D> Send for ClientStep3Result<D>
impl<D> Sync for ClientStep3Result<D>
impl<D> Unpin for ClientStep3Result<D>
impl<D> UnwindSafe for ClientStep3Result<D>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more