Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp813812imm; Mon, 1 Oct 2018 20:17:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV63yz3wOqKC5ncCmrajVxTN5bhFu1B0M6FOrxgm0GdUxq5cuxTjmCqIqEbkIjhW9Qbhi84yd X-Received: by 2002:a62:de05:: with SMTP id h5-v6mr14237260pfg.258.1538450257904; Mon, 01 Oct 2018 20:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538450257; cv=none; d=google.com; s=arc-20160816; b=JP3kT5ZvbhzEVcvUyTsgKlesu1duCYr4/q56fF06Q8E8/D2Tas91X7JLacvpg58tHW oQB0hXPkBha1zzJjKUaxsNZfiknwVQ++1VgpTXD0E7YrKN1na0YoFWiCf2DEWhRDXMGi 7ikk2SyAiu4CmjR5bf3Dq4b66p2riBTcQ7uV6tXdcq1w5EQPDiIu5p3uYF0CKI5sC8y8 8JuwnjDaHbXZ3/kUAYaP3MnKpppsGSXn3hyy/YPd90nEcukVMxQu+mSMdctEH9HVmOAR Jz68Z9nYF+zqiToyZ93ZHLfvBVuYNXEQDhI+CrTXdUEx8MC+yaMogbxBf427Ao198StI 8p9A== 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=TABcIp/5gMbMW9FLkRFSo+1ZFZ7NuGLtVHhCbnXy/xY=; b=xAl6GHa3tLEbpa/a3MSzQieSjWeB8SDnaqGZ824yFhFaE2Q+hDuED4opB3bgH3+3lL 6orQ9Xpp/IfgRjBk0B2CidydooxP8v7nab9PvMAdyFH4Om3/f8RB+7UgbbJaXK28O8Fr cfUn8LjkL0vMxkenUvyNVOl7gORBvuYuHGietXv2FZEUhzMoOSrLfkxCQj/j7up3vhpp BaW9+v7UeT/naeSuh20D+577cSqG97/2DFblj+Z39v1dyADS+3rOi5s6w3u6PVNyjixV 5MazIjT14n+z7uEsv9rvyCNua6Aj3tOveWDC3UBtK29bLmTfX34B6psGjE2K9awE8ruY UKdg== 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 k91-v6si14941786pld.187.2018.10.01.20.17.23; Mon, 01 Oct 2018 20:17:37 -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 S1726726AbeJBJ4s (ORCPT + 99 others); Tue, 2 Oct 2018 05:56:48 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:49602 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbeJBJ4s (ORCPT ); Tue, 2 Oct 2018 05:56:48 -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 1g7BA3-0004wA-Sr; Tue, 02 Oct 2018 11:15:47 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1g7B9y-0002H9-UD; Tue, 02 Oct 2018 11:15:42 +0800 Date: Tue, 2 Oct 2018 11:15:42 +0800 From: Herbert Xu To: "Jason A. Donenfeld" Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-crypto@vger.kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org, Jason@zx2c4.com, sneves@dei.uc.pt, luto@kernel.org, jeanphilippe.aumasson@gmail.com Subject: Re: [PATCH net-next v6 03/23] zinc: ChaCha20 generic C implementation and selftest Message-ID: <20181002031542.dbxu44gvqrughlgw@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180925145622.29959-4-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: > This implements the ChaCha20 permutation as a single C statement, by way > of the comma operator, which the compiler is able to simplify > terrifically. > > Information: https://cr.yp.to/chacha.html > > Signed-off-by: Jason A. Donenfeld > Cc: Samuel Neves > Cc: Andy Lutomirski > Cc: Greg KH > Cc: Jean-Philippe Aumasson I don't have any problems with this interface. However, I'm very unhappy about the fact that this adds another copy of the chacha20 implementation to the kernel. Either this is better than the one that we already have or it isn't. So if it's better please replace the existing chacha20 C implementation with this or otherwise just adapt the existing implementation to this interface. If we're replacing the existing one then you can either replace it directly within this patch or in a subsequent patch but please do it in the same series because otherwise we could wind up with two implementations for years to come. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt