From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: andrew@lunn.ch Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 15f25812 for ; Sun, 11 Dec 2016 15:24:49 +0000 (UTC) Received: from vps0.lunn.ch (vps0.lunn.ch [178.209.37.122]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id eac63ab0 for ; Sun, 11 Dec 2016 15:24:49 +0000 (UTC) Date: Sun, 11 Dec 2016 16:30:27 +0100 From: Andrew Lunn To: "Jason A. Donenfeld" 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 In-Reply-To: Cc: linux-mips@linux-mips.org, =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= , LKML , Jiri Benc , David Miller , Hannes Frederic Sowa , Netdev , Willy Tarreau , WireGuard mailing list , Felix Fietkau List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > 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