pub struct XWing;Expand description
X-Wing hybrid KEM (ML-KEM-768 + X25519) implementing quantaegis_core::Kem.
Trait Implementations§
Source§impl Kem for XWing
impl Kem for XWing
Source§type EncapsulationKey = EncapsulationKey
type EncapsulationKey = EncapsulationKey
Public encapsulation key type.
Source§type DecapsulationKey = DecapsulationKey
type DecapsulationKey = DecapsulationKey
Private decapsulation key type (must zeroize on drop).
Source§type Ciphertext = Ciphertext
type Ciphertext = Ciphertext
Encapsulated ciphertext type.
Established shared secret type (must zeroize on drop).
Source§fn keygen<R: CryptoRng + ?Sized>(
rng: &mut R,
) -> Result<(Self::EncapsulationKey, Self::DecapsulationKey)>
fn keygen<R: CryptoRng + ?Sized>( rng: &mut R, ) -> Result<(Self::EncapsulationKey, Self::DecapsulationKey)>
Source§fn encaps<R: CryptoRng + ?Sized>(
ek: &Self::EncapsulationKey,
rng: &mut R,
) -> Result<(Self::Ciphertext, Self::SharedSecret)>
fn encaps<R: CryptoRng + ?Sized>( ek: &Self::EncapsulationKey, rng: &mut R, ) -> Result<(Self::Ciphertext, Self::SharedSecret)>
Source§fn decaps(
dk: &Self::DecapsulationKey,
ct: &Self::Ciphertext,
) -> Result<Self::SharedSecret>
fn decaps( dk: &Self::DecapsulationKey, ct: &Self::Ciphertext, ) -> Result<Self::SharedSecret>
Auto Trait Implementations§
impl Freeze for XWing
impl RefUnwindSafe for XWing
impl Send for XWing
impl Sync for XWing
impl Unpin for XWing
impl UnsafeUnpin for XWing
impl UnwindSafe for XWing
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