Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4719960pxu; Thu, 10 Dec 2020 03:58:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEQ1giTc+EibBPVcDOzWJXaergpCoIeKAW3pYJufqz+RTarJHOYsCQ1o2kvWmy+7kBj7Ge X-Received: by 2002:a05:6402:2da:: with SMTP id b26mr6452436edx.350.1607601538523; Thu, 10 Dec 2020 03:58:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607601538; cv=none; d=google.com; s=arc-20160816; b=cVlMD8OfOHj7O0vT0oi0iBf/Ey0H2lVCuvLHcYXa2X2/L22V/R1Jb4gHwpBZqxWzqe QRpZrv9gm++QffvGY1m7fMePO9h8/Oi6ko/sUqeCG9gKz1FwGT5zFkQuoPlUq+hKr0kE XsMcEiuYNVcv5Dg2Ib2n8ap1FUV/qMxci4i18A5ehxqWbxKY62zL2GiWYerL/G+gUapK 5De7+0CQgn6iDtoyZSkzQVTBqyPaajagQYSmqSVKn2dWzlXqQipXnBpKXtqacnige4QN 1qTZVltgnCOSF9MGOveQ/likms5M9FxwIj+7F5hlFg1UAhI33pVLse8Ydto17tXjyWBc m2hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=2kcktYKA6mWqlVeLJCjltX0TPJh79hkWwUR5TxyCgOo=; b=nZ5FWjtiSvZjQvkcCJIt9qmpkRXEPqH49nwNK1gL8QO8xlUQUwvvsnWsvq0KcgtG/3 lyAyssWSjxBvZnqTEgmNPcKUQW9KEHHC7jTJytqhmddgW38wADWxsv9+mUYc6EJGipaX sFkdKDFyPA9IvruxU2x2mzu+mObAKnw/bfsmFLfpXe1wQ9wJTJMTQwaup4Te2vGJDs56 aaSeDhTe1JAi20RhJ03xhVUMSGRrAr7Ljg5rN3VudQtCMelo/PQFP0dFDr4OXrEkHjHS FDnuSg85/J4Ah1WdzFVcM6r7YYskUmo/6fUk+DrBorR8Nc92F1u+wZXK+/P0BOr8F/K6 jtxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e20si1193057ejq.444.2020.12.10.03.58.35; Thu, 10 Dec 2020 03:58:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388090AbgLJLPU (ORCPT + 99 others); Thu, 10 Dec 2020 06:15:20 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:57786 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733308AbgLJLPP (ORCPT ); Thu, 10 Dec 2020 06:15:15 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1knJtz-00046Q-Td; Thu, 10 Dec 2020 22:14:29 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 10 Dec 2020 22:14:27 +1100 Date: Thu, 10 Dec 2020 22:14:27 +1100 From: Herbert Xu To: Ard Biesheuvel Cc: Ben Greear , Linux Crypto Mailing List , Steve deRosier Subject: Re: [PATCH v2] crypto: aesni - add ccm(aes) algorithm implementation Message-ID: <20201210111427.GA28014@gondor.apana.org.au> References: <20201201220431.GA32072@gondor.apana.org.au> <20201201221628.GA32130@gondor.apana.org.au> <20201201231158.GA32274@gondor.apana.org.au> <20201210024342.GA26428@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Dec 10, 2020 at 08:30:47AM +0100, Ard Biesheuvel wrote: > > I would argue that these are orthogonal. My patch improves both the > accelerated and the fallback path, given that the latter does not have > to walk the input data twice anymore, and go through 3 layers of > templates and the associated indirect calls for each 16 bytes of > input. As I told your before, your patch introduces a new model into aesni that is different to every other algorithm there for the sole purpose of catering for legacy hardware in a subsystem that refuses to do the right thing. That is not acceptable. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt