Enum x509_certificate::algorithm::KeyAlgorithm [−][src]
pub enum KeyAlgorithm { Rsa, Ecdsa(EcdsaCurve), Ed25519, }
Cryptographic algorithm used by a private key.
Instances can be converted to/from the underlying ASN.1 type and OIDs.
Variants
RSA
Corresponds to OID 1.2.840.113549.1.1.1.
Ecdsa(EcdsaCurve)
Corresponds to OID 1.2.840.10045.2.1
The inner OID tracks the curve / parameter in use.
Corresponds to OID 1.3.101.110
Trait Implementations
impl Clone for KeyAlgorithm
[src]
impl Clone for KeyAlgorithm
[src]fn clone(&self) -> KeyAlgorithm
[src]
fn clone(&self) -> KeyAlgorithm
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for KeyAlgorithm
[src]
impl Debug for KeyAlgorithm
[src]impl From<&'_ InMemorySigningKeyPair> for KeyAlgorithm
[src]
impl From<&'_ InMemorySigningKeyPair> for KeyAlgorithm
[src]fn from(key: &InMemorySigningKeyPair) -> Self
[src]
fn from(key: &InMemorySigningKeyPair) -> Self
[src]Performs the conversion.
impl From<KeyAlgorithm> for AlgorithmIdentifier
[src]
impl From<KeyAlgorithm> for AlgorithmIdentifier
[src]fn from(alg: KeyAlgorithm) -> Self
[src]
fn from(alg: KeyAlgorithm) -> Self
[src]Performs the conversion.
impl PartialEq<KeyAlgorithm> for KeyAlgorithm
[src]
impl PartialEq<KeyAlgorithm> for KeyAlgorithm
[src]fn eq(&self, other: &KeyAlgorithm) -> bool
[src]
fn eq(&self, other: &KeyAlgorithm) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &KeyAlgorithm) -> bool
[src]
fn ne(&self, other: &KeyAlgorithm) -> bool
[src]This method tests for !=
.
impl TryFrom<&'_ AlgorithmIdentifier> for KeyAlgorithm
[src]
impl TryFrom<&'_ AlgorithmIdentifier> for KeyAlgorithm
[src]impl TryFrom<&'_ Oid<Bytes>> for KeyAlgorithm
[src]
impl TryFrom<&'_ Oid<Bytes>> for KeyAlgorithm
[src]impl Copy for KeyAlgorithm
[src]
impl Eq for KeyAlgorithm
[src]
impl StructuralEq for KeyAlgorithm
[src]
impl StructuralPartialEq for KeyAlgorithm
[src]
Auto Trait Implementations
impl RefUnwindSafe for KeyAlgorithm
impl Send for KeyAlgorithm
impl Sync for KeyAlgorithm
impl Unpin for KeyAlgorithm
impl UnwindSafe for KeyAlgorithm
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more