pub struct EncapsulationKey<P>where
P: KemParams,{ /* private fields */ }
Expand description
An EncapsulationKey
provides the ability to encapsulate a shared key so that it can only be
decapsulated by the holder of the corresponding decapsulation key.
Trait Implementations§
Source§impl<P> Clone for EncapsulationKey<P>where
P: KemParams + Clone,
impl<P> Clone for EncapsulationKey<P>where
P: KemParams + Clone,
Source§fn clone(&self) -> EncapsulationKey<P>
fn clone(&self) -> EncapsulationKey<P>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<P> Debug for EncapsulationKey<P>where
P: KemParams + Debug,
impl<P> Debug for EncapsulationKey<P>where
P: KemParams + Debug,
Source§impl<P> Encapsulate<Array<u8, <P as PkeParams>::CiphertextSize>, Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for EncapsulationKey<P>where
P: KemParams,
impl<P> Encapsulate<Array<u8, <P as PkeParams>::CiphertextSize>, Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for EncapsulationKey<P>where
P: KemParams,
Source§impl<P> EncapsulateDeterministic<Array<u8, <P as PkeParams>::CiphertextSize>, Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for EncapsulationKey<P>where
P: KemParams,
Available on crate feature deterministic
only.
impl<P> EncapsulateDeterministic<Array<u8, <P as PkeParams>::CiphertextSize>, Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for EncapsulationKey<P>where
P: KemParams,
Available on crate feature
deterministic
only.Source§impl<P> EncodedSizeUser for EncapsulationKey<P>where
P: KemParams,
impl<P> EncodedSizeUser for EncapsulationKey<P>where
P: KemParams,
Source§impl<P> PartialEq for EncapsulationKey<P>where
P: KemParams + PartialEq,
impl<P> PartialEq for EncapsulationKey<P>where
P: KemParams + PartialEq,
impl<P> StructuralPartialEq for EncapsulationKey<P>where
P: KemParams,
Auto Trait Implementations§
impl<P> Freeze for EncapsulationKey<P>
impl<P> RefUnwindSafe for EncapsulationKey<P>
impl<P> Send for EncapsulationKey<P>
impl<P> Sync for EncapsulationKey<P>
impl<P> Unpin for EncapsulationKey<P>
impl<P> UnwindSafe for EncapsulationKey<P>
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