Enum pkcs8::AlgorithmParameters[][src]

#[non_exhaustive]pub enum AlgorithmParameters {
    Null,
    Oid(ObjectIdentifier),
}

The parameters field of AlgorithmIdentifier.

This is an algorithm-defined ANY field. We presently support OIDs (as used by id-ecPublicKey) and ASN.1 NULL for RSA as required by RFC 3279 Section 2.3.1.

This enum is marked as non_exhaustive to potentially support other algorithm-dependent data types in the future.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Null

ASN.1 NULL value

ObjectIdentifier that names a sub-algorithm

Implementations

impl AlgorithmParameters[src]

pub fn oid(self) -> Option<ObjectIdentifier>[src]

Get the OID value if applicable

pub fn is_null(self) -> bool[src]

Is this parameter value NULL?

pub fn is_oid(self) -> bool[src]

Is this parameter value an OID?

Trait Implementations

impl Clone for AlgorithmParameters[src]

impl Copy for AlgorithmParameters[src]

impl Debug for AlgorithmParameters[src]

impl Encodable for AlgorithmParameters[src]

impl Eq for AlgorithmParameters[src]

impl From<Null> for AlgorithmParameters[src]

impl From<ObjectIdentifier> for AlgorithmParameters[src]

impl PartialEq<AlgorithmParameters> for AlgorithmParameters[src]

impl StructuralEq for AlgorithmParameters[src]

impl StructuralPartialEq for AlgorithmParameters[src]

impl TryFrom<Any<'_>> for AlgorithmParameters[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<'a, T> Decodable<'a> for T where
    T: TryFrom<Any<'a>, Error = Error>, 
[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.