Commit 9d2c633
committed
feat: bypass SSL AEAD wrapper in
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`.RecordProtection
1 parent 0ea3df7 commit 9d2c633
1 file changed
Lines changed: 222 additions & 127 deletions
0 commit comments