Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4737912pxu; Thu, 10 Dec 2020 04:24:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxznZAyAq7cvuH1OVcYvOD2TrlwyjBBZMDDVIpWjHUl8yDF0ZFF7DQz8mWKFlzWIlgzhSn7 X-Received: by 2002:a05:6402:1ac4:: with SMTP id ba4mr6423316edb.383.1607603077564; Thu, 10 Dec 2020 04:24:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607603077; cv=none; d=google.com; s=arc-20160816; b=U4pMj0Y2e/yP82bTEq+ABmiEiW+n39ILJI658o+RviOcyuygu+IK2VoxRtaaLP7Y6j qHBRwYNbpXbSIwOxJsq0RqcT1C9fPWPwYVBnUatg0YW00IwuE+XkkdOPQcdF88HsAoi4 GEwOt5NP6ZtEsfELjo/cADx0sPc/e1yUqt8p4VXc6BAqbNDFlnwEKzQerJocHPrYCgj4 qNjaZBbQ6fA1q8UJ0Ai1MpWtZaondX/sOKNx6+6VT6ivfEtWUtl1IlB/0gl0piFO/4rf idgSCllNICPhbC3kvaMFF6nieMCA/txwDjihsDYvBai02huUJ6GIIbU284TMg9xPwhBd NJUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fo8ld373C6zHqSeWe67m7KvLDbRIm0wGsfnedisyKx4=; b=beiRWWyJHvO5rHClC5LfHiKwis6zkmD3PopgD41BiGFuX0xrY69zUQg4z01j7/ag5b vr7rSIEYYyh7OUKiUXdJDd41lCGPYAGfTs0batMeI9KjU+i+pdDUO7efhurlEGQ1PdTD NbGhz/f6osNuYgGunR6TKEdHIBSKlI4ob7ex0cMYX+4Zo+iofmB4CqsSL16jwbPSIjZd P4HCmykT0JrrtlNjobhGAxPdxsyYL63gXbpDEk1Px3SkeRMTiJyLbHK9mv45VrkgXORZ WEz55S9/lEis87gRXqw4ZKH1XvtR8XjvbXj6gQrmzNIbhfXoc5PaHa8Hjx3YX2otETv4 ezZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=afqEMCDv; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e10si2705702edk.554.2020.12.10.04.24.14; Thu, 10 Dec 2020 04:24:37 -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=@kernel.org header.s=k20201202 header.b=afqEMCDv; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727824AbgLJMUW (ORCPT + 99 others); Thu, 10 Dec 2020 07:20:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:60328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727277AbgLJMUM (ORCPT ); Thu, 10 Dec 2020 07:20:12 -0500 X-Gm-Message-State: AOAM533y3unPK8KqCX0H71TuIRD2uuiVWTeefqfdXh//+MnaDRtylZNj iM5hOBbiZsLjSFMl0WlR9iziRPttC2UXTJRGGOg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607602770; bh=fo8ld373C6zHqSeWe67m7KvLDbRIm0wGsfnedisyKx4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=afqEMCDvkaZy1QMb5zxfFlK7I8EcdSUZ1F5XGfJ7CP1L3FRkUZbWQIA7ww8Q2idHE NZhHJgw2Sk28/YmlgfNV5v+C1cx3MgQvF1Z+V0hr7AKzUgDDtntC9qzTtidGMoths5 jCVmb794jlCgpigQi77LNTAty6PmmdrmIZXcer2LP2FvNYe55f9LHThW3I7TltlnUC 2gqfm8okzwIVa9jV9PVeSs//2lajb9NEMGiTQP57JH7kzLFxeOJW97wxokreJYwvi9 OPaOCd1I+c/DfAjxgEDtOnTZ1iU5X027qe6OZM5kKweN8F0dySFgHXR+TRxydxt8pw mI9CzsMHJIFmw== X-Received: by 2002:a9d:12c:: with SMTP id 41mr5509447otu.77.1607602769297; Thu, 10 Dec 2020 04:19:29 -0800 (PST) MIME-Version: 1.0 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> <20201210121627.GB28441@gondor.apana.org.au> In-Reply-To: <20201210121627.GB28441@gondor.apana.org.au> From: Ard Biesheuvel Date: Thu, 10 Dec 2020 13:19:18 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] crypto: aesni - add ccm(aes) algorithm implementation To: Herbert Xu Cc: Ben Greear , Linux Crypto Mailing List , Steve deRosier Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, 10 Dec 2020 at 13:16, Herbert Xu wrote: > > 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. > Could we disable softirq handling in these regions?