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§
Source§impl<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> Freeze for StrongProofVerifier<KEY_LENGTH>
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§
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