Type Alias SubjectPublicKeyInfoRef

Source
pub type SubjectPublicKeyInfoRef<'a> = SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>;
Expand description

SubjectPublicKeyInfo with AnyRef algorithm parameters, and BitStringRef params.

Aliased Type§

struct SubjectPublicKeyInfoRef<'a> {
    pub algorithm: AlgorithmIdentifier<AnyRef<'a>>,
    pub subject_public_key: BitStringRef<'a>,
}

Fields§

§algorithm: AlgorithmIdentifier<AnyRef<'a>>

X.509 AlgorithmIdentifier for the public key type

§subject_public_key: BitStringRef<'a>

Public key data

Trait Implementations§

Source§

impl<'a> RefToOwned<'a> for SubjectPublicKeyInfoRef<'a>

Source§

type Owned = SubjectPublicKeyInfo<Any, BitString>

The resulting type after obtaining ownership.
Source§

fn ref_to_owned(&self) -> Self::Owned

Creates a new object taking ownership of the data
Source§

impl<Params: Clone, Key: Clone> Clone for SubjectPublicKeyInfo<Params, Key>

Source§

fn clone(&self) -> SubjectPublicKeyInfo<Params, Key>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Params: Debug, Key: Debug> Debug for SubjectPublicKeyInfo<Params, Key>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a: 'k, 'k, Params, Key> DecodeValue<'a> for SubjectPublicKeyInfo<Params, Key>
where Params: Choice<'a> + Encode, Key: Decode<'a> + 'k,

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Attempt to decode this message using the provided Reader.
Source§

impl<'a, Params, Key> EncodeValue for SubjectPublicKeyInfo<Params, Key>
where Params: Choice<'a> + Encode, Key: Encode,

Source§

fn value_len(&self) -> Result<Length>

Compute the length of this value (sans [Tag]+Length header) when encoded as ASN.1 DER.
Source§

fn encode_value(&self, writer: &mut impl Writer) -> Result<()>

Encode value (sans [Tag]+Length header) as ASN.1 DER using the provided Writer.
Source§

fn header(&self) -> Result<Header, Error>
where Self: Tagged,

Get the Header used to encode this value.
Source§

impl<Params: PartialEq, Key: PartialEq> PartialEq for SubjectPublicKeyInfo<Params, Key>

Source§

fn eq(&self, other: &SubjectPublicKeyInfo<Params, Key>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<Params, Key> PemLabel for SubjectPublicKeyInfo<Params, Key>

Source§

const PEM_LABEL: &'static str = "PUBLIC KEY"

Expected PEM type label for a given document, e.g. "PRIVATE KEY"
Source§

fn validate_pem_label(actual: &str) -> Result<(), Error>

Validate that a given label matches the expected label.
Source§

impl<'a, Params, Key> TryFrom<&'a [u8]> for SubjectPublicKeyInfo<Params, Key>
where Params: Choice<'a> + Encode, Key: Decode<'a> + Encode + FixedTag,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(bytes: &'a [u8]) -> Result<Self>

Performs the conversion.
Source§

impl<'a, Params, Key> ValueOrd for SubjectPublicKeyInfo<Params, Key>
where Params: Choice<'a> + DerOrd + Encode, Key: ValueOrd,

Source§

fn value_cmp(&self, other: &Self) -> Result<Ordering>

Return an Ordering between value portion of TLV-encoded self and other when serialized as ASN.1 DER.
Source§

impl<Params: Eq, Key: Eq> Eq for SubjectPublicKeyInfo<Params, Key>

Source§

impl<'a, Params, Key> Sequence<'a> for SubjectPublicKeyInfo<Params, Key>
where Params: Choice<'a> + Encode, Key: Decode<'a> + Encode + FixedTag,

Source§

impl<Params, Key> StructuralPartialEq for SubjectPublicKeyInfo<Params, Key>