Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3388856imu; Mon, 19 Nov 2018 15:24:54 -0800 (PST) X-Google-Smtp-Source: AJdET5fuZ+NUNkZz3XMGs85P9xZ1303CHRjn8GtELfK5vqbrnYXZNZOPKiSlz1Zu2PaCz6Mrw6pk X-Received: by 2002:a17:902:b701:: with SMTP id d1-v6mr23311608pls.29.1542669894699; Mon, 19 Nov 2018 15:24:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542669894; cv=none; d=google.com; s=arc-20160816; b=ytjndAK6npX4Nv2dv/I6fzfH6b7ZJDxG1Ip84cLU14r6qkFFfvvxFBCjQWtRZntjr7 zPNRLN9o56i+/IJyU36XceNFBE9F4eaovCAdJNcTECipRsACQBJWW/pS5hofvAvcqxO1 gA1339ryS758pyNkLOS4Z8o5WVwJclB/fECwfs1NaBndgw4xF4oXyTsTZ0L4PQ8lwF7S 46YA7dOe/01vvArWvQLmapoFxb0ToGy7qECGL0FwSRQjYJ74wJSkLRqaLNFQ3ifmHaPc afElvu8Pgtf1nAgBneTjBfAAHAtw8eWeYYnfd6Z0aHzmmaPih3tGXmti7nSApeqdkUSi dAJQ== 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=G2FjC4KC0lb68xMk2AjEKdcC2Wp5vsgzSog3yxkuq6k=; b=yl3/eRLRKIDa5OrxUBUD2BbkDTe7fNtmbTJMA5MifOB3W10m5uGkkqUFT3Y+LU2Fb/ nv4kk/WM1tRCwtxBUJYZaRaljSm8ARUM72pSqevxYL4eucoEFczNZhri18TUNX9QsWu6 E9ncAuprIX95h04TYuYZsjOHKRidf6vkdb3nJoYaBKEsD+ihJ8W9apkyMpKtyryK7MmT YVU9Xg7e99lXNqFjYK+8O56PDHP78p3BRhDvrucRJnmpbxJk1Hiw5ywzhwKtCdqKxxt/ CzzWJWDUbucipqceAW9wj2oIcAoNJL3/SKUByGF3ju5ZPqJgc7vOdNaqakMHmFxaNDGE tEIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dF3y11dQ; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12-v6si41761963pla.351.2018.11.19.15.24.39; Mon, 19 Nov 2018 15:24:54 -0800 (PST) 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=@kernel.org header.s=default header.b=dF3y11dQ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731170AbeKTJtu (ORCPT + 99 others); Tue, 20 Nov 2018 04:49:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:55466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725722AbeKTJtu (ORCPT ); Tue, 20 Nov 2018 04:49:50 -0500 Received: from gmail.com (unknown [104.132.1.85]) (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 5432120851; Mon, 19 Nov 2018 23:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542669827; bh=jhrCp8fi3OKd2yUxusOW414hCEPKHHo0yjzqTZhz6Xo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dF3y11dQ/pwip/joRv2t2HZa/RzTe3nQRGDkLRXaDBnKEdqDaOXsFdInRJDdLNdpa PJ/ZXAwSm5yyDGO8Z9VsnSN2L8wPmcbXAWUoDh1+AFydPeth0JQ+Hi/AyBfogaelai /K2li+ELVT8UBE2zTjOSa3yDFC4RyB1LCGOFNpCE= Date: Mon, 19 Nov 2018 15:23:45 -0800 From: Eric Biggers To: "Jason A. Donenfeld" Cc: Herbert Xu , Ard Biesheuvel , Linux Crypto Mailing List , linux-fscrypt@vger.kernel.org, linux-arm-kernel@lists.infradead.org, LKML , Paul Crowley , Greg Kaiser , Samuel Neves , Tomer Ashur Subject: Re: [RFC PATCH] zinc chacha20 generic implementation using crypto API code Message-ID: <20181119232345.GC258711@gmail.com> References: <20181105232526.173947-11-ebiggers@kernel.org> <20181112185816.GA8663@gmail.com> <20181116060227.hwu4igi6bp26ddpi@gondor.apana.org.au> <20181117001718.GA175522@gmail.com> <20181119052451.qttzfgcm4hvbdc4u@gondor.apana.org.au> <20181119225414.GB258711@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 20, 2018 at 12:15:17AM +0100, Jason A. Donenfeld wrote: > Hi Eric, > > On Mon, Nov 19, 2018 at 11:54 PM Eric Biggers wrote: > > Will v9 include a documentation file for Zinc in Documentation/crypto/? > > That's been suggested several times. > > I had started writing that there, but then thought that the requested > information could go in the commit message instead. But I'm guessing > you're asking again now because you poked into the repo and didn't > find the Documentation/, so presumably you still want it. I can > reorganize the presentation of that to be more suitable for > Documentation/, and I'll have that for v9. > It's much better to have the documentation in a permanent location. > > I'd still prefer to see the conversion patches included. Skipping them would be > > kicking the can down the road and avoiding issues that will need to be addressed > > anyway. Like you, I don't want a "half-baked concoction that will be maybe > > possibly be replaced 'later'" :-) > > Okay, fair enough. Will do. > > > Either way though, it would make things much easier if you at least named the > > files, structures, constants, etc. "ChaCha" rather than "ChaCha20" from the > > start where appropriate. For an example, see the commit "crypto: chacha - > > prepare for supporting non-20-round variants" on my "adiantum-zinc" branch: > > https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/commit/?h=adiantum-zinc&id=754af8d7d39f31238114426e39786c84d7cc0f98 > > Then the actual introduction of the 12-round variant is much less noisy. > > That's a good idea. I'll do it like that. I'll likely order it as what > we have now (renamed to omit the 20), and then put the 12 stuff on top > of that, so it's easier to see what's changed in the process. I > noticed in that branch, you didn't port the assembly to support fewer > rounds. Shall I follow suite, and then expect patches from you later > doing that? Or were you expecting me to also port the architecture > implementations to chacha12 as well? > I actually did add ChaCha12 support to most of the Zinc assembly in "[WIP] crypto: assembly support for ChaCha12" (https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/commit/?h=adiantum-zinc&id=0a7787a515a977e11b680f1752b430ca1744e399). But I skipped AVX-512 and MIPS since I didn't have a way to test those yet, and I haven't ported the changes to your new perl scripts yet. - Eric