pub struct Responder<CS: CipherSuite> { /* private fields */ }
Implementations§
source§impl<CS: CipherSuite> Responder<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> Responder<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, message_one: &MessageOne<CS>, rng: &mut R, ) -> (Self, MessageTwo<CS>)
pub fn finish(self, message_three: &MessageThree<CS>) -> Output
Trait Implementations§
source§impl<CS: CipherSuite> EncodedSizeUser for Responder<CS>where
<<CS::Kem as KemCore>::DecapsulationKey as EncodedSizeUser>::EncodedSize: Add<<<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>,
Sum<<<CS::Kem as KemCore>::DecapsulationKey as EncodedSizeUser>::EncodedSize, <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>: ArraySize + Add<U64> + Sub<<<CS::Kem as KemCore>::DecapsulationKey as EncodedSizeUser>::EncodedSize, Output = <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>,
Sum<Sum<<<CS::Kem as KemCore>::DecapsulationKey as EncodedSizeUser>::EncodedSize, <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>, U64>: ArraySize + Sub<Sum<<<CS::Kem as KemCore>::DecapsulationKey as EncodedSizeUser>::EncodedSize, <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>, Output = U64>,
impl<CS: CipherSuite> EncodedSizeUser for Responder<CS>where
<<CS::Kem as KemCore>::DecapsulationKey as EncodedSizeUser>::EncodedSize: Add<<<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>,
Sum<<<CS::Kem as KemCore>::DecapsulationKey as EncodedSizeUser>::EncodedSize, <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>: ArraySize + Add<U64> + Sub<<<CS::Kem as KemCore>::DecapsulationKey as EncodedSizeUser>::EncodedSize, Output = <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>,
Sum<Sum<<<CS::Kem as KemCore>::DecapsulationKey as EncodedSizeUser>::EncodedSize, <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>, U64>: ArraySize + Sub<Sum<<<CS::Kem as KemCore>::DecapsulationKey as EncodedSizeUser>::EncodedSize, <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>, Output = U64>,
source§type EncodedSize = <<<<<CS as CipherSuite>::Kem as KemCore>::DecapsulationKey as EncodedSizeUser>::EncodedSize as Add<<<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>>::Output as Add<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output
type EncodedSize = <<<<<CS as CipherSuite>::Kem as KemCore>::DecapsulationKey as EncodedSizeUser>::EncodedSize as Add<<<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>>::Output as Add<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output
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 Responder<CS>where
<<CS as CipherSuite>::Kem as KemCore>::DecapsulationKey: Freeze,
<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey: Freeze,
impl<CS> RefUnwindSafe for Responder<CS>where
<<CS as CipherSuite>::Kem as KemCore>::DecapsulationKey: RefUnwindSafe,
<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey: RefUnwindSafe,
impl<CS> Send for Responder<CS>where
<<CS as CipherSuite>::Kem as KemCore>::DecapsulationKey: Send,
<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey: Send,
impl<CS> Sync for Responder<CS>where
<<CS as CipherSuite>::Kem as KemCore>::DecapsulationKey: Sync,
<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey: Sync,
impl<CS> Unpin for Responder<CS>where
<<CS as CipherSuite>::Kem as KemCore>::DecapsulationKey: Unpin,
<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey: Unpin,
impl<CS> UnwindSafe for Responder<CS>where
<<CS as CipherSuite>::Kem as KemCore>::DecapsulationKey: UnwindSafe,
<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey: 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