#[non_exhaustive]pub enum SignatureScheme {
Ed25519,
EcdsaP256Sha256,
EcdsaP384Sha384,
RsaPkcs1Sha1,
RsaPkcs1Sha256,
RsaPkcs1Sha384,
RsaPkcs1Sha512,
}Expand description
Signature schemes currently used by DTLS.
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.
Ed25519
Ed25519.
EcdsaP256Sha256
ECDSA P-256 with SHA-256 and ASN.1 DER signatures.
EcdsaP384Sha384
ECDSA P-384 with SHA-384 and ASN.1 DER signatures.
RsaPkcs1Sha1
RSA PKCS#1 v1.5 with SHA-1, for legacy verification only.
RsaPkcs1Sha256
RSA PKCS#1 v1.5 with SHA-256.
RsaPkcs1Sha384
RSA PKCS#1 v1.5 with SHA-384.
RsaPkcs1Sha512
RSA PKCS#1 v1.5 with SHA-512.
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
impl Eq for SignatureScheme
Source§impl Hash for SignatureScheme
impl Hash for SignatureScheme
Source§impl PartialEq for SignatureScheme
impl PartialEq 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