Struct x509_parser::x509::AlgorithmIdentifier
source · pub struct AlgorithmIdentifier<'a> {
pub algorithm: Oid<'a>,
pub parameters: Option<Any<'a>>,
}
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§
source§impl<'a> AlgorithmIdentifier<'a>
impl<'a> AlgorithmIdentifier<'a>
Trait Implementations§
source§impl<'ber, 'a> CheckDerConstraints for AlgorithmIdentifier<'a>where
'ber: 'a,
impl<'ber, 'a> CheckDerConstraints for AlgorithmIdentifier<'a>where
'ber: 'a,
source§impl<'a> Clone for AlgorithmIdentifier<'a>
impl<'a> Clone for AlgorithmIdentifier<'a>
source§fn clone(&self) -> AlgorithmIdentifier<'a>
fn clone(&self) -> AlgorithmIdentifier<'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 moresource§impl<'a> Debug for AlgorithmIdentifier<'a>
impl<'a> Debug for AlgorithmIdentifier<'a>
source§impl<'ber, 'a> FromDer<'ber, X509Error> for AlgorithmIdentifier<'a>where
'ber: 'a,
impl<'ber, 'a> FromDer<'ber, X509Error> for AlgorithmIdentifier<'a>where
'ber: 'a,
source§impl<'a> PartialEq for AlgorithmIdentifier<'a>
impl<'a> PartialEq for AlgorithmIdentifier<'a>
source§impl<'ber, 'a> Tagged for AlgorithmIdentifier<'a>
impl<'ber, 'a> Tagged for AlgorithmIdentifier<'a>
source§impl<'a, 'b> TryFrom<&'b AlgorithmIdentifier<'a>> for SignatureAlgorithm<'a>
impl<'a, 'b> TryFrom<&'b AlgorithmIdentifier<'a>> for SignatureAlgorithm<'a>
source§impl<'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> Freeze for AlgorithmIdentifier<'a>
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§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
)