Struct srp6::StrongProofVerifier
source · [−]pub struct StrongProofVerifier<const KEY_LENGTH: usize> {
pub A: PublicKey,
pub K: StrongSessionKey,
pub M1: Proof,
}
Expand description
Verifies the StrongProof
provided by the server to the client
Fields
A: PublicKey
K: StrongSessionKey
M1: Proof
Implementations
sourceimpl<const KEY_LENGTH: usize> StrongProofVerifier<KEY_LENGTH>
impl<const KEY_LENGTH: usize> StrongProofVerifier<KEY_LENGTH>
sourcepub fn verify_strong_proof(&self, M2: &StrongProof) -> Result<StrongSessionKey>
pub fn verify_strong_proof(&self, M2: &StrongProof) -> Result<StrongSessionKey>
verifies a StrongProof
from the server on the client side
Trait Implementations
Auto Trait Implementations
impl<const KEY_LENGTH: usize> RefUnwindSafe for StrongProofVerifier<KEY_LENGTH>
impl<const KEY_LENGTH: usize> Send for StrongProofVerifier<KEY_LENGTH>
impl<const KEY_LENGTH: usize> Sync for StrongProofVerifier<KEY_LENGTH>
impl<const KEY_LENGTH: usize> Unpin for StrongProofVerifier<KEY_LENGTH>
impl<const KEY_LENGTH: usize> UnwindSafe for StrongProofVerifier<KEY_LENGTH>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more