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]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for KeyAlgorithm
[src]
impl Copy for KeyAlgorithm
[src]impl Eq for KeyAlgorithm
[src]
impl Eq for KeyAlgorithm
[src]impl From<&'_ InMemorySigningKeyPair> for KeyAlgorithm
[src]
impl From<&'_ InMemorySigningKeyPair> for KeyAlgorithm
[src]fn from(key: &InMemorySigningKeyPair) -> Self
[src]
impl From<KeyAlgorithm> for AlgorithmIdentifier
[src]
impl From<KeyAlgorithm> for AlgorithmIdentifier
[src]fn from(alg: KeyAlgorithm) -> Self
[src]
impl PartialEq<KeyAlgorithm> for KeyAlgorithm
[src]
impl PartialEq<KeyAlgorithm> for KeyAlgorithm
[src]fn eq(&self, other: &KeyAlgorithm) -> bool
[src]
fn ne(&self, other: &KeyAlgorithm) -> bool
[src]
impl StructuralEq for KeyAlgorithm
[src]
impl StructuralEq for KeyAlgorithm
[src]impl StructuralPartialEq for KeyAlgorithm
[src]
impl StructuralPartialEq for KeyAlgorithm
[src]impl TryFrom<&'_ AlgorithmIdentifier> for KeyAlgorithm
[src]
impl TryFrom<&'_ AlgorithmIdentifier> for KeyAlgorithm
[src]Auto Trait Implementations
impl RefUnwindSafe for KeyAlgorithm
impl RefUnwindSafe for KeyAlgorithm
impl Send for KeyAlgorithm
impl Send for KeyAlgorithm
impl Sync for KeyAlgorithm
impl Sync for KeyAlgorithm
impl Unpin for KeyAlgorithm
impl Unpin for KeyAlgorithm
impl UnwindSafe for KeyAlgorithm
impl UnwindSafe for KeyAlgorithm