pub struct DecapsulationKey(/* private fields */);Implementations§
Source§impl DecapsulationKey
impl DecapsulationKey
pub fn generate() -> Result<Self>
pub fn encapsulation_key(&self) -> &EncapsulationKey
pub fn to_bytes(&self) -> [u8; 3168]
pub fn from_bytes(bytes: impl AsRef<[u8]>) -> Result<Self>
pub fn decapsulate(&self, ct: &Encapsulated) -> SharedSecret
Trait Implementations§
Source§impl Clone for DecapsulationKey
impl Clone for DecapsulationKey
Source§fn clone(&self) -> DecapsulationKey
fn clone(&self) -> DecapsulationKey
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DecapsulationKey
impl RefUnwindSafe for DecapsulationKey
impl Send for DecapsulationKey
impl Sync for DecapsulationKey
impl Unpin for DecapsulationKey
impl UnsafeUnpin for DecapsulationKey
impl UnwindSafe for DecapsulationKey
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