#[non_exhaustive]pub enum SignatureAlgorithm {
Show 17 variants
DsaSha1,
DsaSha256,
HmacSha1,
HmacSha224,
HmacSha256,
HmacSha384,
HmacSha512,
RsaSha1,
RsaSha224,
RsaSha256,
RsaSha384,
RsaSha512,
EcdsaSha1,
EcdsaSha224,
EcdsaSha256,
EcdsaSha384,
EcdsaSha512,
}Expand description
Signature algorithms supported for signing and verification.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DsaSha1
DSA with SHA-1. Legacy algorithm disabled for signing by default.
DsaSha256
DSA with SHA-256 as defined by XMLDSig 1.1.
HmacSha1
HMAC with SHA-1. Legacy algorithm disabled for signing by default.
HmacSha224
HMAC with SHA-224.
HmacSha256
HMAC with SHA-256.
HmacSha384
HMAC with SHA-384.
HmacSha512
HMAC with SHA-512.
RsaSha1
RSA with SHA-1. Legacy algorithm disabled for signing by default.
RsaSha224
RSA with SHA-224.
RsaSha256
RSA with SHA-256 (most common in SAML).
RsaSha384
RSA with SHA-384.
RsaSha512
RSA with SHA-512.
EcdsaSha1
ECDSA with SHA-1; the key selects the elliptic curve.
EcdsaSha224
ECDSA with SHA-224; the key selects the elliptic curve.
EcdsaSha256
ECDSA with SHA-256; the key selects the elliptic curve.
EcdsaSha384
ECDSA with SHA-384; the key selects the elliptic curve.
EcdsaSha512
ECDSA with SHA-512; the key selects the elliptic curve.
Implementations§
Source§impl SignatureAlgorithm
impl SignatureAlgorithm
Sourcepub const fn hmac_output_bits(self) -> Option<usize>
pub const fn hmac_output_bits(self) -> Option<usize>
Return the full HMAC output width for HMAC algorithms.
Sourcepub fn signing_allowed(self) -> bool
pub fn signing_allowed(self) -> bool
Whether this algorithm is allowed for signing (not just verification).
Trait Implementations§
Source§impl Clone for SignatureAlgorithm
impl Clone for SignatureAlgorithm
Source§fn clone(&self) -> SignatureAlgorithm
fn clone(&self) -> SignatureAlgorithm
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more