pub enum KyberPrivateKey {
Kyber512(Box<SecretKey>),
Kyber768(Box<SecretKey>),
Kyber1024(Box<SecretKey>),
}Variants§
Implementations§
Trait Implementations§
Source§impl CBORTagged for KyberPrivateKey
impl CBORTagged for KyberPrivateKey
The CBOR tags assocated with this type. If more than one tag is present,
they are considered equivalent for reading, but only the first one is
used for writing.
Source§impl CBORTaggedDecodable for KyberPrivateKey
impl CBORTaggedDecodable for KyberPrivateKey
Source§fn from_untagged_cbor(untagged_cbor: CBOR) -> Result<Self>
fn from_untagged_cbor(untagged_cbor: CBOR) -> Result<Self>
Creates an instance of this type by decoding it from untagged CBOR.
Source§fn from_tagged_cbor(cbor: CBOR) -> Result<Self, Error>where
Self: Sized,
fn from_tagged_cbor(cbor: CBOR) -> Result<Self, Error>where
Self: Sized,
Creates an instance of this type by decoding it from tagged CBOR.
Source§impl CBORTaggedEncodable for KyberPrivateKey
impl CBORTaggedEncodable for KyberPrivateKey
Source§fn untagged_cbor(&self) -> CBOR
fn untagged_cbor(&self) -> CBOR
Returns the untagged CBOR encoding of this instance.
Source§fn tagged_cbor(&self) -> CBOR
fn tagged_cbor(&self) -> CBOR
Returns the tagged CBOR encoding of this instance.
Source§impl Clone for KyberPrivateKey
impl Clone for KyberPrivateKey
Source§fn clone(&self) -> KyberPrivateKey
fn clone(&self) -> KyberPrivateKey
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 KyberPrivateKey
impl Debug for KyberPrivateKey
Source§impl Decrypter for KyberPrivateKey
impl Decrypter for KyberPrivateKey
fn encapsulation_private_key(&self) -> EncapsulationPrivateKey
Source§impl From<KyberPrivateKey> for CBOR
impl From<KyberPrivateKey> for CBOR
Source§fn from(value: KyberPrivateKey) -> Self
fn from(value: KyberPrivateKey) -> Self
Converts to this type from the input type.
Source§impl Hash for KyberPrivateKey
impl Hash for KyberPrivateKey
Source§impl PartialEq for KyberPrivateKey
impl PartialEq for KyberPrivateKey
Source§impl TryFrom<CBOR> for KyberPrivateKey
impl TryFrom<CBOR> for KyberPrivateKey
impl Eq for KyberPrivateKey
impl StructuralPartialEq for KyberPrivateKey
Auto Trait Implementations§
impl Freeze for KyberPrivateKey
impl RefUnwindSafe for KyberPrivateKey
impl Send for KyberPrivateKey
impl Sync for KyberPrivateKey
impl Unpin for KyberPrivateKey
impl UnwindSafe for KyberPrivateKey
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