Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3527068imm; Fri, 19 Oct 2018 12:06:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV63akZyJ6UzRYUIPNAOECtd/w5CYKyl4u35G2vx0MxPNufBvE69YRUjDVy35asCAcTXRUhA/ X-Received: by 2002:a62:898d:: with SMTP id n13-v6mr36195339pfk.57.1539975985256; Fri, 19 Oct 2018 12:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539975985; cv=none; d=google.com; s=arc-20160816; b=nt7LmVCzyL+Xtwg977wBMoJSfE3QEoj5b01m8VBQexF11CwgYT3at6/dHRjJMPwilq bVuyB8+118NRcSLqW4uL/PTdIOpGEc5U7nWOKIOUf3huZGsgDlkm7XqqM/Q5s85f4jAg ZmZcxwgq2MiCnM0+N83JQxl87ovXBftrzBn4EnsmEEJEuwSlGRVh2HP716ravOf/eZCC 6ztF8kIQ7UZBwz6yxt0M2vk/B3imbYjm52kHh1HwAVv8e7ORo/FuT2GJwQgunGj1Wavw dc09yALZsK8jnIwBouSlsiBRRjf1FSy4LiisPO2c+uzhwAXgIcDp20tB1WgqKvjItiTp Q/AA== 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=+S4IfQNHWoFuM/8JWfSBVT9I5TbJmEjAUCHXovKQjCU=; b=Mzjgs2P565qQkiRI61/am/3zGeW89mFMZEp2fXlH3h5yoXwYEkJqG5nFwez2nf0yah 8sEmXDVXB8bgL/mAhxUmaaxkHfDFbdLgX40cVBHILTkE8viV8lO06XSbvXu8oS3aBQb1 nwdZv00Ln9Fp6k69Ji50pUaVCmXocigYgeIQq+LfzjLcjDCvN9cYgKEwLycOVLO/OZgl G8h0HsTBSFopivHDTRR2S4QjLi/+Y+KL85MzZnPlj38sFhz8StxR2seNos1RcrsY560E cblhRjsc9ITQnYvYT7ATlmqxicUPphnULrfJjWOp2JSMfw3r3f+D60H7feSHTr1uIzsd crgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0CwEw6or; 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 y6-v6si25722421pge.215.2018.10.19.12.06.09; Fri, 19 Oct 2018 12:06:25 -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=@kernel.org header.s=default header.b=0CwEw6or; 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 S1727824AbeJTDLf (ORCPT + 99 others); Fri, 19 Oct 2018 23:11:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:55568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727526AbeJTDLf (ORCPT ); Fri, 19 Oct 2018 23:11:35 -0400 Received: from gmail.com (unknown [104.132.51.88]) (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 4AE682086E; Fri, 19 Oct 2018 19:04:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539975853; bh=DRxt030BYY7roAM2LtYdIUMtLdF6LdUESo5myW3RK40=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0CwEw6orflA0D8y/icKKigxh/hxGfDjcs4JVupopiN9TctHLmshCaf9U88VYV/pcl bRH5jqgXknnDqzOHWRy+tltMx8UOgkaDETAIxkvbA+jdWkPVrTCNwEwK+Etjkaxhg2 1wX4FpHHbGaFDL8yKG7y1TYk61Iz4rZ+WmxJpjAo= Date: Fri, 19 Oct 2018 12:04:11 -0700 From: Eric Biggers To: "Jason A. Donenfeld" Cc: Linux Crypto Mailing List , linux-fscrypt@vger.kernel.org, linux-arm-kernel@lists.infradead.org, LKML , Herbert Xu , Paul Crowley , Greg Kaiser , Michael Halcrow , Samuel Neves , Tomer Ashur Subject: Re: [RFC PATCH v2 00/12] crypto: Adiantum support Message-ID: <20181019190411.GB246441@gmail.com> References: <20181015175424.97147-1-ebiggers@kernel.org> 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 Hi Jason, On Fri, Oct 19, 2018 at 05:58:35PM +0200, Jason A. Donenfeld wrote: > Hello Eric, > > > As before, some of these patches conflict with the new "Zinc" crypto > > library. But I don't know when Zinc will be merged, so for now I've > > continued to base this patchset on the current 'cryptodev'. > > I'd appreciate it if you waited to merge this until you can rebase it > on top of Zinc. In fact, if you already want to build it on top of > Zinc, I'm happy to work with you on that in a shared repo or similar. > We can also hash out the details of that in person in Vancouver in a > few weeks. I think pushing this in before will create undesirable > churn for both of us. > I won't be at Plumbers, sorry! For if/when it's needed, I'll start a version of this based on Zinc. The basic requirements are that we need (1) xchacha12 and xchacha20 available as 'skciphers' in the crypto API, and (2) the poly1305_core functions (see patch 08/12). In principle, these can be implemented in Zinc. The Adiantum template and all the NHPoly1305 stuff will be the same either way. (Unless you'll want one or both of those moved to Zinc too. To be honest, even after your explanations I still don't have a clear idea of what is supposed to go in Zinc and what isn't...) However, for now I'm hesitant to completely abandon the current approach and bet the farm on Zinc. Zinc has a large scope and various controversies that haven't yet been fully resolved to everyone's satisfaction, including unclear licenses on some of the essential assembly files. It's not appropriate to grind kernel crypto development to grind a halt while everyone waits for Zinc. So if Zinc is ready, then it makes sense for it to go first; otherwise, it doesn't. It's not yet clear which is the case. Thanks, - Eric