Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3147586img; Mon, 25 Mar 2019 04:53:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAWFeX1k/3cUKMMKALCRogs0NHu5vIKNr7DupqD0wFEK+Lhc6HJktPJbVtsuysCvsOYNFg X-Received: by 2002:a17:902:bb0c:: with SMTP id l12mr25066347pls.108.1553514784522; Mon, 25 Mar 2019 04:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553514784; cv=none; d=google.com; s=arc-20160816; b=TdlKnDDfq1QuIb1+cB1RTU35ICt46QHyUCb+qOlatGgwKKAEzwZ8OU0VYINu8eAHPU TkX1/KVT1LbO+kGRtMlEKZk+0Vc/T5JvaWTWp36jKI9bKlJX7Xx/dI6YO5TlgFfb5VkE vvPXJcmWNcEikjLnLQ8K1FsmcI2TfHU6mpOwZUhrPGrID5IO1+WsW1hFSaCjwz/OAFqX sOYm8EV92mr32MtQfBygD/WQhtWhYxwzMX/rnwNvi8q1+6C5dh+DnHPSum4ioxKQYzgK 64TshAAL5kd7p+zpGt9JAbcy843Nn6PeyB9E94ctrU3+F2pXgHimEPrD1O4Hy6giBd24 2dmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date; bh=WFu/br3dQyaTCyhtUZ3RU1M0KVYU79ESCAOHXzGIbv4=; b=ddsATj2vWydI6DAWcXAJA4dUNjkJV9d+Ppj3EjNWNx3Ca6Rc3C1OwIUB8FUL0gGBAI 74MvRujQ7452NnNVYUN/h3C1EMF7eoqUG8dTRoa3m2ns6ZxOagYLmNwhz7rtB3NElggP 3JQXHRJaDuWtqJ63knE80eZgC4ootfExL3jfOEzk3Q9+rPcEoVdEZ9U4l1S16gU4tDk0 DoQelB766Nh2Fhewlf6attc5lEjXpZEva7CEOpSQQ0DtDEkw4KRIa/W3pZRl2IU1Sh4r 5EdVufYIu885RNil8wqrkYBxFcB5W/7YXP1VVKgjU818IshFXhcYKOD6NMscr+4Rp8X3 f/3A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11si1280810pla.370.2019.03.25.04.52.49; Mon, 25 Mar 2019 04:53:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730986AbfCYLwH (ORCPT + 99 others); Mon, 25 Mar 2019 07:52:07 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:51386 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730605AbfCYLwH (ORCPT ); Mon, 25 Mar 2019 07:52:07 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1h8O96-000159-O0; Mon, 25 Mar 2019 19:52:04 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1h8O8y-0000Ok-TE; Mon, 25 Mar 2019 19:51:56 +0800 Date: Mon, 25 Mar 2019 19:51:56 +0800 From: Herbert Xu To: "Jason A. Donenfeld" Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Jason@zx2c4.com, torvalds@linux-foundation.org, davem@davemloft.net, gregkh@linuxfoundation.org, ebiggers@kernel.org, ard.biesheuvel@linaro.org, samuel.c.p.neves@gmail.com Subject: Re: [PATCH net-next v9 00/19] WireGuard: Secure Network Tunnel Message-ID: <20190325115156.wj4verbfdd2rspo5@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190322071122.6677-1-Jason@zx2c4.com> X-Newsgroups: apana.lists.os.linux.cryptoapi,apana.lists.os.linux.kernel,apana.lists.os.linux.netdev Organization: Core User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jason A. Donenfeld wrote: > Changes v8->v9, along with who suggested it. > -------------------------------------------- > - [EVERYBODY] Zinc no longer ships generated assembly code. Rather, we now > bundle in the original perlasm generator for it. This is ongoing joint work > with Andy Polyakov upstream, so that the same .pl files can live in our tree > as well as in the CRYPTOGAMS tree. I personally find that the code required > to share this in both repositories to be a tiny bit ugly. I think there would > be some degree of an advantage to removing that and making the .pl > kernel-only, and then carefully tracking Andy's changes (as we already > do). Previous opinions on the list, though, were that there's also > significant advantage to being able to share the exact same code in both. > And I think there's a decent amount of wisdom in that too. Since that > appeared to be the prevailing view, and since it also has good reasons > arguments, we'll go with that for now. Thanks for the update. > - Following the Adiantum merge, the two commits that port the old crypto API > over to use Zinc have been removed from this series. We can certainly add > them back in at some point, but I thought it'd be favorable to at least > begin to receive some sign-offs on the Zinc-specific commits, now that > (hopefully all of) the previous feedback has been taken care of. The two > commits porting it over are fairly standalone as well, so that shouldn't > impact the ability to review this. For now those are living in the > jd/with-cryptoapi-port branch of kernel.org's zx2c4/linux.git tree. This > also allows us to move this all forward a little bit. 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. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt