pub enum TlsSignatureScheme {
EcdsaNistp256Sha256,
EcdsaNistp384Sha384,
EcdsaNistp521Sha512,
Ed25519,
RsaPssSha256,
RsaPssSha384,
RsaPssSha512,
RsaPkcs1Sha256,
RsaPkcs1Sha384,
RsaPkcs1Sha512,
MlDsa87,
}Expand description
A TLS handshake signature scheme.
Variants§
EcdsaNistp256Sha256
ecdsa_secp256r1_sha256.
EcdsaNistp384Sha384
ecdsa_secp384r1_sha384.
EcdsaNistp521Sha512
ecdsa_secp521r1_sha512.
Ed25519
ed25519.
RsaPssSha256
rsa_pss_rsae_sha256.
RsaPssSha384
rsa_pss_rsae_sha384.
RsaPssSha512
rsa_pss_rsae_sha512.
RsaPkcs1Sha256
rsa_pkcs1_sha256.
RsaPkcs1Sha384
rsa_pkcs1_sha384.
RsaPkcs1Sha512
rsa_pkcs1_sha512.
MlDsa87
mldsa87.
Implementations§
Source§impl TlsSignatureScheme
impl TlsSignatureScheme
Sourcepub const ALL: [TlsSignatureScheme; 11]
pub const ALL: [TlsSignatureScheme; 11]
Every TLS signature scheme.
Sourcepub const fn usable_in(self, v: TlsVersion) -> bool
pub const fn usable_in(self, v: TlsVersion) -> bool
Whether a handshake at v can sign with this scheme. RFC 8446 §4.2.3 excludes RSA
PKCS#1 v1.5 from TLS 1.3 handshake signatures; ML-DSA is defined for TLS 1.3 only.
Sourcepub const fn preference(self) -> u8
pub const fn preference(self) -> u8
The scheme’s rank in the canonical order every profile lists its schemes in, and in which a backend carries a policy’s schemes: 0 first, one rank per scheme.
Trait Implementations§
Source§impl Clone for TlsSignatureScheme
impl Clone for TlsSignatureScheme
impl Copy for TlsSignatureScheme
Source§impl Debug for TlsSignatureScheme
impl Debug for TlsSignatureScheme
impl Eq for TlsSignatureScheme
Source§impl Hash for TlsSignatureScheme
impl Hash for TlsSignatureScheme
Source§impl PartialEq for TlsSignatureScheme
impl PartialEq for TlsSignatureScheme
impl StructuralPartialEq for TlsSignatureScheme
Auto Trait Implementations§
impl Freeze for TlsSignatureScheme
impl RefUnwindSafe for TlsSignatureScheme
impl Send for TlsSignatureScheme
impl Sync for TlsSignatureScheme
impl Unpin for TlsSignatureScheme
impl UnsafeUnpin for TlsSignatureScheme
impl UnwindSafe for TlsSignatureScheme
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