Struct ml_kem::kem::DecapsulationKey
source · 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,
§type EncodedSize = <P as KemParams>::DecapsulationKeySize
type EncodedSize = <P as KemParams>::DecapsulationKeySize
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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)