Skip to contentSkip to conversation

About compression

DISCUSSION Bzzzz 3 participants 4 messages Jul 31, 2017

lore
Share & tools
lore

Bzzzz

author
#0 lore raw

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

#1 lore raw

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

#2 lore raw
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
author
#3 lore raw
In reply to Jason A. Donenfeld
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