Enum cryptographic_message_syntax::CertificateKeyAlgorithm[][src]

pub enum CertificateKeyAlgorithm {
    Rsa,
    Ecdsa,
    Ed25519,
}

An algorithm used to digitally sign content.

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

Corresponds to OID 1.2.840.10045.2.1

Ed25519

Corresponds to OID 1.3.101.110

Implementations

impl CertificateKeyAlgorithm[src]

pub fn default_signature_algorithm_oid(&self) -> Oid[src]

Obtain the OID of the default signature algorithm this key algorithm uses.

pub fn default_signature_algorithm_identifier(&self) -> AlgorithmIdentifier[src]

Obtain the default AlgorithmIdentifier that this key uses.

Trait Implementations

impl Clone for CertificateKeyAlgorithm[src]

impl Copy for CertificateKeyAlgorithm[src]

impl Debug for CertificateKeyAlgorithm[src]

impl Eq for CertificateKeyAlgorithm[src]

impl PartialEq<CertificateKeyAlgorithm> for CertificateKeyAlgorithm[src]

impl StructuralEq for CertificateKeyAlgorithm[src]

impl StructuralPartialEq for CertificateKeyAlgorithm[src]

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

type Error = CmsError

The type returned in the event of a conversion error.

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

type Error = CmsError

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument 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.