About compression
Hi Jason,
is there a way at this time (or do you intend to add it) to compress WG streams on the fly ? (something fast and quite light, such as eg: lz4)
Jean-Yves
Hi Jean-Yves,
No, not a chance. Compression is really better left for upper layers. I'm not sure I see the value in adding at layer 3. This is an especially contentious issue because of the history of complex and catastrophic interactions between compression and encryption (such as the CRIME and BREACH attacks against TLS).
What workload are you currently experiencing that would measurably benefit from having layer 3 compression?
Regards,
Jason
Quoted 5 lines · Jason A. Donenfeld
No, not a chance. Compression is really better left for upper layers. I'm not sure I see the value in adding at layer 3. This is an especially contentious issue because of the history of complex and catastrophic interactions between compression and encryption (such as the CRIME and BREACH attacks against TLS).
I just wanted to second this response. Jason's making absolutely the right choice here, since content-agnostic transports like wireguard have no way of knowing whether a given stream is a mixture of confidentiality-sensitive data and attacker-controlled data.
If your application layer knows that certain things can be safely compressed, it should do the compression itself.
--dkg
Quoted 3 lines · On Mon, 31 Jul 2017 18:10:39 +0200 "Jason A. Donenfeld" <[email protected]> wrote:
especially contentious issue because of the history of complex and catastrophic interactions between compression and encryption (such as the CRIME and BREACH attacks against TLS).
Hmm, it just made it much more apparent.
Recently, nsa dismissed the elliptic curve crypto, however, even if I'm not a mathematico-differencio-analyso-crypto god (but I compensate with huge premonitions;), something is telling me it's because they can't break it, compressed or not.
Quoted 2 lines
What workload are you currently experiencing that would measurably benefit from having layer 3 compression?
It was more a generic question, somewhat linked to cell phone data monthly quota, than something vital.
I take good note of your explanation and about what Daniel said, which is quite logical (doing app level compression.)
Thanks to the both of you.
JY