Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3151124img; Mon, 25 Mar 2019 04:58:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzl59vWHrEiU6/CSzNTsUFY00vYuCDdpRz4wtA/ULR4N3xaiEVj5tHHSxIlR+EMKueoxIlx X-Received: by 2002:a65:538e:: with SMTP id x14mr22373599pgq.79.1553515112479; Mon, 25 Mar 2019 04:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553515112; cv=none; d=google.com; s=arc-20160816; b=Ciy9iXsIMleqT3hWgBVqkAhkS15I3T3d5hKktOY+uRFSEEiPoopGIER3ZVpXKCb5Z9 XaDT7UdWpp3xVvIfxoV8hcjJyG7+Z9KiYtyg6yaucqM3aQ22ODKrgfG7FWIAPOiAzmVb JTMbiZY3ZttshziDmPqswUHOhTtvhFf93+ps0obzP++pMfu5MG9XwTdOzaAVqOS2yN0C l5xpN3Hu/GVoS8Tn3XdIQQ/V6ALtHNIexjMfmz/zDX5ebIcSp2QcDZO+EZNAfABH+21C JmojCzQl9AkX3a0mgTUL902Z2yk8Px5LQzzZuxrLFb6mZUZjycVW+H9kJhWerRRw04Zm Ogvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wRaFl+QoZJ584w0R6hM6hK/lE5ceKqBhEuJYfo+r0lE=; b=RwwizbWoybcue4yQnjklkVQGdkYeG6KKVQH1vGXFcUb8JTb4lDhkV0x+rgC3hO8t1C HnjRI6FY4N5eP5iBDi8ITaWVLCX4UNCOIpNcP2eOWfiib7s1wzHmd4TVXg0YQLkltYvP jY6jhmY8JvpkUSjlj4FYJMOfpnznKngWUbmao+lGFo7JOMKPAiZAm3o1qMFh/zgnHHwH BYfwsDYycEjfMombHbCTmYPWRJ3Tfd7HZa6BaH5Z3/QBMQO2u4/91SW93iYaqnCfDMEw Z8XhfbPRO7nJNqPsKyG7tPGe3Q3CXADAaFY8tDLJ8CcsohlZPFdBoSUb+J3djAFzshVO Wiew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=2yr4VexP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si14169749plp.260.2019.03.25.04.58.17; Mon, 25 Mar 2019 04:58:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=2yr4VexP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730837AbfCYL5i (ORCPT + 99 others); Mon, 25 Mar 2019 07:57:38 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:43551 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730730AbfCYL5f (ORCPT ); Mon, 25 Mar 2019 07:57:35 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 3409dd19; Mon, 25 Mar 2019 11:35:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=DBwobPcp+XLi0JlgbvkNQ17mcME=; b=2yr4Ve xPiz3LpBl2Bhgzo7jdpsaP1//wQjyutECetZ1BPl3xzFRQGrciVGNwzVBLaFdK7a 4DNxcgJ57h9zF5ebfQkd1ilzV0Um4H0rdhrRPd8MMlslVMWxo83eXYrLp97VwJu0 fIjDW6xI54faIoP8iXePRAPFmXnVpvi4885BI3j+7croJE5vlY43182yiAbO8eKH GHD9AlE/N3/VU6BLfJif8jOuzZDskQpe2RXORNqE+5QUZ1Ol2Tt7tnjYKlxY2y4r etUtfGoor7mfX2xKLfS2mjZiX2TvqRmIxTmnxC5ECN/BzTxyx324wNwpDx2E57tp aXj+cUKz+MY9K55w== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id f598297d (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 25 Mar 2019 11:35:25 +0000 (UTC) Received: by mail-oi1-f176.google.com with SMTP id i21so6661336oib.11; Mon, 25 Mar 2019 04:57:32 -0700 (PDT) X-Gm-Message-State: APjAAAWaho2e5zd2vKL4K08I13U9ihb+N4NXaALTzpPTkTMvY2e9FjiB EWHRy+CleSwjpW6IGLDglJH3keuAh0w+VBIWaDw= X-Received: by 2002:aca:61d6:: with SMTP id v205mr6056387oib.122.1553515052019; Mon, 25 Mar 2019 04:57:32 -0700 (PDT) MIME-Version: 1.0 References: <20190322071122.6677-1-Jason@zx2c4.com> <20190325115156.wj4verbfdd2rspo5@gondor.apana.org.au> In-Reply-To: <20190325115156.wj4verbfdd2rspo5@gondor.apana.org.au> From: "Jason A. Donenfeld" Date: Mon, 25 Mar 2019 12:57:20 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v9 00/19] WireGuard: Secure Network Tunnel To: Herbert Xu Cc: Linux Crypto Mailing List , LKML , Netdev , Linus Torvalds , David Miller , Greg Kroah-Hartman , Eric Biggers , Ard Biesheuvel , Samuel Neves Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Herbert, On Mon, Mar 25, 2019 at 12:52 PM Herbert Xu wrote: > Sorry but adding new implementations of chacha20/poly1305 without > removing the existing ones is not acceptable. I really think > we ought to separate the zinc interface from these new crypto > implementations. They have nothing to do with each other. > > As we've been stuck on this point for so long, let's get the > ball rolling by first merging just the zinc interface itself > with the existing chacha20/poly1305 code. Then we can replace > these implementations with your implementations without getting > bogged down by all these other discussions. > > AFAICS once we resolve Thomas's concerns with regards to the simd > patch, then we can merge the zinc interface right away and go from > there. I think we're slightly closer to being same page, but I haven't followed up here yet because I was waiting for something else first. Your previous patchset left out a few implementations and wasn't totally complete with regards to the glue code. I'm going to whip something up now that is Zinc, but where there's already an existing assembly implementation in the tree (i.e. Martin's code), it uses that instead of what I've been posting until now. Then, after that lands, I can post stand-alone patches for replacing the various implementations, and we can discuss those separately, alongside all the various discussion of verification and benchmarks and so forth. So, I'll have something to examine somewhat soon. Working on it now. Jason