s2n-quic
s2n-quic copied to clipboard
Implement blinding for alerts
To avoid leaking timing information when alerts are sent, we should probably implement some kind of error blinding. For example, S2N-TLS waits for a random period of time when a connection is closed before sending any alerts: https://github.com/aws/s2n-tls/blob/main/tls/s2n_connection.c#L1187-L1207
The place to do this would be in the close sender.
Right now we're setting transmission immediately
https://github.com/awslabs/s2n-quic/blob/7b872e70f044ecc89d37a2ebc0290c3cb9ea04f2/quic/s2n-quic-transport/src/connection/close_sender.rs#L34
It would be better to set it after a timer expiration