#[non_exhaustive]pub enum X509SignatureAlgorithm {
Dsa(DigestAlgorithm),
RsaPkcs1v15(DigestAlgorithm),
RsaPss {
digest: DigestAlgorithm,
mgf_digest: DigestAlgorithm,
salt_len: usize,
},
Ecdsa(DigestAlgorithm),
Ed25519,
}Expand description
Provider-neutral X.509 certificate and CRL signature parameters.
Variants (Non-exhaustive)§
This enum is marked as 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.
Dsa(DigestAlgorithm)
DSA with the selected message digest.
RsaPkcs1v15(DigestAlgorithm)
RSASSA-PKCS1-v1_5 with the selected message digest.
RsaPss
RSASSA-PSS with explicit RFC 4055 parameters.
Fields
§
digest: DigestAlgorithmMessage digest applied to the signed certificate data.
§
mgf_digest: DigestAlgorithmDigest used by MGF1.
Ecdsa(DigestAlgorithm)
ECDSA with the selected message digest; SPKI selects the curve.
Ed25519
Pure Ed25519 as specified by RFC 8410.
Implementations§
Trait Implementations§
Source§impl Clone for X509SignatureAlgorithm
impl Clone for X509SignatureAlgorithm
Source§fn clone(&self) -> X509SignatureAlgorithm
fn clone(&self) -> X509SignatureAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for X509SignatureAlgorithm
Source§impl Debug for X509SignatureAlgorithm
impl Debug for X509SignatureAlgorithm
impl Eq for X509SignatureAlgorithm
Source§impl PartialEq for X509SignatureAlgorithm
impl PartialEq for X509SignatureAlgorithm
impl StructuralPartialEq for X509SignatureAlgorithm
Auto Trait Implementations§
impl Freeze for X509SignatureAlgorithm
impl RefUnwindSafe for X509SignatureAlgorithm
impl Send for X509SignatureAlgorithm
impl Sync for X509SignatureAlgorithm
impl Unpin for X509SignatureAlgorithm
impl UnsafeUnpin for X509SignatureAlgorithm
impl UnwindSafe for X509SignatureAlgorithm
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