From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F2A4C282CC for ; Fri, 8 Feb 2019 11:45:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4F27920823 for ; Fri, 8 Feb 2019 11:45:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726716AbfBHLpk (ORCPT ); Fri, 8 Feb 2019 06:45:40 -0500 Received: from orcrist.hmeau.com ([104.223.48.154]:35230 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbfBHLpk (ORCPT ); Fri, 8 Feb 2019 06:45:40 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1gs4b7-0004tu-HG; Fri, 08 Feb 2019 19:45:33 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1gs4b6-0002ih-On; Fri, 08 Feb 2019 19:45:32 +0800 Date: Fri, 8 Feb 2019 19:45:32 +0800 From: Herbert Xu To: Horia Geanta Cc: Sascha Hauer , "linux-crypto@vger.kernel.org" , "kernel@pengutronix.de" , "stable@vger.kernel.org" Subject: Re: [PATCH] crypto: caam - Do not overwrite IV Message-ID: <20190208114532.5yznhgeq6m6gh5fo@gondor.apana.org.au> References: <20190131061225.15541-1-s.hauer@pengutronix.de> <20190208071635.5dkhabduambzzsu3@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Feb 08, 2019 at 08:41:37AM +0000, Horia Geanta wrote: > > So if there is a real intention to support offloading skcipher, as this old > commit suggests: > > 84c911523020 ("[CRYPTO] gcm: Add support for async ciphers") > This patch adds the necessary changes for GCM to be used with async > ciphers. This would allow it to be used with hardware devices that > support CTR. > > then we must take special care when building skcipher req->src and avoid having > it's first entry (auth_tag[16] in crypto_gcm_req_priv_ctx structure) sharing a > cache line with req->iv. Could you prepare a patch for this? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt