Skip to content

Commit 9d2c633

Browse files
committed
feat: bypass SSL AEAD wrapper in RecordProtection
Replace `SSLExp_AeadEncrypt`/`Decrypt` with direct `PK11_AEADOp` calls, removing the `ssl_AeadInner` overhead (`sslBuffer` allocation, `tls13_WriteNonce`) that fired on every QUIC packet. Key derivation is replicated using `SSL_HkdfExpandLabelWithMech` (already bound in `hp.rs`). Also extract `xor_nonce` as a shared free function, eliminating the duplicate nonce-XOR logic between `RecordProtection` and `Aead`.
1 parent 0ea3df7 commit 9d2c633

1 file changed

Lines changed: 222 additions & 127 deletions

File tree

0 commit comments

Comments
 (0)