pub enum EncapsulationCiphertext {
X25519(X25519PublicKey),
Kyber(KyberCiphertext),
}Variants§
X25519(X25519PublicKey)
Kyber(KyberCiphertext)
Implementations§
Source§impl EncapsulationCiphertext
impl EncapsulationCiphertext
pub fn x25519_public_key(&self) -> Result<&X25519PublicKey>
pub fn kyber_ciphertext(&self) -> Result<&KyberCiphertext>
pub fn is_x25519(&self) -> bool
pub fn is_kyber(&self) -> bool
pub fn encapsulation_scheme(&self) -> EncapsulationScheme
Trait Implementations§
Source§impl Clone for EncapsulationCiphertext
impl Clone for EncapsulationCiphertext
Source§fn clone(&self) -> EncapsulationCiphertext
fn clone(&self) -> EncapsulationCiphertext
Returns a copy 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 Debug for EncapsulationCiphertext
impl Debug for EncapsulationCiphertext
Source§impl From<EncapsulationCiphertext> for CBOR
impl From<EncapsulationCiphertext> for CBOR
Source§fn from(ciphertext: EncapsulationCiphertext) -> Self
fn from(ciphertext: EncapsulationCiphertext) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EncapsulationCiphertext
impl PartialEq for EncapsulationCiphertext
Source§impl TryFrom<CBOR> for EncapsulationCiphertext
impl TryFrom<CBOR> for EncapsulationCiphertext
impl StructuralPartialEq for EncapsulationCiphertext
Auto Trait Implementations§
impl Freeze for EncapsulationCiphertext
impl RefUnwindSafe for EncapsulationCiphertext
impl Send for EncapsulationCiphertext
impl Sync for EncapsulationCiphertext
impl Unpin for EncapsulationCiphertext
impl UnwindSafe for EncapsulationCiphertext
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