Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2375871ybe; Tue, 3 Sep 2019 11:56:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWsxdJmcS0Wcd5VEJK1xV/syCWbmDzHEMB3yGZp4aqxJy0OHNz2iaqhGhKTc5bHVFiHIpX X-Received: by 2002:a65:6406:: with SMTP id a6mr30866570pgv.393.1567536979288; Tue, 03 Sep 2019 11:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567536979; cv=none; d=google.com; s=arc-20160816; b=Fp7XMENB7qxOOvheEtDAsEG1vG4Z4/4OU7lZmcgk32yAPl9QGkTi1D2pRxUBZJCgHL PymcEWVOaepEKmaL1YZQ3vc2ksNAq6B3aMfLxee1Q0OgPKkzscwgwowZnNte6k3vs0YZ U5WfbLQkWn3Eg9gqnZfRFH3c+fCrq54WUt1WhMjrU4KgFCSvw6O7TDzDGZPCEFkP9en/ N47QqbT9Z6Gu6/YalcPORy0WozGwT9wOUm1fiDy+5bb3f1fuAFzJ2McXN+pIVuF3+GtC uC5c2NjULmafiJAWyhq2cMQoUvS4hLDVi4XN1glPRgQJQ4YsqROP4CjL6izNEAjH9EE1 mpOA== 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=H0rSFDvyvLgeDQNe7QJjdhJEd5BUzROG2NPe32S0hts=; b=ag7t9SbcA4IVgFgXm5BGMAEh8v8ffIKHcYyd8px0khMkPPdCvXZ40sPemeZ7h2dkyV gQi1bn4AclKSXB5aupj+B7Zq4PiOmyXsNgkevx1MEG9h/i5EGTH7Mo7PJuHfug/dG9CR Eh/kOTVV2viCeYDw4Nh/oxZk0nokOn3vSu64DTsz9n/Qaoi65HN88TH5Se30XGLWw/49 AMiYpkmlWQSShAIrWsVhTDHjAiW37lUvE17tPYrgwdn1D26BwJWtOHKyydnnH8cp5/3o d885X1DY+jdEB0pyyf9ap8kXtcpV37/fAGK49IrLfpUJjh3obTwJzjrf+2lr3aKpQsjE ThBA== 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 a63si15429303pla.54.2019.09.03.11.55.58; Tue, 03 Sep 2019 11:56:19 -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 S1726640AbfICSzm (ORCPT + 99 others); Tue, 3 Sep 2019 14:55:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33772 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbfICSzm (ORCPT ); Tue, 3 Sep 2019 14:55:42 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 60D3C86E86F; Tue, 3 Sep 2019 18:55:42 +0000 (UTC) Received: from localhost (unknown [10.18.25.174]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 69A321001B13; Tue, 3 Sep 2019 18:55:38 +0000 (UTC) Date: Tue, 3 Sep 2019 14:55:37 -0400 From: Mike Snitzer To: Ard Biesheuvel Cc: linux-crypto@vger.kernel.org, Herbert Xu , Eric Biggers , linux-fscrypt@vger.kernel.org, Gilad Ben-Yossef , dm-devel@redhat.com, Milan Broz Subject: Re: [PATCH v13 5/6] md: dm-crypt: switch to ESSIV crypto API template Message-ID: <20190903185537.GC13472@redhat.com> References: <20190819141738.1231-1-ard.biesheuvel@linaro.org> <20190819141738.1231-6-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190819141738.1231-6-ard.biesheuvel@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.68]); Tue, 03 Sep 2019 18:55:42 +0000 (UTC) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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