Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp412884pxu; Tue, 1 Dec 2020 14:40:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyONmkQ5+doohmRJKDqDmBg/X+R/KMvwN8R7pt3STXcBngu0LZYJCH46uVhlzMwvFM11xop X-Received: by 2002:a17:907:4332:: with SMTP id ni2mr2366837ejb.422.1606862400086; Tue, 01 Dec 2020 14:40:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862400; cv=none; d=google.com; s=arc-20160816; b=iKYKCsFx/4O9dqxoDju0LDEhjKwlaT/fsNXGDQByK2ZS8TAGZHGkMT8aUs6+aYbAvP ibGy9NU8/XLXXyRrB+x5qnDKzUlTm9rRLZzWJusZEhKO8RIPPdbK5ln2E/a++XELqQ1f Gg4fyBkD59Y8pv9pZ6jsDqPfmoY8WxzSU3dqo6sokevUhkUEE2bkWrarF2gEwM/J2b+r gCipM+VI1jNfjBzPT8pfEoB0IdTnL+ledrgaI9owBWeGxPekIWLy2Om7Ddv1naIDf581 Fo3sqONXBh9fuzV9EU1643nWxM9wX9ZJ1Xn/gZV82FESwSGG3unH2dCrbG3Pm4lQoxz7 AivQ== 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=Q/dgsis7hIxPzOAC5AsWmKLF+yq5vqYoPCT+Cqg7exw=; b=XCOlt+t78WT6ONQeOOY+CpDp9SAwUWsAdO+c5w76lYhqK+AYTNlO3I1mKbpUZFVeR2 pYbOw89OXMiY8f8KQgT16rZP98fRTlpEKXm+svKu5cN5DP1AEskKeVO20VqwLxqBf73R A9mlldyzPngchduNyWquYN59EsmWle5YQXQ+HRivz/ieaJ+7GRIG6ml1qAlpPgIAgq+o /PWSJsSdhOV4f+7oLrSvw++ZJClpR4FdQp77aGpzO4aN1EcsgYLubwXXYuwFdNdyczho FldErDkOihQkPnzhvTPic/chAOyQRM3dZ24A8047lVm58MOGxnmmZmomfKl2EZRIb4rw d7Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=i4VX172q; 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 o6si1000248edi.566.2020.12.01.14.39.36; Tue, 01 Dec 2020 14:40:00 -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=i4VX172q; 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 S1725902AbgLAWNQ (ORCPT + 99 others); Tue, 1 Dec 2020 17:13:16 -0500 Received: from mail2.candelatech.com ([208.74.158.173]:60172 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbgLAWNP (ORCPT ); Tue, 1 Dec 2020 17:13:15 -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 1FB0713C2B0; Tue, 1 Dec 2020 14:12:35 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 1FB0713C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1606860755; bh=EYdaU8TB/xYzI6TH3iL0D/59oHns+NQcBxEZll2OYF4=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=i4VX172qFGQ5CvK3nsXXVgrpMVOgd1S2+nnUwlwVB93wj0zVMnW1X4b+Xai979dDp Po1jJzuw32X2STwKROkgaOMRjyxlFL41phdimhJ5THPrkHhFOmR5rg1klhp0MrrsJz lo94Nt+jkeiYal2Pg50dGtcPjODSdpd9xpwlrsvw= Subject: Re: [PATCH v2] crypto: aesni - add ccm(aes) algorithm implementation To: Herbert Xu , Ard Biesheuvel Cc: Linux Crypto Mailing List , Steve deRosier References: <20201201194556.5220-1-ardb@kernel.org> <20201201215722.GA31941@gondor.apana.org.au> <20201201220431.GA32072@gondor.apana.org.au> From: Ben Greear Organization: Candela Technologies Message-ID: Date: Tue, 1 Dec 2020 14:12:34 -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: <20201201220431.GA32072@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 2:04 PM, Herbert Xu wrote: > On Tue, Dec 01, 2020 at 11:01:57PM +0100, Ard Biesheuvel wrote: >> >> This is not the first time this has come up. The point is that CCMP in >> the wireless stack is not used in 99% of the cases, given that any >> wifi hardware built in the last ~10 years can do it in hardware. Only >> in exceptional cases, such as Ben's, is there a need for exercising >> this interface. > > Either it matters or it doesn't. If it doesn't matter why are we > having this dicussion at all? If it does then fixing just one > direction makes no sense. > >> Also, care to explain why we have synchronous AEADs in the first place >> if they are not supposed to be used? > > Sync AEADs would make sense if you were dealing with a very small > amount of data, e.g., one block. Sure, I bet some part of the kernel does this. So let the patch in to handle that case. It will just be happy luck that it improves some other problems as well. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com