Skip to main content

Verifier

Struct Verifier 

Source
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>

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.