Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4736504pxu; Thu, 10 Dec 2020 04:22:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzd4cYK3bfVTNlVPabjazFyoxw8nWNQtwbsxiXHlrye0hfl9eLWW99g/OjZhMdMOYI4/loo X-Received: by 2002:aa7:de0f:: with SMTP id h15mr6559963edv.110.1607602934346; Thu, 10 Dec 2020 04:22:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607602934; cv=none; d=google.com; s=arc-20160816; b=MpMKbpTm4i9r/LhduaKodDkUha95dHEh8ALbw9KHc2Qf1swAuJrcCOCCAKI1yECIqJ l1jDE6A3BReOqDWmHFMLnMPgJtaXX9BcPEB1S1vKKOE22YLQ/7W2aikbnMZZ6jC88JDh NasyjEd0raN17ToyaG9wkd6E8XT3Tmbkvjdh5xq1GBwnXEdP4hGU5tiGXW61LYrz50Rd gq0xZpmyxFqMmZvtESwOxlIwEEd0kkXMbIxl33mfx1/xIhRYghUWIoBuY034BSR0o9a/ i8uQ4XMya21VlkLQduKUy77DQU9Tv71lJr4lgRNKTFce2UC8thtqs2oo9Fc4pRudBWlV 0ckg== 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=Vpg1/v9JZA2Ya00N4Mezezx2qDpiZsjGv1DmOtcCOwk=; b=j3SNzgkTXMuK5WXhr0jeNDL9WBSu4OMbeHq7AuyqpJ3V3AphD2UVblkdtMq9F2Y0Ps 8ubZ/wC22CDBiqoVCOS0cACj9xiZhOMm3lb35ScRva2F9+P8fgPzuk9iiU1SrqXow3Rr 54R+XNXMKWf5f6+kht2XpHEFILOV8P0czhHK2uc0FrQsqFgbGI5Jz7JO+NgK1lD1j0DY lDyQfHXJYfcd4ORIADYQkIHVksTg38I88JmOahEsN1ymvKPiGB5wtWRAzytcM89oPZI1 fIS/Kf7bDTtsjn7afn+UUA4BgIc7nsgAbomHhhMSVYqwsm6T/CWm58QwSCvCEjS5C//8 gOuw== 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 h2si2328093ejb.710.2020.12.10.04.21.50; Thu, 10 Dec 2020 04:22:14 -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 S2388246AbgLJMR1 (ORCPT + 99 others); Thu, 10 Dec 2020 07:17:27 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:57846 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388269AbgLJMRQ (ORCPT ); Thu, 10 Dec 2020 07:17:16 -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 1knKs0-0005Og-1V; Thu, 10 Dec 2020 23:16:29 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 10 Dec 2020 23:16:28 +1100 Date: Thu, 10 Dec 2020 23:16:28 +1100 From: Herbert Xu To: Ard Biesheuvel Cc: Ben Greear , Linux Crypto Mailing List , Steve deRosier Subject: Re: [PATCH v2] crypto: aesni - add ccm(aes) algorithm implementation Message-ID: <20201210121627.GB28441@gondor.apana.org.au> References: <20201201221628.GA32130@gondor.apana.org.au> <20201201231158.GA32274@gondor.apana.org.au> <20201210024342.GA26428@gondor.apana.org.au> <20201210111427.GA28014@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Dec 10, 2020 at 01:03:56PM +0100, Ard Biesheuvel wrote: > > But we should probably start policing this a bit more. For instance, we now have > > drivers/net/macsec.c: > > /* Pick a sync gcm(aes) cipher to ensure order is preserved. */ > tfm = crypto_alloc_aead("gcm(aes)", 0, CRYPTO_ALG_ASYNC); > > (btw the comment is bogus, right?) > > TLS_SW does the same thing in net/tls/tls_device_fallback.c. Short of us volunteering to write code for every user out there I don't see a way out. > Async is obviously needed for h/w accelerators, but could we perhaps > do better for s/w SIMD algorithms? Those are by far the most widely > used ones. If you can come up with a way that avoids the cryptd model without using a fallback obviously that would be the ultimate solution. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt