Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1850331imm; Thu, 19 Jul 2018 08:51:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfrPo4x944tg9+YP3XU9IEwkjlzpBm1cJRtOjyqSmFGM5YjL8vcjwIQjgk+y/TG+6Jrj+EB X-Received: by 2002:a65:5b08:: with SMTP id y8-v6mr10318405pgq.297.1532015481970; Thu, 19 Jul 2018 08:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532015481; cv=none; d=google.com; s=arc-20160816; b=xCJFcyUu+GRgegpjORetW1D+mcizpID+Nh15l3BzGQ3klbQojGjHMOjk1wpi3MgrdF E+izHdEABWYHPIQCr2MMiwsdf3+HBYOnyu1Z5o6UdBAI0GOteFp/hJFpDBNRwe6xDe4S h39Tu19wPMVk9DhcoFotTrMR6X8rjT43ZalNLbCf2Dn6lM8uqWNrCQEEHv0Ez3lcHjLa euKBYnH3QIpJoM89k7jl48TMP/o4wynWvnca+NpB4L23JI2t/rA4c4wIW40UJZ2MeEhT Xms2lRUXW+aM6yxralRPolOfJzlXKui0GfAfvWLgnXV7vuqz6dTNzLwoowMME2WoOvxR cfCg== 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=vLyw1SsoaeMDzmkyVq8pGY2miK9Femw9YTS2Xes9JeM=; b=xPjdTShsMV0B6K0n5MvEubrG+ZhhVUWpMNYHLng5pls1feAr7/LSrDMafTOp2fyCF8 2v6I+I3wVseP+yCqfMWQVZBVSZDP/ihcK+jnTi0csc1rE9fcX3LamPo1Lp4o8M+sBGiM 6MWm2JsJD0k2MmULpI2Sqrh+ihtLPN/s09lI+v3e5SnYW/tducTx6B2xeGwt9dJZ6WvI FwrfY4nEFUBvoKF0i/dbZdddLAuFg9blH4d89Jhe1XCSh4d8DN4O9UVDBdr2mVRF3yix +AtxW8r8wmBQAJK3U2LwyLeh7StwUo7ln2kwiKLvefj2WLsyOE0NGbY5SbLJcu7se+Aq Yfng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=X+Ox1Ozq; 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 i14-v6si6586505pgp.155.2018.07.19.08.51.07; Thu, 19 Jul 2018 08:51:21 -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=X+Ox1Ozq; 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 S1731849AbeGSQeV (ORCPT + 99 others); Thu, 19 Jul 2018 12:34:21 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:36280 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731690AbeGSQeV (ORCPT ); Thu, 19 Jul 2018 12:34:21 -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=vLyw1SsoaeMDzmkyVq8pGY2miK9Femw9YTS2Xes9JeM=; b=X+Ox1OzqpgRUA02RaXShVuRSG bXMJYCFpHYLXg7S7eBaNHe0FyHg1lpoWvHx7wC6NZw4UzctGhahUc6r5R2j0L0y074aFgDTZT14b2 AJlmaV8lo+yG0VN6yYv3VdiqBLk4uGTZQNbqEzyo+yi0MOoFItT0cn/XcGf8dn1ygORuk=; 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 1fgBCF-0007Cq-H0; Thu, 19 Jul 2018 15:50:27 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fgBCE-0003bv-NA; Thu, 19 Jul 2018 16:50:26 +0100 Date: Thu, 19 Jul 2018 16:50:26 +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: <20180719155026.GF27938@sirena.org.uk> References: <1531899055-29362-1-git-send-email-wangxiongfeng2@huawei.com> <5d0bb72c-862e-63be-3cc5-83ed02b9a575@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lIrNkN/7tmsD/ALM" Content-Disposition: inline In-Reply-To: X-Cookie: I'm having an emotional outburst!! 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 --lIrNkN/7tmsD/ALM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jul 19, 2018 at 11:08:52PM +0900, Ard Biesheuvel wrote: > But this will only be the case if the accelerator is capable of doing > the IV generation and en/decryption of multiple contiguous sectors in > a single call. Otherwise, you are just shifting work from one layer to > the next. > So at this point, it would be useful to clarify what exactly these > accelerators are doing and how. Existing hardware can definitely do the IV generation and I believe that it can chain multiple sectors together though I'd need to confirm this, as mentioned elsewhere in the thread the ccree driver is for one of the relevant devices. I've poked some relevant people. --lIrNkN/7tmsD/ALM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAltQs0EACgkQJNaLcl1U h9B4vQf/YQkCshhwsHWovL39lwKZHpo1OAVwFfEhHS0hainP8pDsnrikXQKO++hn XVhUHjaRxdb0Zx/lHAuTVU2dd1K00VoR7udX7u++YaCBJjviVSWvZzPoxIpo+vd4 1zfjLv3YeLD+Yy7fvLkJiVf114bBWfz/Y4sSiNUhVAxL3AgcRgs36ZA1HS+TghJX bs98y1sGwT96emHDT55S7t2jP8fYdD6mJBKvxcS+MT046HDOSEv4+ZtylOI3Nl8w Uz7udiikFKRtKwlaPX8YGEnUEqJyi8uoquNC/QVo8yYCxsVx+J/Go6z//EjtAlRD +djfP5QXtifKs3spBqRcKZm4gPpyWg== =ZoTL -----END PGP SIGNATURE----- --lIrNkN/7tmsD/ALM--