pub struct ServerStep4Result<D: Digest> { /* private fields */ }
Expand description
Result of step 4
The result of step 4 can be used to verify the client’s proof and to generate a client proof, as well as to generate the common key.
Implementations§
Source§impl<D: Digest> ServerStep4Result<D>
impl<D: Digest> ServerStep4Result<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 server proof
The generated value can be used to proof to the client that the server is using the same secret key.
Sourcepub fn verify_client(&self, reply: &[u8]) -> Result<()>
pub fn verify_client(&self, reply: &[u8]) -> Result<()>
Verify the client’s proof
This method verifies the the client’s proof
is correct, thereby
verifying that the client uses the same secret key as the server.
Auto Trait Implementations§
impl<D> Freeze for ServerStep4Result<D>
impl<D> RefUnwindSafe for ServerStep4Result<D>
impl<D> Send for ServerStep4Result<D>
impl<D> Sync for ServerStep4Result<D>
impl<D> Unpin for ServerStep4Result<D>
impl<D> UnwindSafe for ServerStep4Result<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