Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2838544imm; Fri, 20 Jul 2018 05:57:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcOiVdD66dd0nxkYS9nX2QX7MnQnc2mzUiyJtsBwazd87T7vFuhJpw/cG653sgqDuG93N9W X-Received: by 2002:a63:90c8:: with SMTP id a191-v6mr1983330pge.173.1532091456457; Fri, 20 Jul 2018 05:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532091456; cv=none; d=google.com; s=arc-20160816; b=syCxbj9iEd0Q7i/pzH6qGFmgDMrXnDJWAgsEgf7BOFdGDpKTpgCOg5CHeek64woWur XaCPTdNUtIb+94h521sPE9BfE2BGoWK/g+iZPXMEUgjmSKGvQjKVyeCo9GTsMBHgrfPw t+UN6kcJ5FZgpQ2mAeJCyAboejhyR50cAFzGz6MwJvVQ5c6jH/+wgEGfhxOM0auOop9v 6ON0SRqnQhLQ879inCk23fUIwX/2rxWtZJAWKx/i+ih3kSwnqQwHSrdou1W2Fi1aJtYL UhgjDm9+cO47tuqud7ky17tkS2s34zS19qX+rCaDsC0+2JZbnU043ylKgX00sSoji3Yx Z6HQ== 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:arc-authentication-results; bh=+gQPDrjW/TUwMwO0HBjXIwtI7UJZ0CDxU/Zmxr9VQHQ=; b=a20sFiDjgiVhoBX3WLRvGG/m9ZVdWFGJ8hHJM/4N3LSLA4hS1zyrxb51O/uw/Hz776 QWjipFf0PuQP8xrlLV9EHK+MomYHy63fu6J/7dGjveNo8NqQRpC6eBwKCYIulfPC5x9N 1KqaAL4Jnr/e1E+KTJCkiylxqIS56CRcDISiZeHJEYgnIz4NSsPOvMzj+OfEHSJbm8VZ f7k0OYvULBsOGi52ocoZof3kGu0db8MNt3P2NjTw2KW1/v46mru72CGurFxo866Ku/dA sIzE5jswVQWIcNhGgYSDTETdcyYSGE2/V4zm9YODFfamCLfY21hugWJJ5SRQU09vo22K YY8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=j4XvifKk; 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=fail (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 h5-v6si1815553pfd.112.2018.07.20.05.57.21; Fri, 20 Jul 2018 05:57:36 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=j4XvifKk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388633AbeGTNUz (ORCPT + 99 others); Fri, 20 Jul 2018 09:20:55 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:59746 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388631AbeGTNUy (ORCPT ); Fri, 20 Jul 2018 09:20:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+gQPDrjW/TUwMwO0HBjXIwtI7UJZ0CDxU/Zmxr9VQHQ=; b=j4XvifKk0k32BAHiCEjC5O3WT tKDd4iDZb5PjWINc8NWDvEfVnmuAqdkMsKV17UketWkRiBpeFfMCzYgm2x04dE+KA5AI57208ooIO 7HO7qNrzTSeeyFQecxLyhNssB2AQrGSRIQ1crAQ8H4FnR1QFPntF7scNvbmkxCEZU9QUE=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fgUaV-0008Nv-GN; Fri, 20 Jul 2018 12:32:47 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fgUaU-0006f9-NH; Fri, 20 Jul 2018 13:32:46 +0100 Date: Fri, 20 Jul 2018 13:32:46 +0100 From: Mark Brown To: Ard Biesheuvel Cc: Xiongfeng Wang , Arnd Bergmann , Alasdair Kergon , Mike Snitzer , Herbert Xu , dm-devel@redhat.com, Linux Kernel Mailing List , Jonathan Cameron Subject: Re: [PATCH 0/5] crypto: add IV generation templates Message-ID: <20180720123246.GE10784@sirena.org.uk> References: <1531899055-29362-1-git-send-email-wangxiongfeng2@huawei.com> <5d0bb72c-862e-63be-3cc5-83ed02b9a575@huawei.com> <20180719155026.GF27938@sirena.org.uk> <20180720114509.GA10784@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Qz2CZ664xQdCRdPu" Content-Disposition: inline In-Reply-To: X-Cookie: This unit... must... survive. User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Qz2CZ664xQdCRdPu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jul 20, 2018 at 09:23:15PM +0900, Ard Biesheuvel wrote: > On 20 July 2018 at 20:45, Mark Brown wrote: > > I have to confess I didn't look at their in tree driver, looking briefly > > now it looks awfully like the hardware should be able to chain IV > > generation together with encryption without bothering the CPU which > > would be good enough. > Indeed interesting. But afaict, that would still mean that the IV > generation transform and the payload transform would be expressed as a > single crypto algorithm, e.g., 'dm(essiv-foo(aes),gcm(aes)), or the DM > layer would still need to be involved in sequencing one operation > after the other, and I don't think any of that support is in the > current series. But I'm just a drive by reviewer here, so please > correct me if I am wrong. Yeah, I'm also a bit of a drive by here and not seeing how the two are joined up at present, but it may be a case of needing to get this and/or other drivers fixed rather than the hardware lacking the capability. --Qz2CZ664xQdCRdPu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAltR1m0ACgkQJNaLcl1U h9Ddagf+L3Ie/NQmFGA4skJRx+gcZZmaz+pVxtlZZIW0wKDG6zBvZb5KOBH7ew6k eWoAkhOVbYLQMthitWB94veldP3pAd35BcriA5yM/LEN/qFNtms/Gdqte6DWPt1m 5qnXpK8vekpQz3nI4Y2C7X/sx0XHls6FCrR5vAZ/fb5/Rth4TVCt7EAnsXYWW/Lm oBqhugqTDFe9c3RusH/g1U006/VKFCdQ8tn/aKS/sdoEgQtaav2si8pSiM1IvOf1 pfWAFqdNs9pMX3rXVxcP7Nl5Bn9dCR5kD8+vmA9bJ9dzThKrxOY+RKiYQx/3aRhq AGkgAnMOIWf2mDkITYWkRRv0XiWAwg== =FeZe -----END PGP SIGNATURE----- --Qz2CZ664xQdCRdPu--