Struct spki::SubjectPublicKeyInfo[][src]

pub struct SubjectPublicKeyInfo<'a> {
    pub algorithm: AlgorithmIdentifier<'a>,
    pub subject_public_key: &'a [u8],
}

X.509 SubjectPublicKeyInfo (SPKI).

ASN.1 structure containing an AlgorithmIdentifier and public key data in an algorithm specific format.

Described in RFC 5280 Section 4.1.2.7: https://tools.ietf.org/html/rfc5280#section-4.1.2.7

   SubjectPublicKeyInfo  ::=  SEQUENCE  {
        algorithm            AlgorithmIdentifier,
        subjectPublicKey     BIT STRING  }

Fields

algorithm: AlgorithmIdentifier<'a>

X.509 AlgorithmIdentifier for the public key type

subject_public_key: &'a [u8]

Public key data

Trait Implementations

impl<'a> Clone for SubjectPublicKeyInfo<'a>[src]

impl<'a> Copy for SubjectPublicKeyInfo<'a>[src]

impl<'a> Debug for SubjectPublicKeyInfo<'a>[src]

impl<'a> Eq for SubjectPublicKeyInfo<'a>[src]

impl<'a> Message<'a> for SubjectPublicKeyInfo<'a>[src]

impl<'a> PartialEq<SubjectPublicKeyInfo<'a>> for SubjectPublicKeyInfo<'a>[src]

impl<'a> StructuralEq for SubjectPublicKeyInfo<'a>[src]

impl<'a> StructuralPartialEq for SubjectPublicKeyInfo<'a>[src]

impl<'a> TryFrom<&'a [u8]> for SubjectPublicKeyInfo<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a> TryFrom<Any<'a>> for SubjectPublicKeyInfo<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> Send for SubjectPublicKeyInfo<'a>

impl<'a> Sync for SubjectPublicKeyInfo<'a>

impl<'a> Unpin for SubjectPublicKeyInfo<'a>

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> Choice<'a> for T where
    T: Decodable<'a> + Encodable + Tagged
[src]

impl<'a, T> Decodable<'a> for T where
    T: TryFrom<Any<'a>, Error = Error>, 
[src]

impl<'a, M> Encodable for M where
    M: Message<'a>, 
[src]

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

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

impl<'a, M> Tagged for M where
    M: Message<'a>, 
[src]

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.