Re: Misalignment, MIPS, and ip_hdr(skb)->version

From: Jason A. Donenfeld
Date: Sun Dec 11 2016 - 10:37:11 EST


On Sun, Dec 11, 2016 at 4:30 PM, Andrew Lunn <andrew@xxxxxxx> wrote:
> I'm not a crypto expert, but does this not give you a helping hand in
> breaking the crypto? You know the plain text value of these bytes, and
> where they are in the encrypted text.

You also know with some probability that there's going to be an IP
header and a TCP header, each with predictable fields. Maybe you're
reasonably certain there's an HTTP header in there too. Gasp! But fear
not...

Symmetric ciphers are generally not considered secure if they fall to
what's called a "known plaintext attack". Fortunately, modern ciphers
like AES and ChaCha20 and most others that you're aware of are
generally believed to be secure against KPA.