Struct x509_parser::x509::AlgorithmIdentifier
source · [−]Expand description
Algorithm identifier
An algorithm identifier is defined by the following ASN.1 structure:
AlgorithmIdentifier ::= SEQUENCE { algorithm OBJECT IDENTIFIER, parameters ANY DEFINED BY algorithm OPTIONAL }
The algorithm identifier is used to identify a cryptographic algorithm. The OBJECT IDENTIFIER component identifies the algorithm (such as DSA with SHA-1). The contents of the optional parameters field will vary according to the algorithm identified.
Fields
algorithm: Oid<'a>
parameters: Option<Any<'a>>
Implementations
sourceimpl<'a> AlgorithmIdentifier<'a>
impl<'a> AlgorithmIdentifier<'a>
Trait Implementations
sourceimpl<'ber, 'a> CheckDerConstraints for AlgorithmIdentifier<'a> where
'ber: 'a,
impl<'ber, 'a> CheckDerConstraints for AlgorithmIdentifier<'a> where
'ber: 'a,
fn check_constraints(any: &Any<'_>) -> Result<()>
sourceimpl<'a> Clone for AlgorithmIdentifier<'a>
impl<'a> Clone for AlgorithmIdentifier<'a>
sourcefn clone(&self) -> AlgorithmIdentifier<'a>
fn clone(&self) -> AlgorithmIdentifier<'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 AlgorithmIdentifier<'a>
impl<'a> Debug for AlgorithmIdentifier<'a>
sourceimpl<'ber, 'a> FromDer<'ber, X509Error> for AlgorithmIdentifier<'a> where
'ber: 'a,
impl<'ber, 'a> FromDer<'ber, X509Error> for AlgorithmIdentifier<'a> where
'ber: 'a,
sourcefn from_der(bytes: &'ber [u8]) -> ParseResult<'ber, Self, X509Error>
fn from_der(bytes: &'ber [u8]) -> ParseResult<'ber, Self, X509Error>
Attempt to parse input bytes into a DER object (enforcing constraints)
sourceimpl<'a> PartialEq<AlgorithmIdentifier<'a>> for AlgorithmIdentifier<'a>
impl<'a> PartialEq<AlgorithmIdentifier<'a>> for AlgorithmIdentifier<'a>
sourcefn eq(&self, other: &AlgorithmIdentifier<'a>) -> bool
fn eq(&self, other: &AlgorithmIdentifier<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AlgorithmIdentifier<'a>) -> bool
fn ne(&self, other: &AlgorithmIdentifier<'a>) -> bool
This method tests for !=
.
sourceimpl<'ber, 'a> Tagged for AlgorithmIdentifier<'a>
impl<'ber, 'a> Tagged for AlgorithmIdentifier<'a>
sourceimpl<'a, 'b> TryFrom<&'b AlgorithmIdentifier<'a>> for SignatureAlgorithm<'a>
impl<'a, 'b> TryFrom<&'b AlgorithmIdentifier<'a>> for SignatureAlgorithm<'a>
sourceimpl<'ber, 'a> TryFrom<Any<'ber>> for AlgorithmIdentifier<'a> where
'ber: 'a,
impl<'ber, 'a> TryFrom<Any<'ber>> for AlgorithmIdentifier<'a> where
'ber: 'a,
impl<'a> StructuralPartialEq for AlgorithmIdentifier<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for AlgorithmIdentifier<'a>
impl<'a> Send for AlgorithmIdentifier<'a>
impl<'a> Sync for AlgorithmIdentifier<'a>
impl<'a> Unpin for AlgorithmIdentifier<'a>
impl<'a> UnwindSafe for AlgorithmIdentifier<'a>
Blanket Implementations
sourceimpl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
sourceimpl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
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<T> Choice for T where
T: Tagged,
impl<T> Choice for T where
T: Tagged,
sourcefn can_decode(tag: Tag) -> bool
fn can_decode(tag: Tag) -> bool
Is the provided Tag
decodable as a variant of this CHOICE
?