Struct pkcs8::SubjectPublicKeyInfo [−][src]
pub struct SubjectPublicKeyInfo<'a> { pub algorithm: AlgorithmIdentifier<'a>, pub subject_public_key: &'a [u8], }
Expand description
X.509 SubjectPublicKeyInfo
(SPKI) as defined in RFC 5280 Section 4.1.2.7.
ASN.1 structure containing an AlgorithmIdentifier
and public key
data in an algorithm specific format.
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
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for SubjectPublicKeyInfo<'a>
impl<'a> Send for SubjectPublicKeyInfo<'a>
impl<'a> Sync for SubjectPublicKeyInfo<'a>
impl<'a> Unpin for SubjectPublicKeyInfo<'a>
impl<'a> UnwindSafe for SubjectPublicKeyInfo<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Is the provided Tag
decodable as a variant of this CHOICE
?
Compute the length of this value in bytes when encoded as ASN.1 DER.
Encode this value as ASN.1 DER using the provided Encoder
.
Encode this value to the provided byte slice, returning a sub-slice containing the encoded message. Read more
Encode this message as ASN.1 DER, appending it to the provided byte vector. Read more
type Output = T
type Output = T
Should always be Self