[−][src]Enum pkcs8::AlgorithmParameters
The parameters
field of AlgorithmIdentifier
.
This is an algorithm-defined ANY
field. We presently support OIDs
(as used by id-ecPublicKey
) and ASN.1 NULL
for RSA as required by
RFC 3279 Section 2.3.1.
This enum is marked as non_exhaustive
to potentially support other
algorithm-dependent data types in the future.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ASN.1 NULL value
Oid(ObjectIdentifier)
ObjectIdentifier
that names a sub-algorithm
Implementations
impl AlgorithmParameters
[src]
pub fn oid(self) -> Option<ObjectIdentifier>
[src]
Get the OID value if applicable
pub fn is_null(self) -> bool
[src]
Is this parameter value NULL?
pub fn is_oid(self) -> bool
[src]
Is this parameter value an OID?
Trait Implementations
impl Clone for AlgorithmParameters
[src]
pub fn clone(&self) -> AlgorithmParameters
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AlgorithmParameters
[src]
impl Debug for AlgorithmParameters
[src]
impl Encodable for AlgorithmParameters
[src]
pub fn encoded_len(&self) -> Result<Length>
[src]
pub fn encode(&self, encoder: &mut Encoder<'_>) -> Result<()>
[src]
pub fn encode_to_slice(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
[src]
pub fn encode_to_vec(&self, buf: &mut Vec<u8, Global>) -> Result<Length, Error>
[src]
pub fn to_vec(&self) -> Result<Vec<u8, Global>, Error>
[src]
impl Eq for AlgorithmParameters
[src]
impl From<Null> for AlgorithmParameters
[src]
pub fn from(_: Null) -> AlgorithmParameters
[src]
impl From<ObjectIdentifier> for AlgorithmParameters
[src]
pub fn from(oid: ObjectIdentifier) -> AlgorithmParameters
[src]
impl PartialEq<AlgorithmParameters> for AlgorithmParameters
[src]
pub fn eq(&self, other: &AlgorithmParameters) -> bool
[src]
pub fn ne(&self, other: &AlgorithmParameters) -> bool
[src]
impl StructuralEq for AlgorithmParameters
[src]
impl StructuralPartialEq for AlgorithmParameters
[src]
impl<'_> TryFrom<Any<'_>> for AlgorithmParameters
[src]
Auto Trait Implementations
impl RefUnwindSafe for AlgorithmParameters
[src]
impl Send for AlgorithmParameters
[src]
impl Sync for AlgorithmParameters
[src]
impl Unpin for AlgorithmParameters
[src]
impl UnwindSafe for AlgorithmParameters
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> Decodable<'a> for T where
T: TryFrom<Any<'a>, Error = Error>,
[src]
T: TryFrom<Any<'a>, Error = Error>,
pub fn decode(decoder: &mut Decoder<'a>) -> Result<T, Error>
[src]
pub fn from_bytes(bytes: &'a [u8]) -> Result<Self, Error>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,