Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp392782pxu; Tue, 1 Dec 2020 14:04:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPqudWcCXG69aweICy7G8etJBN482pLTMK/QBpBvPQrDTFl3aqqm8wZGJkIReHn1fHHyYY X-Received: by 2002:aa7:c94b:: with SMTP id h11mr5208413edt.322.1606860282780; Tue, 01 Dec 2020 14:04:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606860282; cv=none; d=google.com; s=arc-20160816; b=WGihQ+6rnXO/kkGYGlxuKBGgGD4osgTmet9vhV9S17bncXksUX+3F4efpTAZo0nLZR OAeU8zim0lDoEb0wXAr3e9V1OyqDL9S79Jigpk9KzNlBq00n0ROxgLNC14ZcnSjTuJBa It3qbSoJqXEcTPY/Ewje3x+m82+b0YkB3JzV2XgNDfaOkOlXGyworp2yxvpHsOuG7gXU o2BCMifO3304J34iI1KYqAkYB8WWgFRs+Z0LBHimDfkliMNjAERkPyJvhrRmtpe4EKS/ lxtDM6NhLETP4gicWnJ80hxcZSrdfDyJVPtFdpamTjThtSwCHxbUDh5l7+eze6EmeN/P A3oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature:dkim-filter; bh=fr7GdmVJNBs9Ku2ZtTQFlc79vEVMmsQLAckU0nAwZV0=; b=XJdpj/z4WtjbBWwT1xitD6Z3bDhhd/EtAp8GlaB0iA+vvprUX7kGq0l0d/f/NATWzM g2otYTve1syKHbxtHVvoIhzEefrIEBUqmUuw9TZaK13PRx1UCM0Nbi52QsbI1ZSEdI4K q+Hc+/QIoQ93qRsIiqcIOsX+Oy+H1I71KBL5CvpCUv8GDtwpFVoGapIQow/Db8H7bqm7 wzj2WEyo5SZPZB3BSzCklzDu6i7zTtb9gdaWlaZa8hba4fDYNj2svAq5V5a/9O49m8xb kPndJPi7jdAZUZGSstzZKHEQt5xsJnLg6MXK3NJgNB17rHZ0jDSyJ2qNHDpTfIPqXLlC MqaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=PlFV4j1E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 38si752695edq.246.2020.12.01.14.04.18; Tue, 01 Dec 2020 14:04:42 -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; dkim=pass header.i=@candelatech.com header.s=default header.b=PlFV4j1E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730473AbgLAWBZ (ORCPT + 99 others); Tue, 1 Dec 2020 17:01:25 -0500 Received: from mail2.candelatech.com ([208.74.158.173]:59440 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728913AbgLAWBY (ORCPT ); Tue, 1 Dec 2020 17:01:24 -0500 Received: from [192.168.254.6] (unknown [50.46.158.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 62BA813C2B0; Tue, 1 Dec 2020 14:00:42 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 62BA813C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1606860042; bh=CAfYLBj18HNt2Sg714B/NrU/02RK2zdhfwkZv6f8Gwo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=PlFV4j1E3BFr4mDg8FRFOvSavT3llcuvXyS8HnDK/qIyIyxNvjswgEWSNFfuQV/Ga Cal7R3Fe5a/7NcEbaJJy3xXP8CWquoiJC8xYX3/13YxjuzxxVmi0MrOE212qrhqttK MAYMggFdcZkJGKkO0FaZCkAkKkrCV+D1onANloUE= Subject: Re: [PATCH v2] crypto: aesni - add ccm(aes) algorithm implementation To: Herbert Xu , Ard Biesheuvel Cc: linux-crypto@vger.kernel.org, Steve deRosier References: <20201201194556.5220-1-ardb@kernel.org> <20201201215722.GA31941@gondor.apana.org.au> From: Ben Greear Organization: Candela Technologies Message-ID: <60938181-3c15-9cc0-a4b4-1fa33595c44c@candelatech.com> Date: Tue, 1 Dec 2020 14:00:42 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20201201215722.GA31941@gondor.apana.org.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-MW Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 12/1/20 1:57 PM, Herbert Xu wrote: > 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. No one wanted to do this for the last 6+ years, so I don't think it is likely to happen any time soon. If the patch is better than existing behaviour, please let it into the kernel. And it is certainly better in my test case. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com