#[non_exhaustive]pub enum ConnectionTrafficSecrets {
Aes128Gcm {
key: AeadKey,
iv: Iv,
},
Aes256Gcm {
key: AeadKey,
iv: Iv,
},
Chacha20Poly1305 {
key: AeadKey,
iv: Iv,
},
}展开描述
用于在 TLS 会话中加密/解密数据的密钥。
这些可用于在一个方向上为套接字配置 kTLS。 此 only other piece of information needed 是 sequence number, which is in ExtractedSecrets。
变体 (Non-exhaustive)§
This enum is marked as non-exhaustive
非穷尽枚举未来可能添加新的变体。因此,在对非穷尽枚举的变体进行模式匹配时,必须额外增加一个通配符分支以涵盖未来的新变体。
Aes128Gcm
Secrets 用于 the AES_128_GCM AEAD 算法
Aes256Gcm
Secrets 用于 the AES_256_GCM AEAD 算法
Chacha20Poly1305
Secrets 用于 the CHACHA20_POLY1305 AEAD 算法
自动 Trait 实现§
impl Freeze for ConnectionTrafficSecrets
impl RefUnwindSafe for ConnectionTrafficSecrets
impl Send for ConnectionTrafficSecrets
impl Sync for ConnectionTrafficSecrets
impl Unpin for ConnectionTrafficSecrets
impl UnsafeUnpin for ConnectionTrafficSecrets
impl UnwindSafe for ConnectionTrafficSecrets
Blanket 实现§
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 从 an owned value. 更多信息