#[non_exhaustive]pub enum CipherSuite {
Tls13Aes256GcmSha384,
Tls13Aes128GcmSha256,
Tls13Chacha20Poly1305Sha256,
Tls12EcdheEcdsaAes256GcmSha384,
Tls12EcdheEcdsaAes128GcmSha256,
Tls12EcdheEcdsaChacha20Poly1305Sha256,
Tls12EcdheRsaAes256GcmSha384,
Tls12EcdheRsaAes128GcmSha256,
Tls12EcdheRsaChacha20Poly1305Sha256,
}Expand description
A TLS cipher suite.
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.
Tls13Aes256GcmSha384
TLS_AES_256_GCM_SHA384.
Tls13Aes128GcmSha256
TLS_AES_128_GCM_SHA256.
Tls13Chacha20Poly1305Sha256
TLS_CHACHA20_POLY1305_SHA256.
Tls12EcdheEcdsaAes256GcmSha384
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384.
Tls12EcdheEcdsaAes128GcmSha256
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256.
Tls12EcdheEcdsaChacha20Poly1305Sha256
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256.
Tls12EcdheRsaAes256GcmSha384
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384.
Tls12EcdheRsaAes128GcmSha256
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256.
Tls12EcdheRsaChacha20Poly1305Sha256
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256.
Implementations§
Source§impl CipherSuite
impl CipherSuite
Sourcepub const ALL: &'static [CipherSuite]
pub const ALL: &'static [CipherSuite]
Every cipher suite.
Sourcepub const fn signs_with(self, t: TlsSignatureScheme) -> bool
pub const fn signs_with(self, t: TlsSignatureScheme) -> bool
Whether a handshake under this suite can sign with t. A TLS 1.2 suite fixes the
authentication algorithm (ECDSA or EdDSA for EcdheEcdsa, RSA for EcdheRsa); a TLS 1.3
suite does not.
Sourcepub const fn version(self) -> TlsVersion
pub const fn version(self) -> TlsVersion
The TLS version the suite belongs to.
Trait Implementations§
Source§impl Clone for CipherSuite
impl Clone for CipherSuite
impl Copy for CipherSuite
Source§impl Debug for CipherSuite
impl Debug for CipherSuite
impl Eq for CipherSuite
Source§impl Hash for CipherSuite
impl Hash for CipherSuite
Source§impl PartialEq for CipherSuite
impl PartialEq for CipherSuite
impl StructuralPartialEq for CipherSuite
Auto Trait Implementations§
impl Forget for CipherSuite
impl Freeze for CipherSuite
impl Move for CipherSuite
impl RefUnwindSafe for CipherSuite
impl Send for CipherSuite
impl Sync for CipherSuite
impl Unpin for CipherSuite
impl UnsafeUnpin for CipherSuite
impl UnwindSafe for CipherSuite
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