Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2495623ybe; Tue, 3 Sep 2019 13:53:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKlw10frsFEGnNzBACIOvwsIKQurKJD4H/o9LLdatd73A47kVOAUnKoOHdWHC2G8+k1BS4 X-Received: by 2002:a63:8ac2:: with SMTP id y185mr18062910pgd.11.1567544003759; Tue, 03 Sep 2019 13:53:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567544003; cv=none; d=google.com; s=arc-20160816; b=sXiI8PbG1Nwo3OYsvHwlCmpJF3ge59vuMdf0cKYWhdLSgzawsGP9Qd9soQKK+gQ9bf suw8nZV6ZABUBIuGCcOPn7C80iVMWqvbTli27VjDUmvfg3JuBgLe5rXzxUh6nrD+S5+h 7W9ZSBGSAp2SSjhGeS3BfAtwhjKjSX6HAmbQlwl3aIB51v+cke3eEYmaB4wcQ0EXidSs yPaSOZ5xg0KcXQH7oeDOLBpp92twEmRWkatSTcpSmkpljqQWVgvCzpkqydDlo2ucXhBL PyJHfw1NJgz3sGSxkcPVubOHmxUfYGUK0/Lxms63nOv4ijajWOrEPaAAq2lOCFdDj8jv IT2g== 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; bh=24d10ndx7ri295LqSoRy428gsqaF+IXWLoQ/ITCmRM4=; b=bTQtlp7ZXUMtXTviinwqzGHUEu/t4Mgdo1ePbXuCGshYdk8Q7PeWa47ONpBMZEmPjb Bmm/6nwIMuFyqLVe2yX12SzFARZ5sWy4e/EXoOpH/caWd+j+RtOsmdMY0BtB1ml76KQB Ly7BRCzlBCvnyKojHPNxd+SbzhFYfyZyyOl+PMA2N4+4hzvfBoCvm4JS8ePxlYnAgWeK Jc6l/W/+zuYbkzUwx+T/TcGr1PVZ+1lRknnwQHvH3HRX2J3saGURmGnZ6Ub4xFRXCE5O qJp6l9X0uaBSbWbGnqgtQvr+sSpoLkdYYfHXr9QDHA/yVJcfK4PC2RU+oq5YDbu8nTMh J4Zg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t184si15765863pgd.211.2019.09.03.13.53.00; Tue, 03 Sep 2019 13:53:23 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726925AbfICUva (ORCPT + 99 others); Tue, 3 Sep 2019 16:51:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48988 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbfICUva (ORCPT ); Tue, 3 Sep 2019 16:51:30 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 699CF8980EF; Tue, 3 Sep 2019 20:51:30 +0000 (UTC) Received: from localhost (unknown [10.18.25.174]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AB0D960126; Tue, 3 Sep 2019 20:51:27 +0000 (UTC) Date: Tue, 3 Sep 2019 16:51:26 -0400 From: Mike Snitzer To: Ard Biesheuvel Cc: "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Herbert Xu , Eric Biggers , linux-fscrypt@vger.kernel.org, Gilad Ben-Yossef , device-mapper development , Milan Broz Subject: Re: [PATCH v13 5/6] md: dm-crypt: switch to ESSIV crypto API template Message-ID: <20190903205126.GA13753@redhat.com> References: <20190819141738.1231-1-ard.biesheuvel@linaro.org> <20190819141738.1231-6-ard.biesheuvel@linaro.org> <20190903185537.GC13472@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.67]); Tue, 03 Sep 2019 20:51:30 +0000 (UTC) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Sep 03 2019 at 3:16pm -0400, Ard Biesheuvel wrote: > On Tue, 3 Sep 2019 at 11:55, Mike Snitzer wrote: > > > > On Mon, Aug 19 2019 at 10:17am -0400, > > Ard Biesheuvel wrote: > > > > > Replace the explicit ESSIV handling in the dm-crypt driver with calls > > > into the crypto API, which now possesses the capability to perform > > > this processing within the crypto subsystem. > > > > > > Note that we reorder the AEAD cipher_api string parsing with the TFM > > > instantiation: this is needed because cipher_api is mangled by the > > > ESSIV handling, and throws off the parsing of "authenc(" otherwise. > > > > > > Signed-off-by: Ard Biesheuvel > > > > I really like to see this type of factoring out to the crypto API; > > nicely done. > > > > Acked-by: Mike Snitzer > > > > Herbert, please feel free to pull this, and the next 6/6 patch, into > > your crypto tree for 5.4. I see no need to complicate matters by me > > having to rebase my dm-5.4 branch ontop of the crypto tree, etc. > > > > Thanks Mike. > > There is no need to rebase your branch - there is only a single > dependency, which is the essiv template itself, and the patch that > adds that (#1 in this series) was acked by Herbert, specifically so > that it can be taken via another tree. The crypto tree has no > interdependencies with this template, and the other patches in this > series are not required for essiv in dm-crypt. Ah ok, thanks for clarifying. I just picked up patches 1, 5, and 6 and staged them in linux-next via dm-5.4, please see: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/log/?h=dm-5.4 Thanks, Mike