#3302·rustls

F04: TLS 1.3 密钥更新发生在整个分段写入之后

作者: djc创建于 2026年9月30日更新于 2026年9月30日

fn provider(accelerated: bool) -> CryptoProvider { let mut provider = rustls_ring::DEFAULT_PROVIDER.clone(); let original = rustls_ring::cipher_suite::TLS13_AES_128_GCM_SHA256;

// Keep the shipped cryptography; a smaller conservative limit makes the
// per-record state transition observable with a short, bounded write.
let suite: &'static Tls13CipherSuite = Box::leak(Box::new(Tls13CipherSuite {
    common: CipherSuiteCommon {
        suite: original.common.suite,
        hash_provider: original.common.hash_provider,

…