pub struct Initiator<CS: CipherSuite>(/* private fields */);
Implementations§
source§impl<CS: CipherSuite> Initiator<CS>where
<CS::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<CS::Hash as BlockSizeUser>::BlockSize>,
CS::Hash: Hash,
<CS::Hash as CoreProxy>::Core: ProxyHash,
<<CS::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<CS::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
impl<CS: CipherSuite> Initiator<CS>where
<CS::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<CS::Hash as BlockSizeUser>::BlockSize>,
CS::Hash: Hash,
<CS::Hash as CoreProxy>::Core: ProxyHash,
<<CS::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<CS::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
pub fn start<R: RngCore + CryptoRng>( input: &Input, rng: &mut R, ) -> (Self, MessageOne<CS>)
pub fn finish<R: RngCore + CryptoRng>( self, message_two: &MessageTwo<CS>, rng: &mut R, ) -> (Output, MessageThree<CS>)
Trait Implementations§
source§impl<CS: CipherSuite> EncodedSizeUser for Initiator<CS>
impl<CS: CipherSuite> EncodedSizeUser for Initiator<CS>
source§type EncodedSize = <<CS as CipherSuite>::Pake as EncodedSizeUser>::EncodedSize
type EncodedSize = <<CS as CipherSuite>::Pake as EncodedSizeUser>::EncodedSize
The size of an encoded object
source§fn from_bytes(enc: &Encoded<Self>) -> Self
fn from_bytes(enc: &Encoded<Self>) -> Self
Parse an object from its encoded form
Auto Trait Implementations§
impl<CS> Freeze for Initiator<CS>
impl<CS> RefUnwindSafe for Initiator<CS>
impl<CS> Send for Initiator<CS>
impl<CS> Sync for Initiator<CS>
impl<CS> Unpin for Initiator<CS>
impl<CS> UnwindSafe for Initiator<CS>
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