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

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.

Ed25519

Corresponds to OID 1.3.101.110

Trait Implementations

impl Clone for KeyAlgorithm[src]

impl Copy for KeyAlgorithm[src]

impl Debug for KeyAlgorithm[src]

impl Eq for KeyAlgorithm[src]

impl From<&'_ InMemorySigningKeyPair> for KeyAlgorithm[src]

impl From<KeyAlgorithm> for AlgorithmIdentifier[src]

impl PartialEq<KeyAlgorithm> for KeyAlgorithm[src]

impl StructuralEq for KeyAlgorithm[src]

impl StructuralPartialEq for KeyAlgorithm[src]

impl TryFrom<&'_ AlgorithmIdentifier> for KeyAlgorithm[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<&'_ Oid<Bytes>> for KeyAlgorithm[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.