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§fn clone_from(&mut self, source: &Self)
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 Encapsulator = EncapsulationKey
type Encapsulator = EncapsulationKey
Encapsulator which corresponds to this decapsulator.
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§fn encapsulator(&self) -> EncapsulationKey
fn encapsulator(&self) -> EncapsulationKey
Retrieve the encapsulator associated with this decapsulator.
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<R: TryCryptoRng + ?Sized>(
&self,
rng: &mut R,
) -> Result<(Ciphertext, SharedSecret), Self::Error>
fn encapsulate<R: TryCryptoRng + ?Sized>( &self, rng: &mut R, ) -> 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