Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932275AbcLKPhI (ORCPT ); Sun, 11 Dec 2016 10:37:08 -0500 Received: from frisell.zx2c4.com ([192.95.5.64]:39891 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932232AbcLKPhG (ORCPT ); Sun, 11 Dec 2016 10:37:06 -0500 MIME-Version: 1.0 In-Reply-To: <20161211153027.GD29761@lunn.ch> References: <095cac5b-b757-6f4a-e699-8eedf9ed7221@stressinduktion.org> <87vauvhwdu.fsf@alice.fifthhorseman.net> <20161211071501.GA32621@kroah.com> <20161211153027.GD29761@lunn.ch> From: "Jason A. Donenfeld" Date: Sun, 11 Dec 2016 16:37:00 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Misalignment, MIPS, and ip_hdr(skb)->version To: Andrew Lunn Cc: linux-mips@linux-mips.org, Netdev , LKML , =?UTF-8?Q?Dan_L=C3=BCdtke?= , Willy Tarreau , =?UTF-8?B?TcOlbnMgUnVsbGfDpXJk?= , Hannes Frederic Sowa , WireGuard mailing list , Greg KH , Felix Fietkau , Jiri Benc , David Miller Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 717 Lines: 14 On Sun, Dec 11, 2016 at 4:30 PM, Andrew Lunn 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.