Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3127013pxa; Tue, 18 Aug 2020 07:19:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGoDB2z6cqD/j0gCgmapU/1jXMZi8s3r/KV4SjhkNkuXZDbWqPnG7EIGz8I8/8oGZCFCaI X-Received: by 2002:aa7:d350:: with SMTP id m16mr19553763edr.169.1597760352501; Tue, 18 Aug 2020 07:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597760352; cv=none; d=google.com; s=arc-20160816; b=aQ/z8KyiChnQts5k3yAxvdMBj49WFuQkLpqD1aBJS+n9ZW2MqWnwyJeS1hYRWJr4MN vdBfXl9nJ88XjMisiy7ZNaomstIE5DpaA7PVmhPcPHBCUfKiwoSyeTIE6k07m0cDvWIJ 2DyP5L63qhPQunvec0JMB0ZcjRkoi1iEen9FA1tR/ffqjeSFnpACbl7loO1oWxL+iUlw rTadOgGCbFZpV40/rgmf7IawHJNUfjVPzlAovMMtdeMMrI/+2Qy0Geo8e3mFUKGxkE47 MPlRX0nWGifz3K7jqPAaOlqJPrJGZZDm9t3A3z8jevQsnsZtC0KioU/6FsWsVtyFWnZf 3b2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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=/M2ajGZw+5gpOgd6fZPKLYpX2gtRGFvFJ/qFcZ8mpak=; b=n7i6/F73jZkT+ZP9eh3hL1QzO8AYg8wmJsyEIZbkHCKaS9iy0KW4otRGaDOxtOv+/F piD0+nWno7w8D2g1CCHaG4IwSkcFr6o+1x9C+vUVx+11lRUOAMJKxbZD/4MsdKJdufQ/ a3F7iVlSegk+/TIf4Avpwhr/+tMwOUFwXrYF9HLl+dCel9Zhl0EANUOlheRyM+DfCHfj 2NTnKejDi+lprmHI9lRhEXMtfCKr1iWdUHJdVKZx2W/SO8UD1rpy1edAIJsa38wIoH0G kGnf1VHyuSg/TQqx12DTZOwrwgIs/rBk38pZFDg8iWJCZ2Y0OWphSVoteZLzk5MoBr2o MWUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=AddjnMMA; 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 ce6si14174496ejb.734.2020.08.18.07.18.43; Tue, 18 Aug 2020 07:19:12 -0700 (PDT) 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=AddjnMMA; 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 S1726905AbgHRORl (ORCPT + 99 others); Tue, 18 Aug 2020 10:17:41 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:38644 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbgHRORh (ORCPT ); Tue, 18 Aug 2020 10:17:37 -0400 Received: from [192.168.254.6] (unknown [50.34.202.127]) (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 CEE1713C2B0; Tue, 18 Aug 2020 07:17:35 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com CEE1713C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1597760257; bh=KIzHoTBPXScNDkgRBTc//Tk16Di90O2SsNKgcbkuZ1U=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=AddjnMMAxZ4vFknsl9XObrE7Crma/60tHxNqctl22V1inhwUXWI/OIoepriL39C+p NLoKuL/Gdj7ewEp526iXfngfZ87HmvGzpv9Sj0QGR+N47E5O40HQwQO2F7S9phB5Pj hXlqMlydf7Wfx+bIslG/Hq1XOz4UVMx+Ej2ujDSI= Subject: Re: [PATCH 0/5] crypto: Implement cmac based on cbc skcipher To: Herbert Xu Cc: Ard Biesheuvel , Linux Crypto Mailing List , Eric Biggers References: <20200802090616.1328-1-ardb@kernel.org> <20200818082410.GA24497@gondor.apana.org.au> <20200818135128.GA25652@gondor.apana.org.au> <2aad9569-877e-4398-88ef-e40d9bbf7656@candelatech.com> <20200818140532.GA25807@gondor.apana.org.au> From: Ben Greear Organization: Candela Technologies Message-ID: Date: Tue, 18 Aug 2020 07:17:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200818140532.GA25807@gondor.apana.org.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-MW Content-Transfer-Encoding: 7bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 8/18/20 7:05 AM, Herbert Xu wrote: > On Tue, Aug 18, 2020 at 06:56:12AM -0700, Ben Greear wrote: >> >> Herbert, thanks for working on this. If I apply the patches you posted, >> that is expected to provide wifi aes decryption speedup similar to what >> the original patch I sent does? Or, are additional patches needed? > > It depends on whether the wifi code uses the async ahash interface, > if not it probably won't make much of an impact at all. > > I just checked and if the code you're using is net/mac80211/aes_cmac.c > then it's using shash so it won't really benefit from this. However, > there's no reason why mac80211 can't be converted over to async as > we did for IPsec. I think converting it to async is beyond what I have time to work on and not sure if it would be accepted upstream anyway. Is there any easy way to use your work to make shash fast for aesni? I basically just want it to perform as well as it used to with my patch. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com