pake_kem

Struct MessageTwo

source
pub struct MessageTwo<CS: CipherSuite>{ /* 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>,

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

The size of an encoded object
source§

fn from_bytes(enc: &Encoded<Self>) -> Self

Parse an object from its encoded form
source§

fn as_bytes(&self) -> Encoded<Self>

Serialize an object to 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>

§

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> 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> Same for T

source§

type Output = T

Should always be Self
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.