pub struct MessageTwo<CS: CipherSuite>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,{ /* private fields */ }
Trait Implementations§
source§impl<CS: CipherSuite> EncodedSizeUser for MessageTwo<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,
<<CS::Pake as Pake>::RespondMessage as EncodedSizeUser>::EncodedSize: Add<<<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>,
Sum<<<CS::Pake as Pake>::RespondMessage as EncodedSizeUser>::EncodedSize, <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>: ArraySize + Add<<<CS::Hash as EagerHash>::Core as OutputSizeUser>::OutputSize> + Sub<<<CS::Pake as Pake>::RespondMessage as EncodedSizeUser>::EncodedSize, Output = <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>,
Sum<Sum<<<CS::Pake as Pake>::RespondMessage as EncodedSizeUser>::EncodedSize, <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>, <<CS::Hash as EagerHash>::Core as OutputSizeUser>::OutputSize>: ArraySize + Sub<Sum<<<CS::Pake as Pake>::RespondMessage as EncodedSizeUser>::EncodedSize, <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>, Output = <<CS::Hash as EagerHash>::Core as OutputSizeUser>::OutputSize>,
impl<CS: CipherSuite> EncodedSizeUser for MessageTwo<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,
<<CS::Pake as Pake>::RespondMessage as EncodedSizeUser>::EncodedSize: Add<<<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>,
Sum<<<CS::Pake as Pake>::RespondMessage as EncodedSizeUser>::EncodedSize, <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>: ArraySize + Add<<<CS::Hash as EagerHash>::Core as OutputSizeUser>::OutputSize> + Sub<<<CS::Pake as Pake>::RespondMessage as EncodedSizeUser>::EncodedSize, Output = <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>,
Sum<Sum<<<CS::Pake as Pake>::RespondMessage as EncodedSizeUser>::EncodedSize, <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>, <<CS::Hash as EagerHash>::Core as OutputSizeUser>::OutputSize>: ArraySize + Sub<Sum<<<CS::Pake as Pake>::RespondMessage as EncodedSizeUser>::EncodedSize, <<CS::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>, Output = <<CS::Hash as EagerHash>::Core as OutputSizeUser>::OutputSize>,
source§type EncodedSize = <<<<<CS as CipherSuite>::Pake as Pake>::RespondMessage as EncodedSizeUser>::EncodedSize as Add<<<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>>::Output as Add<<<<CS as CipherSuite>::Hash as EagerHash>::Core as OutputSizeUser>::OutputSize>>::Output
type EncodedSize = <<<<<CS as CipherSuite>::Pake as Pake>::RespondMessage as EncodedSizeUser>::EncodedSize as Add<<<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey as EncodedSizeUser>::EncodedSize>>::Output as Add<<<<CS as CipherSuite>::Hash as EagerHash>::Core as OutputSizeUser>::OutputSize>>::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 MessageTwo<CS>where
<<CS as CipherSuite>::Hash as CoreProxy>::Core: Sized,
<CS as CipherSuite>::Hash: Sized,
<<CS as CipherSuite>::Pake as Pake>::RespondMessage: Freeze,
<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey: Freeze,
<<<<CS as CipherSuite>::Hash as EagerHash>::Core as OutputSizeUser>::OutputSize as ArraySize>::ArrayType<u8>: Freeze,
impl<CS> RefUnwindSafe for MessageTwo<CS>where
<<CS as CipherSuite>::Hash as CoreProxy>::Core: Sized,
<CS as CipherSuite>::Hash: Sized,
<<CS as CipherSuite>::Pake as Pake>::RespondMessage: RefUnwindSafe,
<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey: RefUnwindSafe,
<<<<CS as CipherSuite>::Hash as EagerHash>::Core as OutputSizeUser>::OutputSize as ArraySize>::ArrayType<u8>: RefUnwindSafe,
impl<CS> Send for MessageTwo<CS>where
<<CS as CipherSuite>::Hash as CoreProxy>::Core: Sized,
<CS as CipherSuite>::Hash: Sized,
<<CS as CipherSuite>::Pake as Pake>::RespondMessage: Send,
<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey: Send,
impl<CS> Sync for MessageTwo<CS>where
<<CS as CipherSuite>::Hash as CoreProxy>::Core: Sized,
<CS as CipherSuite>::Hash: Sized,
<<CS as CipherSuite>::Pake as Pake>::RespondMessage: Sync,
<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey: Sync,
impl<CS> Unpin for MessageTwo<CS>where
<<CS as CipherSuite>::Hash as CoreProxy>::Core: Sized,
<CS as CipherSuite>::Hash: Sized,
<<CS as CipherSuite>::Pake as Pake>::RespondMessage: Unpin,
<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey: Unpin,
<<<<CS as CipherSuite>::Hash as EagerHash>::Core as OutputSizeUser>::OutputSize as ArraySize>::ArrayType<u8>: Unpin,
impl<CS> UnwindSafe for MessageTwo<CS>where
<<CS as CipherSuite>::Hash as CoreProxy>::Core: Sized,
<CS as CipherSuite>::Hash: Sized,
<<CS as CipherSuite>::Pake as Pake>::RespondMessage: UnwindSafe,
<<CS as CipherSuite>::Kem as KemCore>::EncapsulationKey: UnwindSafe,
<<<<CS as CipherSuite>::Hash as EagerHash>::Core as OutputSizeUser>::OutputSize as ArraySize>::ArrayType<u8>: 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