pub enum CryptoInfo {
AesGcm128(tls12_crypto_info_aes_gcm_128),
AesGcm256(tls12_crypto_info_aes_gcm_256),
AesCcm128(tls12_crypto_info_aes_ccm_128),
Chacha20Poly1305(tls12_crypto_info_chacha20_poly1305),
Sm4Gcm(tls12_crypto_info_sm4_gcm),
Sm4Ccm(tls12_crypto_info_sm4_ccm),
}Expand description
SOL_TLS crypto info.
This is a wrapper around the kernel structs.
Variants§
AesGcm128(tls12_crypto_info_aes_gcm_128)
AesGcm256(tls12_crypto_info_aes_gcm_256)
AesCcm128(tls12_crypto_info_aes_ccm_128)
Chacha20Poly1305(tls12_crypto_info_chacha20_poly1305)
Sm4Gcm(tls12_crypto_info_sm4_gcm)
Sm4Ccm(tls12_crypto_info_sm4_ccm)
Implementations§
Source§impl CryptoInfo
impl CryptoInfo
Source§impl CryptoInfo
impl CryptoInfo
Sourcepub fn from_rustls(
cipher_suite: SupportedCipherSuite,
(seq, secrets): (u64, ConnectionTrafficSecrets),
) -> Result<CryptoInfo, KtlsCompatibilityError>
pub fn from_rustls( cipher_suite: SupportedCipherSuite, (seq, secrets): (u64, ConnectionTrafficSecrets), ) -> Result<CryptoInfo, KtlsCompatibilityError>
Try to convert rustls cipher suite and secrets into a CryptoInfo.
Auto Trait Implementations§
impl Freeze for CryptoInfo
impl RefUnwindSafe for CryptoInfo
impl Send for CryptoInfo
impl Sync for CryptoInfo
impl Unpin for CryptoInfo
impl UnsafeUnpin for CryptoInfo
impl UnwindSafe for CryptoInfo
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