pub enum CipherSuite {
TlsAes128GcmSha256,
TlsAes256GcmSha384,
TlsChaCha20Poly1305Sha256,
}Expand description
Cipher suites supported by a CryptoProvider.
In this library the cipher suite prescribes the AEAD cipher, the hash function used throughout the TLS 1.3 key schedule, and the transcript hash.
TLS 1.3 cipher suites always pair one AEAD with one hash.
Variants§
TlsAes128GcmSha256
AES-128-GCM with SHA-256
TlsAes256GcmSha384
AES-256-GCM with SHA-384
TlsChaCha20Poly1305Sha256
ChaCha20-Poly1305 with SHA-256
Implementations§
Trait Implementations§
Source§impl Clone for CipherSuite
impl Clone for CipherSuite
Source§fn clone(&self) -> CipherSuite
fn clone(&self) -> CipherSuite
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 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 Freeze 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