pub struct Ciphertext { /* private fields */ }
Expand description
X-Wing ciphertext.
Implementations§
Trait Implementations§
Source§impl Clone for Ciphertext
impl Clone for Ciphertext
Source§fn clone(&self) -> Ciphertext
fn clone(&self) -> Ciphertext
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 Decapsulate<Ciphertext, [u8; 32]> for DecapsulationKey
impl Decapsulate<Ciphertext, [u8; 32]> for DecapsulationKey
Source§type Error = Infallible
type Error = Infallible
Decapsulation error
Source§fn decapsulate(&self, ct: &Ciphertext) -> Result<SharedSecret, Self::Error>
fn decapsulate(&self, ct: &Ciphertext) -> Result<SharedSecret, Self::Error>
Decapsulates the given encapsulated key
Source§impl Drop for Ciphertext
impl Drop for Ciphertext
Source§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 Ciphertext
impl PartialEq for Ciphertext
Source§impl Zeroize for Ciphertext
impl Zeroize for Ciphertext
impl Eq for Ciphertext
impl StructuralPartialEq for Ciphertext
Auto Trait Implementations§
impl Freeze for Ciphertext
impl RefUnwindSafe for Ciphertext
impl Send for Ciphertext
impl Sync for Ciphertext
impl Unpin for Ciphertext
impl UnwindSafe for Ciphertext
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