#[repr(u16)]pub enum SignatureScheme {
EcdsaSecp256r1Sha256 = 1_027,
Ed25519 = 2_055,
RsaPkcs1Sha256 = 1_025,
RsaPssSha256 = 2_052,
}Expand description
TLS signature scheme identifier (RFC 8446 §4.2.3 SignatureScheme).
Variants§
EcdsaSecp256r1Sha256 = 1_027
ECDSA over NIST P-256 with SHA-256 (0x0403).
Ed25519 = 2_055
Ed25519 (0x0807).
RsaPkcs1Sha256 = 1_025
RSA PKCS#1 v1.5 with SHA-256 (0x0401).
RsaPssSha256 = 2_052
RSA-PSS with SHA-256 (0x0804).
Trait Implementations§
Source§impl Clone for SignatureScheme
impl Clone for SignatureScheme
Source§fn clone(&self) -> SignatureScheme
fn clone(&self) -> SignatureScheme
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 SignatureScheme
Source§impl Debug for SignatureScheme
impl Debug for SignatureScheme
Source§impl<'de> Deserialize<'de> for SignatureScheme
impl<'de> Deserialize<'de> for SignatureScheme
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
impl Eq for SignatureScheme
Source§impl PartialEq for SignatureScheme
impl PartialEq for SignatureScheme
Source§fn eq(&self, other: &SignatureScheme) -> bool
fn eq(&self, other: &SignatureScheme) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SignatureScheme
impl Serialize for SignatureScheme
impl StructuralPartialEq for SignatureScheme
Auto Trait Implementations§
impl Freeze for SignatureScheme
impl RefUnwindSafe for SignatureScheme
impl Send for SignatureScheme
impl Sync for SignatureScheme
impl Unpin for SignatureScheme
impl UnsafeUnpin for SignatureScheme
impl UnwindSafe for SignatureScheme
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