Struct pkcs8::SubjectPublicKeyInfo
source · [−]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 § 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
sourceimpl<'a> Clone for SubjectPublicKeyInfo<'a>
impl<'a> Clone for SubjectPublicKeyInfo<'a>
sourcefn clone(&self) -> SubjectPublicKeyInfo<'a>
fn clone(&self) -> SubjectPublicKeyInfo<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for SubjectPublicKeyInfo<'a>
impl<'a> Debug for SubjectPublicKeyInfo<'a>
sourceimpl<'a> DecodeValue<'a> for SubjectPublicKeyInfo<'a>
impl<'a> DecodeValue<'a> for SubjectPublicKeyInfo<'a>
sourcefn decode_value<R>(
reader: &mut R,
header: Header
) -> Result<SubjectPublicKeyInfo<'a>, Error> where
R: Reader<'a>,
fn decode_value<R>(
reader: &mut R,
header: Header
) -> Result<SubjectPublicKeyInfo<'a>, Error> where
R: Reader<'a>,
Attempt to decode this message using the provided Reader
.
sourceimpl<'a> PartialEq<SubjectPublicKeyInfo<'a>> for SubjectPublicKeyInfo<'a>
impl<'a> PartialEq<SubjectPublicKeyInfo<'a>> for SubjectPublicKeyInfo<'a>
sourcefn eq(&self, other: &SubjectPublicKeyInfo<'a>) -> bool
fn eq(&self, other: &SubjectPublicKeyInfo<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SubjectPublicKeyInfo<'a>) -> bool
fn ne(&self, other: &SubjectPublicKeyInfo<'a>) -> bool
This method tests for !=
.
sourceimpl<'_> PemLabel for SubjectPublicKeyInfo<'_>
impl<'_> PemLabel for SubjectPublicKeyInfo<'_>
sourceimpl<'a> Sequence<'a> for SubjectPublicKeyInfo<'a>
impl<'a> Sequence<'a> for SubjectPublicKeyInfo<'a>
sourceimpl<'_, '_> TryFrom<&'_ SubjectPublicKeyInfo<'_>> for Document
impl<'_, '_> TryFrom<&'_ SubjectPublicKeyInfo<'_>> for Document
sourceimpl<'_> TryFrom<SubjectPublicKeyInfo<'_>> for Document
impl<'_> TryFrom<SubjectPublicKeyInfo<'_>> for Document
sourceimpl<'_> ValueOrd for SubjectPublicKeyInfo<'_>
impl<'_> ValueOrd for SubjectPublicKeyInfo<'_>
impl<'a> Copy for SubjectPublicKeyInfo<'a>
impl<'a> Eq for SubjectPublicKeyInfo<'a>
impl<'a> StructuralEq for SubjectPublicKeyInfo<'a>
impl<'a> StructuralPartialEq for SubjectPublicKeyInfo<'a>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, T> Choice<'a> for T where
T: Decode<'a> + FixedTag,
impl<'a, T> Choice<'a> for T where
T: Decode<'a> + FixedTag,
sourcefn can_decode(tag: Tag) -> bool
fn can_decode(tag: Tag) -> bool
Is the provided Tag
decodable as a variant of this CHOICE
?
sourceimpl<'a, T> Decode<'a> for T where
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for T where
T: DecodeValue<'a> + FixedTag,
sourceimpl<T> DecodePem for T where
T: DecodeOwned + PemLabel,
impl<T> DecodePem for T where
T: DecodeOwned + PemLabel,
sourceimpl<T> DerOrd for T where
T: EncodeValue + ValueOrd + Tagged,
impl<T> DerOrd for T where
T: EncodeValue + ValueOrd + Tagged,
sourceimpl<T> Encode for T where
T: EncodeValue + Tagged,
impl<T> Encode for T where
T: EncodeValue + Tagged,
sourcefn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
sourcefn encode(&self, writer: &mut dyn Writer) -> Result<(), Error>
fn encode(&self, writer: &mut dyn Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
sourcefn encode_to_slice(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice containing the encoded message. Read more
sourceimpl<'a, M> EncodeValue for M where
M: Sequence<'a>,
impl<'a, M> EncodeValue for M where
M: Sequence<'a>,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more