Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp389512pxu; Tue, 1 Dec 2020 13:59:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzo0w0NVqtvrmmfgJdzNKkvhUZ/yeh2pRPzQdtELjUEwAcW6rm18b68dNI2XbHBEPYJviFY X-Received: by 2002:a50:cdc8:: with SMTP id h8mr5249582edj.37.1606859989718; Tue, 01 Dec 2020 13:59:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606859989; cv=none; d=google.com; s=arc-20160816; b=JqN5g2fTcPFocOPGAUZE/wFHlZ2WyXMDYXBUbU2YqBUNySsEvhNUAEDFY9ChtFr5Ji mAEh9i0CsE8y/2/fkqCI6Pk6gRPQBB0/ZAVSNYwXoFugsK8W9L7fEGYx5HQDTiUcmulY 3Kq8Gzx7tyg5EcXaaYE3bUuuePpLA2AEMBA/FrCqIfxfh7qoCL+b6lFL4GkqFyKnro5j yc+4VEvvjXD5NBTIHmEe/gX20mI7g+2808d/xLJibhGcbazaK4y4zHyiqp+Rq85b33Yg qjqcQy8wUpLb5A8Qw37fD8Z+175pQLSbO+d0yOSdT+3xjLNoVXJmBWVtcClC3/SuHSFl GJUQ== 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=fDdVksT8l94y+u8jSu+Whs/jtDvcWkHksGYaxRTWqgk=; b=MMRaBQplP3AapoUBn5VHAKvcgH6UCedZzkkbnd/asIDMsRYJhuYDqBFoMhBE3e04nF Hk/7JxagUbtCdh3KVpeJrn+z5bexKIFwClUWBbGyzKtBBM/20d4onRW97upZs7uJYhKG hrcg0/qULZQg769FUfwn12GMv7X3EgvV743ANhomt8A51M6ed8eKH4beDZxTXvA//vof b30MsLtCZeOIa3gmiFQHzqNvUHVIzr3Ka4v4aoIODeDnnvO7VmS9LG7JtaQBGm7jnxt6 3pGSLBaJwoUynYJ24VLPKbsskHQ0pNoYYn8DcjuBkmQ49qXmLko3xNIbWdoBd0BWdFaX pjlg== 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 rp15si789744ejb.557.2020.12.01.13.59.19; Tue, 01 Dec 2020 13:59:49 -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 S1729712AbgLAV6H (ORCPT + 99 others); Tue, 1 Dec 2020 16:58:07 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:51234 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726883AbgLAV6H (ORCPT ); Tue, 1 Dec 2020 16:58:07 -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 1kkDeE-0001QL-52; Wed, 02 Dec 2020 08:57:23 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Wed, 02 Dec 2020 08:57:22 +1100 Date: Wed, 2 Dec 2020 08:57:22 +1100 From: Herbert Xu To: Ard Biesheuvel Cc: linux-crypto@vger.kernel.org, greearb@candelatech.com, Steve deRosier Subject: Re: [PATCH v2] crypto: aesni - add ccm(aes) algorithm implementation Message-ID: <20201201215722.GA31941@gondor.apana.org.au> References: <20201201194556.5220-1-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201201194556.5220-1-ardb@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Dec 01, 2020 at 08:45:56PM +0100, Ard Biesheuvel wrote: > Add ccm(aes) implementation from linux-wireless mailing list (see > http://permalink.gmane.org/gmane.linux.kernel.wireless.general/126679). > > This eliminates FPU context store/restore overhead existing in more > general ccm_base(ctr(aes-aesni),aes-aesni) case in MAC calculation. > > Suggested-by: Ben Greear > Co-developed-by: Steve deRosier > Signed-off-by: Steve deRosier > Signed-off-by: Ard Biesheuvel > --- > v2: avoid the SIMD helper, as it produces an CRYPTO_ALG_ASYNC aead, which > is not usable by the 802.11 ccmp driver Sorry, but this is not the way to go. Please fix wireless to use the async interface instead. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt