Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753595AbcLKPai (ORCPT ); Sun, 11 Dec 2016 10:30:38 -0500 Received: from vps0.lunn.ch ([178.209.37.122]:51741 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753232AbcLKPah (ORCPT ); Sun, 11 Dec 2016 10:30:37 -0500 Date: Sun, 11 Dec 2016 16:30:27 +0100 From: Andrew Lunn To: "Jason A. Donenfeld" Cc: linux-mips@linux-mips.org, Netdev , LKML , Dan =?iso-8859-1?Q?L=FCdtke?= , Willy Tarreau , =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= , Hannes Frederic Sowa , WireGuard mailing list , Greg KH , Felix Fietkau , Jiri Benc , David Miller Subject: Re: Misalignment, MIPS, and ip_hdr(skb)->version Message-ID: <20161211153027.GD29761@lunn.ch> References: <095cac5b-b757-6f4a-e699-8eedf9ed7221@stressinduktion.org> <87vauvhwdu.fsf@alice.fifthhorseman.net> <20161211071501.GA32621@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 558 Lines: 12 > 3. Add 3 bytes of padding, set to zero, to the encrypted section just > before the IP header, marked for future use. > Pros: satisfies IETF mantras, can use those extra bits in the future > for interesting protocol extensions for authenticated peers. > Cons: lowers MTU, marginally more difficult to implement but still > probably just one or two lines of code. 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. Andrew