Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp882295ybi; Thu, 30 May 2019 08:10:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwvk7lXcTvN5YHHBm4rCGI1VuExfDPd6fctsq7JQOjE5vkVzoSUNjEWRjW+zym0WnDXzPo X-Received: by 2002:a17:902:8c82:: with SMTP id t2mr4184235plo.256.1559229040051; Thu, 30 May 2019 08:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559229040; cv=none; d=google.com; s=arc-20160816; b=jVa0j9AxSRX/LvGYrsIWEEo7luJSj02sNm3e+bRuwVEvy+uvO6amT8EZqNoXDyHL2+ 5tpDBaeWjoGvLHenrnbWes/VLuP2a1dHCLEzgzCmJP4BgoLiNVPGUF5UBTmNL4uB2iwV iEn+KshUXotcQjlH8SWbosSGZY7fwPukZrnqJyCHStGeKhP+9rWwjRACri6rThtBdzQy MWcpA1AdSA+3PoSBTxnwyF0FdS/ncpMk1cEhp1sKrb66z81Ugm9MVey9GsBdnW5FSfOB 0XS73pYKzo3lO/KsPG9LMocgpVfx988fktLcGNiXumkXovWiLL0iqhOmSxtPFbTcFpjF OqbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zyQxQxyVFskcDbp6ulz3dvZGpYPkncRLdMElYABwYhA=; b=SMpYihVJhp2OBX1wA6LFYf7k/NmgMtjd3deR8Jlgks9ZUkHggLYh+Euc1+xWKaB4fa mtH1jTP1AF6OWeVeI9nDMOfB9Taf1oROQ4wwG0JVG8qjR2GNilcejV6oC+QfzEJqFTH9 8NxT2OcvpsE0/+O/PRx78IZfqsQRztjCS8k+GKy4T4S0PcvM/bsqnMPTkcFCpF6+m47a rv7kVVf/cc/BKK0A4ofvJ9og7C16kXpOAQ6rMyqSbrxmvPyJqWbJtJfH2QMiANdmFr/O 9EnZByidx2lJOLDmqtGKCnyZfO6hgXJaKC62vg1lxNbASSNgktlWPXMgQOjRMkCZk0d0 wm1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="NRtzPA/H"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 135si3300799pgc.346.2019.05.30.08.10.24; Thu, 30 May 2019 08:10:40 -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; dkim=pass header.i=@linaro.org header.s=google header.b="NRtzPA/H"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726399AbfE3PKU (ORCPT + 99 others); Thu, 30 May 2019 11:10:20 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:55983 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725961AbfE3PKU (ORCPT ); Thu, 30 May 2019 11:10:20 -0400 Received: by mail-it1-f196.google.com with SMTP id g24so10429168iti.5 for ; Thu, 30 May 2019 08:10:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zyQxQxyVFskcDbp6ulz3dvZGpYPkncRLdMElYABwYhA=; b=NRtzPA/Hn8pbzqRibagEoNo/V5Qg/wwk5CxsPyGQLp27nnYx9FZsLehDiDxfTeJQfM IPqUUPUAGiEl8AnFLcbydcqSRLlHa5dPuJB7XsbC8VjM8C1srReM8d1wXLzqM/mOjjf+ gm/ddtb0n3WuxxLY0OtXp58uh3qmum5BqTedbQFGzs3RzkL3yERijMRnCN2yMT1QIe1E UdiofLdkDlEbKDoIWWLZElMdTqPHwgFyWP+6I+uSlDgrfQtyW7tmayU70gOG+6BeX3uN uhx6HTzSIY/e1HUEaWoUXHrnJMU5t9LeUgVvQoXdkzvX4WqCFqrVEMIIAKl8MTcEtOIw QH6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zyQxQxyVFskcDbp6ulz3dvZGpYPkncRLdMElYABwYhA=; b=hY9KSrp9PgH27NEYzGH4U72q/VCB3PY9sQMvE2nfJaszHv/nHzrHGu2K/59/sI8rMY 5J99wEs+S0Isj0qkVLtvsswd9VAhcaVTNUCwMcuToyWglm7GCe3uCW1LFxOA+Kd8l4Tq B3Rt9B1/qBwiOjGX39Za9uxrAnweD487fPwB1LlToH/Gk+QIkXKPyRotIZ4/s0D8oj/7 h1clKfl/HcAOE0rWRDq42YRevvIZGzeXJGdQba9cSkNAIdnPOqSSZqrrG7Ri6AAh61XM zBLJ4MpJ/do+ig2ciYpIxSlvfJMof+qbBDsfa9n0KbWP68wxX0aZtR//l6/HsnRcWSsT UgQg== X-Gm-Message-State: APjAAAUxlwDDz4tIdBj1rc4C2ehoMiqEoDht/OEbwTIRLSqkc+KVOH94 1yGeVz981qEPmvAA/spaqFdq1jJuPFvPwBbjijEUtw== X-Received: by 2002:a02:b01c:: with SMTP id p28mr2837219jah.130.1559229019226; Thu, 30 May 2019 08:10:19 -0700 (PDT) MIME-Version: 1.0 References: <20190530133427.qrwjzctac2x6nsby@gondor.apana.org.au> <20190530142734.qlhgzeal22zxfhk5@gondor.apana.org.au> <20190530143438.d62y3woaogyivqpm@gondor.apana.org.au> <20190530150642.fswcxt6m2y4pnjon@gondor.apana.org.au> In-Reply-To: <20190530150642.fswcxt6m2y4pnjon@gondor.apana.org.au> From: Ard Biesheuvel Date: Thu, 30 May 2019 17:10:06 +0200 Message-ID: Subject: Re: [PATCH] crypto: gcm - fix cacheline sharing To: Herbert Xu Cc: Iuliana Prodan , Eric Biggers , "David S. Miller" , Horia Geanta , Sascha Hauer , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Linux Kernel Mailing List , dl-linux-imx Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, 30 May 2019 at 17:06, Herbert Xu wrote: > > On Thu, May 30, 2019 at 05:04:51PM +0200, Ard Biesheuvel wrote: > > > > But given your remark regarding CBC being the only algo that has this > > requirement, I wonder if this might be sufficient as well. > > It's not that CBC is the only one with the requirement. It's just > that this is the wrong output IV for CTR. > Are there any generic templates relying on this for other algos than CBC?