pub struct Verifier<C: Spake2PlusCiphersuite>(/* private fields */);Expand description
SPAKE2+ Verifier: processes the Prover’s first message and generates the response.
Implementations§
Source§impl<C: Spake2PlusCiphersuite> Verifier<C>
impl<C: Spake2PlusCiphersuite> Verifier<C>
Sourcepub fn start(
share_p_bytes: &[u8],
w0: &<C::Group as CpaceGroup>::Scalar,
l_bytes: &[u8],
context: &[u8],
id_prover: &[u8],
id_verifier: &[u8],
rng: &mut impl CryptoRngCore,
) -> Result<(Vec<u8>, Vec<u8>, VerifierState), Spake2PlusError>
pub fn start( share_p_bytes: &[u8], w0: &<C::Group as CpaceGroup>::Scalar, l_bytes: &[u8], context: &[u8], id_prover: &[u8], id_verifier: &[u8], rng: &mut impl CryptoRngCore, ) -> Result<(Vec<u8>, Vec<u8>, VerifierState), Spake2PlusError>
Start the SPAKE2+ protocol as the Verifier.
w0 is the password-derived scalar stored during registration.
l_bytes is the verifier point L = w1*G stored during registration.
Returns (shareV_bytes, confirmV, state) where shareV_bytes and confirmV
are sent to the Prover.
Auto Trait Implementations§
impl<C> Freeze for Verifier<C>
impl<C> RefUnwindSafe for Verifier<C>where
C: RefUnwindSafe,
impl<C> Send for Verifier<C>where
C: Send,
impl<C> Sync for Verifier<C>where
C: Sync,
impl<C> Unpin for Verifier<C>where
C: Unpin,
impl<C> UnsafeUnpin for Verifier<C>
impl<C> UnwindSafe for Verifier<C>where
C: UnwindSafe,
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