pub struct ProverState<C: Spake2PlusCiphersuite> { /* private fields */ }Expand description
State held by the Prover between sending shareP and receiving (shareV, confirmV).
Implementations§
Source§impl<C: Spake2PlusCiphersuite> ProverState<C>
impl<C: Spake2PlusCiphersuite> ProverState<C>
Sourcepub fn finish(
self,
share_v_bytes: &[u8],
confirm_v: &[u8],
) -> Result<ProverOutput, Spake2PlusError>
pub fn finish( self, share_v_bytes: &[u8], confirm_v: &[u8], ) -> Result<ProverOutput, Spake2PlusError>
Finish the SPAKE2+ protocol by processing the Verifier’s response.
The Prover receives (shareV_bytes, confirm_v) from the Verifier,
verifies confirm_v, and returns ProverOutput containing the session
key and confirm_p to send back.
Trait Implementations§
Source§impl<C: Spake2PlusCiphersuite> Drop for ProverState<C>
impl<C: Spake2PlusCiphersuite> Drop for ProverState<C>
Source§impl<C: Spake2PlusCiphersuite> Zeroize for ProverState<C>
impl<C: Spake2PlusCiphersuite> Zeroize for ProverState<C>
Auto Trait Implementations§
impl<C> Freeze for ProverState<C>
impl<C> RefUnwindSafe for ProverState<C>
impl<C> Send for ProverState<C>
impl<C> Sync for ProverState<C>
impl<C> Unpin for ProverState<C>
impl<C> UnsafeUnpin for ProverState<C>
impl<C> UnwindSafe for ProverState<C>
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