#[repr(i8)]pub enum SignatureAlgorithm {
ES256 = -7,
ES384 = -35,
ES512 = -36,
}
Expand description
Values from https://tools.ietf.org/html/rfc8152#section-8.1
Variants§
Implementations§
source§impl SignatureAlgorithm
impl SignatureAlgorithm
sourcepub fn key_length(&self) -> usize
pub fn key_length(&self) -> usize
Key length of the given signature algorithm
sourcepub fn suggested_message_digest(&self) -> MessageDigest
pub fn suggested_message_digest(&self) -> MessageDigest
Suggested cryptographic hash function given a signature algorithm
Trait Implementations§
source§impl Clone for SignatureAlgorithm
impl Clone for SignatureAlgorithm
source§fn clone(&self) -> SignatureAlgorithm
fn clone(&self) -> SignatureAlgorithm
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 Debug for SignatureAlgorithm
impl Debug for SignatureAlgorithm
source§impl<'de> Deserialize<'de> for SignatureAlgorithm
impl<'de> Deserialize<'de> for SignatureAlgorithm
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SignatureAlgorithm> for HeaderMap
impl From<SignatureAlgorithm> for HeaderMap
source§fn from(sig_alg: SignatureAlgorithm) -> Self
fn from(sig_alg: SignatureAlgorithm) -> Self
Converts to this type from the input type.
source§impl FromStr for SignatureAlgorithm
impl FromStr for SignatureAlgorithm
source§impl Serialize for SignatureAlgorithm
impl Serialize for SignatureAlgorithm
source§impl ToString for SignatureAlgorithm
impl ToString for SignatureAlgorithm
impl Copy for SignatureAlgorithm
Auto Trait Implementations§
impl Freeze for SignatureAlgorithm
impl RefUnwindSafe for SignatureAlgorithm
impl Send for SignatureAlgorithm
impl Sync for SignatureAlgorithm
impl Unpin for SignatureAlgorithm
impl UnwindSafe for SignatureAlgorithm
Blanket Implementations§
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