pub struct Compatibility(/* private fields */);
Expand description
Represents the compatibility of various TLS cipher suites with kernel TLS.
Implementations§
Source§impl Compatibility
impl Compatibility
Sourcepub const fn aes_128_gcm(&self) -> bool
pub const fn aes_128_gcm(&self) -> bool
AES-128-GCM cipher suite support.
Bits: 0..1
Sourcepub const fn with_aes_128_gcm_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_aes_128_gcm_checked(self, value: bool) -> Result<Self, ()>
AES-128-GCM cipher suite support.
Bits: 0..1
Sourcepub const fn with_aes_128_gcm(self, value: bool) -> Self
pub const fn with_aes_128_gcm(self, value: bool) -> Self
AES-128-GCM cipher suite support.
Bits: 0..1
Sourcepub const fn set_aes_128_gcm(&mut self, value: bool)
pub const fn set_aes_128_gcm(&mut self, value: bool)
AES-128-GCM cipher suite support.
Bits: 0..1
Sourcepub const fn set_aes_128_gcm_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_aes_128_gcm_checked(&mut self, value: bool) -> Result<(), ()>
AES-128-GCM cipher suite support.
Bits: 0..1
Sourcepub const fn aes_256_gcm(&self) -> bool
pub const fn aes_256_gcm(&self) -> bool
AES-256-GCM cipher suite support.
Bits: 1..2
Sourcepub const fn with_aes_256_gcm_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_aes_256_gcm_checked(self, value: bool) -> Result<Self, ()>
AES-256-GCM cipher suite support.
Bits: 1..2
Sourcepub const fn with_aes_256_gcm(self, value: bool) -> Self
pub const fn with_aes_256_gcm(self, value: bool) -> Self
AES-256-GCM cipher suite support.
Bits: 1..2
Sourcepub const fn set_aes_256_gcm(&mut self, value: bool)
pub const fn set_aes_256_gcm(&mut self, value: bool)
AES-256-GCM cipher suite support.
Bits: 1..2
Sourcepub const fn set_aes_256_gcm_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_aes_256_gcm_checked(&mut self, value: bool) -> Result<(), ()>
AES-256-GCM cipher suite support.
Bits: 1..2
Sourcepub const fn chacha20_poly1305(&self) -> bool
pub const fn chacha20_poly1305(&self) -> bool
ChaCha20-Poly1305 cipher suite support.
Bits: 2..3
Sourcepub const fn with_chacha20_poly1305_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_chacha20_poly1305_checked( self, value: bool, ) -> Result<Self, ()>
ChaCha20-Poly1305 cipher suite support.
Bits: 2..3
Sourcepub const fn with_chacha20_poly1305(self, value: bool) -> Self
pub const fn with_chacha20_poly1305(self, value: bool) -> Self
ChaCha20-Poly1305 cipher suite support.
Bits: 2..3
Sourcepub const fn set_chacha20_poly1305(&mut self, value: bool)
pub const fn set_chacha20_poly1305(&mut self, value: bool)
ChaCha20-Poly1305 cipher suite support.
Bits: 2..3
Sourcepub const fn set_chacha20_poly1305_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_chacha20_poly1305_checked( &mut self, value: bool, ) -> Result<(), ()>
ChaCha20-Poly1305 cipher suite support.
Bits: 2..3
Sourcepub const fn aes_128_ccm(&self) -> bool
pub const fn aes_128_ccm(&self) -> bool
AES-128-CCM cipher suite support.
Bits: 3..4
Sourcepub const fn with_aes_128_ccm_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_aes_128_ccm_checked(self, value: bool) -> Result<Self, ()>
AES-128-CCM cipher suite support.
Bits: 3..4
Sourcepub const fn with_aes_128_ccm(self, value: bool) -> Self
pub const fn with_aes_128_ccm(self, value: bool) -> Self
AES-128-CCM cipher suite support.
Bits: 3..4
Sourcepub const fn set_aes_128_ccm(&mut self, value: bool)
pub const fn set_aes_128_ccm(&mut self, value: bool)
AES-128-CCM cipher suite support.
Bits: 3..4
Sourcepub const fn set_aes_128_ccm_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_aes_128_ccm_checked(&mut self, value: bool) -> Result<(), ()>
AES-128-CCM cipher suite support.
Bits: 3..4
Sourcepub const fn with_sm4_gcm_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_sm4_gcm_checked(self, value: bool) -> Result<Self, ()>
SM4-GCM cipher suite support.
Bits: 4..5
Sourcepub const fn with_sm4_gcm(self, value: bool) -> Self
pub const fn with_sm4_gcm(self, value: bool) -> Self
SM4-GCM cipher suite support.
Bits: 4..5
Sourcepub const fn set_sm4_gcm(&mut self, value: bool)
pub const fn set_sm4_gcm(&mut self, value: bool)
SM4-GCM cipher suite support.
Bits: 4..5
Sourcepub const fn set_sm4_gcm_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_sm4_gcm_checked(&mut self, value: bool) -> Result<(), ()>
SM4-GCM cipher suite support.
Bits: 4..5
Sourcepub const fn with_sm4_ccm_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_sm4_ccm_checked(self, value: bool) -> Result<Self, ()>
SM4-CCM cipher suite support.
Bits: 5..6
Sourcepub const fn with_sm4_ccm(self, value: bool) -> Self
pub const fn with_sm4_ccm(self, value: bool) -> Self
SM4-CCM cipher suite support.
Bits: 5..6
Sourcepub const fn set_sm4_ccm(&mut self, value: bool)
pub const fn set_sm4_ccm(&mut self, value: bool)
SM4-CCM cipher suite support.
Bits: 5..6
Sourcepub const fn set_sm4_ccm_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_sm4_ccm_checked(&mut self, value: bool) -> Result<(), ()>
SM4-CCM cipher suite support.
Bits: 5..6
Sourcepub const fn aria_128_gcm(&self) -> bool
pub const fn aria_128_gcm(&self) -> bool
ARIA-128-GCM cipher suite support.
Bits: 6..7
Sourcepub const fn with_aria_128_gcm_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_aria_128_gcm_checked(self, value: bool) -> Result<Self, ()>
ARIA-128-GCM cipher suite support.
Bits: 6..7
Sourcepub const fn with_aria_128_gcm(self, value: bool) -> Self
pub const fn with_aria_128_gcm(self, value: bool) -> Self
ARIA-128-GCM cipher suite support.
Bits: 6..7
Sourcepub const fn set_aria_128_gcm(&mut self, value: bool)
pub const fn set_aria_128_gcm(&mut self, value: bool)
ARIA-128-GCM cipher suite support.
Bits: 6..7
Sourcepub const fn set_aria_128_gcm_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_aria_128_gcm_checked(&mut self, value: bool) -> Result<(), ()>
ARIA-128-GCM cipher suite support.
Bits: 6..7
Sourcepub const fn aria_256_gcm(&self) -> bool
pub const fn aria_256_gcm(&self) -> bool
ARIA-256-GCM cipher suite support.
Bits: 7..8
Sourcepub const fn with_aria_256_gcm_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_aria_256_gcm_checked(self, value: bool) -> Result<Self, ()>
ARIA-256-GCM cipher suite support.
Bits: 7..8
Sourcepub const fn with_aria_256_gcm(self, value: bool) -> Self
pub const fn with_aria_256_gcm(self, value: bool) -> Self
ARIA-256-GCM cipher suite support.
Bits: 7..8
Sourcepub const fn set_aria_256_gcm(&mut self, value: bool)
pub const fn set_aria_256_gcm(&mut self, value: bool)
ARIA-256-GCM cipher suite support.
Bits: 7..8
Source§impl Compatibility
impl Compatibility
Sourcepub const fn is_unsupported(&self) -> bool
pub const fn is_unsupported(&self) -> bool
Returns whether no cipher suites are supported (the corresponding TLS version is unsupported).
Trait Implementations§
Source§impl Clone for Compatibility
impl Clone for Compatibility
Source§fn clone(&self) -> Compatibility
fn clone(&self) -> Compatibility
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more