pub struct Tls13CipherSuite {
pub common: CipherSuiteCommon,
pub hkdf_provider: &'static dyn Hkdf,
pub aead_alg: &'static dyn Tls13AeadAlgorithm,
pub quic: Option<&'static dyn Algorithm>,
}展开描述
TLS 1.3 密码套件 supported by rustls.
字段§
§common: CipherSuiteCommon共用的密码包字段。
hkdf_provider: &'static dyn HkdfHow 到 complete HKDF with the suite’s hash function.
If you have 一个 HKDF implementation, you should directly implement the crypto::tls13::Hkdf
trait (并 associated)。
If not, you can implement the crypto::hmac::Hmac trait (并 associated), 并 then use
crypto::tls13::HkdfUsingHmac。
aead_alg: &'static dyn Tls13AeadAlgorithmHow 到 produce 一个 MessageDecrypter 或 MessageEncrypter 从 raw 密钥材料。
§quic: Option<&'static dyn Algorithm>How 到 create QUIC header 并 record protection algorithms 用于 this 套件)。
Provide None 到 opt out of QUIC support 用于 this 套件)。 It will
not be offered in QUIC handshakes.
实现§
Source§impl Tls13CipherSuite
impl Tls13CipherSuite
Sourcepub fn can_resume_from(&self, prev: &'static Self) -> Option<&'static Self>
pub fn can_resume_from(&self, prev: &'static Self) -> Option<&'static Self>
Can 一个 session using suite self resume 从 suite prev?
Trait 实现§
Source§impl Debug for Tls13CipherSuite
impl Debug for Tls13CipherSuite
Source§impl From<&'static Tls13CipherSuite> for SupportedCipherSuite
impl From<&'static Tls13CipherSuite> for SupportedCipherSuite
Source§fn from(s: &'static Tls13CipherSuite) -> Self
fn from(s: &'static Tls13CipherSuite) -> Self
从输入类型转换为此类型。
自动 Trait 实现§
impl Freeze for Tls13CipherSuite
impl !RefUnwindSafe for Tls13CipherSuite
impl Send for Tls13CipherSuite
impl Sync for Tls13CipherSuite
impl Unpin for Tls13CipherSuite
impl UnsafeUnpin for Tls13CipherSuite
impl !UnwindSafe for Tls13CipherSuite
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. 更多信息