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