Struct opaque_ke::key_exchange::tripledh::Ke2Message
source · [−]pub struct Ke2Message<D: Hash, KG: KeGroup>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,{ /* private fields */ }
Expand description
The second key exchange message
Trait Implementations
sourceimpl<D: Hash, KG: KeGroup> Clone for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
impl<D: Hash, KG: KeGroup> Clone for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
sourceimpl<D: Hash, KG: KeGroup> Debug for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
KG::Pk: Debug,
impl<D: Hash, KG: KeGroup> Debug for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
KG::Pk: Debug,
sourceimpl<'de, D: Hash, KG: KeGroup> Deserialize<'de> for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
impl<'de, D: Hash, KG: KeGroup> Deserialize<'de> for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<D: Hash, KG: KeGroup> Drop for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
impl<D: Hash, KG: KeGroup> Drop for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
sourceimpl<D: Hash, KG: KeGroup> Hash for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
KG::Pk: Hash,
impl<D: Hash, KG: KeGroup> Hash for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
KG::Pk: Hash,
sourceimpl<D: Hash, KG: KeGroup> Ord for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
KG::Pk: Ord,
impl<D: Hash, KG: KeGroup> Ord for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
KG::Pk: Ord,
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<D: Hash, KG: KeGroup> PartialEq<Ke2Message<D, KG>> for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
KG::Pk: PartialEq,
impl<D: Hash, KG: KeGroup> PartialEq<Ke2Message<D, KG>> for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
KG::Pk: PartialEq,
sourceimpl<D: Hash, KG: KeGroup> PartialOrd<Ke2Message<D, KG>> for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
KG::Pk: PartialOrd,
impl<D: Hash, KG: KeGroup> PartialOrd<Ke2Message<D, KG>> for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
KG::Pk: PartialOrd,
sourcefn partial_cmp(&self, __other: &Self) -> Option<Ordering>
fn partial_cmp(&self, __other: &Self) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl<D: Hash, KG: KeGroup> Serialize for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
impl<D: Hash, KG: KeGroup> Serialize for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
impl<D: Hash, KG: KeGroup> Eq for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
KG::Pk: Eq,
impl<D: Hash, KG: KeGroup> ZeroizeOnDrop for Ke2Message<D, KG>where
D::Core: ProxyHash,
<D::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<D::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
Auto Trait Implementations
impl<D, KG> RefUnwindSafe for Ke2Message<D, KG>where
<<<D as CoreProxy>::Core as OutputSizeUser>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
<KG as KeGroup>::Pk: RefUnwindSafe,
impl<D, KG> Send for Ke2Message<D, KG>where
<KG as KeGroup>::Pk: Send,
impl<D, KG> Sync for Ke2Message<D, KG>where
<KG as KeGroup>::Pk: Sync,
impl<D, KG> Unpin for Ke2Message<D, KG>where
<<<D as CoreProxy>::Core as OutputSizeUser>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin,
<KG as KeGroup>::Pk: Unpin,
impl<D, KG> UnwindSafe for Ke2Message<D, KG>where
<<<D as CoreProxy>::Core as OutputSizeUser>::OutputSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
<KG as KeGroup>::Pk: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more