pub struct EncapsulationKey { /* private fields */ }
Expand description
X-Wing encapsulation or public key.
Implementations§
Trait Implementations§
Source§impl Clone for EncapsulationKey
impl Clone for EncapsulationKey
Source§fn clone(&self) -> EncapsulationKey
fn clone(&self) -> EncapsulationKey
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Encapsulate<Ciphertext, [u8; 32]> for EncapsulationKey
impl Encapsulate<Ciphertext, [u8; 32]> for EncapsulationKey
Source§type Error = Infallible
type Error = Infallible
Encapsulation error
Source§fn encapsulate(
&self,
rng: &mut impl CryptoRngCore,
) -> Result<(Ciphertext, SharedSecret), Self::Error>
fn encapsulate( &self, rng: &mut impl CryptoRngCore, ) -> Result<(Ciphertext, SharedSecret), Self::Error>
Encapsulates a fresh shared secret
Source§impl PartialEq for EncapsulationKey
impl PartialEq for EncapsulationKey
impl StructuralPartialEq for EncapsulationKey
Auto Trait Implementations§
impl Freeze for EncapsulationKey
impl RefUnwindSafe for EncapsulationKey
impl Send for EncapsulationKey
impl Sync for EncapsulationKey
impl Unpin for EncapsulationKey
impl UnwindSafe for EncapsulationKey
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