pub enum KyberCiphertext {
Kyber512(Box<Ciphertext>),
Kyber768(Box<Ciphertext>),
Kyber1024(Box<Ciphertext>),
}Variants§
Implementations§
Trait Implementations§
Source§impl CBORTagged for KyberCiphertext
impl CBORTagged for KyberCiphertext
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 KyberCiphertext
impl CBORTaggedDecodable for KyberCiphertext
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 KyberCiphertext
impl CBORTaggedEncodable for KyberCiphertext
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 KyberCiphertext
impl Clone for KyberCiphertext
Source§fn clone(&self) -> KyberCiphertext
fn clone(&self) -> KyberCiphertext
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 KyberCiphertext
impl Debug for KyberCiphertext
Source§impl From<KyberCiphertext> for CBOR
impl From<KyberCiphertext> for CBOR
Source§fn from(value: KyberCiphertext) -> Self
fn from(value: KyberCiphertext) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KyberCiphertext
impl PartialEq for KyberCiphertext
Source§impl TryFrom<CBOR> for KyberCiphertext
impl TryFrom<CBOR> for KyberCiphertext
impl StructuralPartialEq for KyberCiphertext
Auto Trait Implementations§
impl Freeze for KyberCiphertext
impl RefUnwindSafe for KyberCiphertext
impl Send for KyberCiphertext
impl Sync for KyberCiphertext
impl Unpin for KyberCiphertext
impl UnwindSafe for KyberCiphertext
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