Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp53877pxa; Tue, 18 Aug 2020 15:40:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx20k+MuTHSsIdLnQEmTrEAkYFHFM+KUWUnzhv8vAC6Vl3Uc8269ardJfWMVBS0LFvmtmHD X-Received: by 2002:a17:906:4dcb:: with SMTP id f11mr21949024ejw.454.1597790413857; Tue, 18 Aug 2020 15:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597790413; cv=none; d=google.com; s=arc-20160816; b=hpXLoJtPGbg83rdnYX1DEC50scbG0gYAu5ZDZjE67LmCHKSf1SaDaqviGY/m9VsMSP vuBJQaJKbu0gVQpszq/xPKHduETDaH0mYMY4far1GGBGjohjNHnEGoJcG1iqezVgd5qT VISJeod0q6tDt9iZ5YN2OIwUj0o4IxoKV9w+03892mUzPK4BdkjzBl/OhFHs5/99u8vY jgx5L4d0AwnhMnH+HO3WAe8bcUSMHi3lejl+ZDumjmPKyDptoNRC8GneZCoCZBZhMVuO QN4NjfLEz5vr24DGlwsy6OEwd/QUYQdm3VPDCFwDuTF+4Qf3ZsRIi8Wbg5Eq3xGaj42U hXPA== 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=hGO608h+4fAik9DspNQBeh9mgCyYnumiShI7Ht8LBdM=; b=FihHmVRUoxPCXWG99yurHn+tb910NNfZSoqhNlpXdZ/7hboKfZBnRgeAzJgZEVivNs gg6MzsyiNxtHJjbdpSmJiQQBIaf5bFpCslFZcPNdjTtokTpaqWcU5UPNQajkPlQ7pY9J MA/7m0lR1zf0owHH4eJxhLXSexL1+ELCCrQMxJ92KrI++sqqpJvcKewvpA0zWch4Hfs8 AbBjAP3qvSr3OS1xoZkdcxGjfgYgZq8nGmua6CnV92aq1MoaIUIat74L2qo79p1HaW5l Fs/yYpsDBByfLB1ibwgNjWW0sao/V2CD6yyjy6Om8XptzqmKuNA4FKr452+uYG47Oz2g r5kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b="SG/8WyFR"; 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 g9si13845601edm.327.2020.08.18.15.39.48; Tue, 18 Aug 2020 15:40:13 -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="SG/8WyFR"; 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 S1726953AbgHRWjS (ORCPT + 99 others); Tue, 18 Aug 2020 18:39:18 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:57770 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726799AbgHRWjR (ORCPT ); Tue, 18 Aug 2020 18:39:17 -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 648A613C2B0; Tue, 18 Aug 2020 15:39:16 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 648A613C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1597790356; bh=PBmYFasOCVtx+UPxbhUdhy7A+e7F9Z0a3A+8NonFu+k=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=SG/8WyFRelQ+Ar2iZWg6PuR+Gbw4kYvvuyiVphy+ppi/L4LQqmSmjCplGNcQQMo7d An8xcxGdVvql6WGZtxPs/U8xETfe4wCRBGWrgB91kC5jxK+VPih3HH3Ce3EBXqy19+ eE/yuApxaKgNydC+2/3/2UIZSh1A1Jed+41cV1ak= 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> <20200818221550.GA27421@gondor.apana.org.au> <20200818222719.GA27622@gondor.apana.org.au> <20200818223359.GA27712@gondor.apana.org.au> From: Ben Greear Organization: Candela Technologies Message-ID: <8b248ef3-d4c7-43fd-6ae4-1c3381597579@candelatech.com> Date: Tue, 18 Aug 2020 15:39:15 -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: <20200818223359.GA27712@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 3:33 PM, Herbert Xu wrote: > On Tue, Aug 18, 2020 at 03:31:10PM -0700, Ben Greear wrote: >> >> I don't think it has been discussed recently, but mac80211 is already >> a complicated beast, so if this added any significant complexity >> it might not be worth it. > > Any bulk data path should be using the async interface, otherwise > performance will seriously suffer should SIMD be unavailable. I > think someone should look at converting wireless to async like IPsec. Most users in most cases are using hw crypt, so that is likely why it hasn't gotten a huge amount of effort to optimize the software crypt path. If someone wants to give this async api a try for mac80211, I can test, and I can sponsor the work, but I don't have time to try to implement it myself. Thanks, Ben > >> Truth is though, I know very little about what changes would be >> needed to make it do async decrypt, so maybe it would be a simple >> matter? > > IPsec was actually quite straightforward. > > Cheers, > -- Ben Greear Candela Technologies Inc http://www.candelatech.com