Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp896478ybn; Wed, 2 Oct 2019 07:53:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMOu4zWW0G7fIiKvyv2mHGgNVlWi24CaUe6JRlLk5ab0ZpArA+apEyBCkF+F7jzWfzQMfw X-Received: by 2002:a17:907:20e4:: with SMTP id rh4mr3379819ejb.59.1570028018142; Wed, 02 Oct 2019 07:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570028018; cv=none; d=google.com; s=arc-20160816; b=0bssp6SRAYTGupcDro4GMe2JqStXfPqVGglKFGQjupKl5et0MPoPGFAaPl5sC7IKdY QLI3lVhVZVc3kSn8SJsPBOOdYJzAchWptcZwZR85UiHRJT/QC+NPPTYHXDve1cioCHGw 4uaG3jPXEmtXH7Odo6FblzoP1PnVdkCZsap5LrdWSe6CAECeo95wbaPi0Mi/XxJyboZa /D3e34PalCzL/CFCnGI8aby2ZrIHyI8fFXDNKTGeS/dkxURzYNB+7czPBQdwI+bO64sl NKeLqKhArnAXzoc1ahl7VH6ecPvdzeLKj3nj3AMvJtubMS16ug2kLxSbTTbmez6GXhPc am6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YSx9/LpU2CVajOS7ge3/9W3GaZs+PVq7GsYvhx2sUnY=; b=zkM1sL6sH+2yYsNHZnhbLSfTWnQaNrjX4H6NMRHKJMXR4UZJ+x2QzYiR4YpsV3jgyt olCnT3scjLuqHwAt/O6n8H1xgVrLz8Pl0+MJtKQs8p9rkX2DMJvyRdGGQIOgvuZXShh8 wyvg/TOHiuWr6O21NZTkoCTIFpucqeAfLjAbfgj8tROPOg1BSEJWAvHA3agM5TfzfM7N GXBSXQ2ixUvhLjlVyopOJXSj2r6HV6CFB8FxXxwAn4H5l0ZsRjUSqX1qZcd8NDxE/1NF fZ0tkPo4g+yYVmqxLc2CJyx6bVeXiINoW8piZEumu6Bd5IYPCnGbUYEdlBW7rrhTllse Opkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jggd4mpR; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 qh16si10732334ejb.349.2019.10.02.07.53.06; Wed, 02 Oct 2019 07:53:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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=@kernel.org header.s=default header.b=jggd4mpR; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728213AbfJBOaz (ORCPT + 99 others); Wed, 2 Oct 2019 10:30:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:43712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbfJBOay (ORCPT ); Wed, 2 Oct 2019 10:30:54 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CD3AD21783; Wed, 2 Oct 2019 14:30:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570026653; bh=ZYdzo0Px946IuNxwqPNu5QFnVbYhubUDkbwdLukdGbc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jggd4mpRQSRlnZNkoNRHkIADKII5FXJAxS09CRTobQ8Uj5N1xC0Db5BLPIehGn+wE 7ftmD7qLCVolKlXF3yNDVoGkELvj/u49LC/A0qYTj6aS/ciyuS5Li/9FWI7smWj+qx 6OqoUQOfdx7ei2WwhC5m1CxPhnnbbhZ3L5PhcdU8= Date: Wed, 2 Oct 2019 16:30:50 +0200 From: Greg KH To: Ard Biesheuvel Cc: linux-crypto@vger.kernel.org, Herbert Xu , David Miller , Linus Torvalds , "Jason A . Donenfeld" , Samuel Neves , Dan Carpenter , Arnd Bergmann , Eric Biggers , Andy Lutomirski , Will Deacon , Marc Zyngier , Catalin Marinas , Martin Willi , Peter Zijlstra , Josh Poimboeuf Subject: Re: [PATCH v2 01/20] crypto: chacha - move existing library code into lib/crypto Message-ID: <20191002143050.GA1743118@kroah.com> References: <20191002141713.31189-1-ard.biesheuvel@linaro.org> <20191002141713.31189-2-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191002141713.31189-2-ard.biesheuvel@linaro.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Oct 02, 2019 at 04:16:54PM +0200, Ard Biesheuvel wrote: > Move the existing shared ChaCha code into lib/crypto, and at the > same time, split the support header into a public version, and an > internal version that is only intended for consumption by crypto > implementations. > > At the same time, refactor the generic implementation so it only gets > exposed as the chacha_crypt() library function if the architecture does > not override it with its own implementation, potentially falling back > to the generic routine if needed. That's a _lot_ to do all in one patch. And you are saying _what_ you are doing, but not _why_. Why move all this around and do these changes? What's wrong with the code as-is in the current location? Is all of the crc and other "crypto" code going to be moved into lib/crypto/ as well? thanks, greg k-h