pub enum EncapsulationPrivateKey {
X25519(X25519PrivateKey),
Kyber(KyberPrivateKey),
}Variants§
X25519(X25519PrivateKey)
Kyber(KyberPrivateKey)
Implementations§
Source§impl EncapsulationPrivateKey
impl EncapsulationPrivateKey
pub fn encapsulation_scheme(&self) -> EncapsulationScheme
Trait Implementations§
Source§impl Clone for EncapsulationPrivateKey
impl Clone for EncapsulationPrivateKey
Source§fn clone(&self) -> EncapsulationPrivateKey
fn clone(&self) -> EncapsulationPrivateKey
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 EncapsulationPrivateKey
impl Debug for EncapsulationPrivateKey
Source§impl Decrypter for EncapsulationPrivateKey
impl Decrypter for EncapsulationPrivateKey
fn encapsulation_private_key(&self) -> EncapsulationPrivateKey
Source§impl From<EncapsulationPrivateKey> for CBOR
impl From<EncapsulationPrivateKey> for CBOR
Source§fn from(ciphertext: EncapsulationPrivateKey) -> CBOR
fn from(ciphertext: EncapsulationPrivateKey) -> CBOR
Converts to this type from the input type.
Source§impl Hash for EncapsulationPrivateKey
impl Hash for EncapsulationPrivateKey
Source§impl PartialEq for EncapsulationPrivateKey
impl PartialEq for EncapsulationPrivateKey
Source§impl TryFrom<CBOR> for EncapsulationPrivateKey
impl TryFrom<CBOR> for EncapsulationPrivateKey
impl Eq for EncapsulationPrivateKey
impl StructuralPartialEq for EncapsulationPrivateKey
Auto Trait Implementations§
impl Freeze for EncapsulationPrivateKey
impl RefUnwindSafe for EncapsulationPrivateKey
impl Send for EncapsulationPrivateKey
impl Sync for EncapsulationPrivateKey
impl Unpin for EncapsulationPrivateKey
impl UnwindSafe for EncapsulationPrivateKey
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
Source§impl<T> CBOREncodable for T
impl<T> CBOREncodable for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more