Struct SubjectPublicKeyInfo
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§
§impl<'a> Clone for SubjectPublicKeyInfo<'a>
impl<'a> Clone for SubjectPublicKeyInfo<'a>
§fn clone(&self) -> SubjectPublicKeyInfo<'a>
fn clone(&self) -> SubjectPublicKeyInfo<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<'a> Debug for SubjectPublicKeyInfo<'a>
impl<'a> Debug for SubjectPublicKeyInfo<'a>
§impl<'a> DecodeValue<'a> for SubjectPublicKeyInfo<'a>
impl<'a> DecodeValue<'a> for SubjectPublicKeyInfo<'a>
§fn 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
.§impl<'a> PartialEq for SubjectPublicKeyInfo<'a>
impl<'a> PartialEq for SubjectPublicKeyInfo<'a>
§impl PemLabel for SubjectPublicKeyInfo<'_>
impl PemLabel for SubjectPublicKeyInfo<'_>
§impl<'a> Sequence<'a> for SubjectPublicKeyInfo<'a>
impl<'a> Sequence<'a> for SubjectPublicKeyInfo<'a>
§impl<'a> TryFrom<&'a [u8]> for SubjectPublicKeyInfo<'a>
impl<'a> TryFrom<&'a [u8]> for SubjectPublicKeyInfo<'a>
§impl TryFrom<&SubjectPublicKeyInfo<'_>> for Document
impl TryFrom<&SubjectPublicKeyInfo<'_>> for Document
§impl TryFrom<SubjectPublicKeyInfo<'_>> for Document
impl TryFrom<SubjectPublicKeyInfo<'_>> for Document
§impl ValueOrd for SubjectPublicKeyInfo<'_>
impl ValueOrd for SubjectPublicKeyInfo<'_>
impl<'a> Copy for SubjectPublicKeyInfo<'a>
impl<'a> Eq for SubjectPublicKeyInfo<'a>
impl<'a> StructuralPartialEq for SubjectPublicKeyInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for SubjectPublicKeyInfo<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
Source§impl<T> DecodePem for Twhere
T: DecodeOwned + PemLabel,
impl<T> DecodePem for Twhere
T: DecodeOwned + PemLabel,
Source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
Source§fn 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.
Source§fn 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
.
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&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.