pub struct DecapsulationKey<P>where
P: KemParams,{ /* private fields */ }
Expand description
A DecapsulationKey
provides the ability to generate a new key pair, and decapsulate an
encapsulated shared key.
Implementations§
Source§impl<P> DecapsulationKey<P>where
P: KemParams,
impl<P> DecapsulationKey<P>where
P: KemParams,
Sourcepub fn encapsulation_key(&self) -> &EncapsulationKey<P>
pub fn encapsulation_key(&self) -> &EncapsulationKey<P>
Get the EncapsulationKey
which corresponds to this DecapsulationKey
.
Trait Implementations§
Source§impl<P> Clone for DecapsulationKey<P>where
P: KemParams + Clone,
impl<P> Clone for DecapsulationKey<P>where
P: KemParams + Clone,
Source§fn clone(&self) -> DecapsulationKey<P>
fn clone(&self) -> DecapsulationKey<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 DecapsulationKey<P>where
P: KemParams + Debug,
impl<P> Debug for DecapsulationKey<P>where
P: KemParams + Debug,
Source§impl<P> Decapsulate<Array<u8, <P as PkeParams>::CiphertextSize>, Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for DecapsulationKey<P>where
P: KemParams,
impl<P> Decapsulate<Array<u8, <P as PkeParams>::CiphertextSize>, Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for DecapsulationKey<P>where
P: KemParams,
Source§impl<P> Drop for DecapsulationKey<P>where
P: KemParams,
Available on crate feature zeroize
only.
impl<P> Drop for DecapsulationKey<P>where
P: KemParams,
Available on crate feature
zeroize
only.Source§impl<P> EncodedSizeUser for DecapsulationKey<P>where
P: KemParams,
impl<P> EncodedSizeUser for DecapsulationKey<P>where
P: KemParams,
Source§impl<P> PartialEq for DecapsulationKey<P>where
P: KemParams + PartialEq,
impl<P> PartialEq for DecapsulationKey<P>where
P: KemParams + PartialEq,
impl<P> StructuralPartialEq for DecapsulationKey<P>where
P: KemParams,
impl<P> ZeroizeOnDrop for DecapsulationKey<P>where
P: KemParams,
Available on crate feature
zeroize
only.Auto Trait Implementations§
impl<P> Freeze for DecapsulationKey<P>
impl<P> RefUnwindSafe for DecapsulationKey<P>
impl<P> Send for DecapsulationKey<P>
impl<P> Sync for DecapsulationKey<P>
impl<P> Unpin for DecapsulationKey<P>
impl<P> UnwindSafe for DecapsulationKey<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