Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35120018rwd; Mon, 10 Jul 2023 02:54:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlEIsK5jYWWm7+x4Bt/z0731c9y+4STrwBfs/MZ5UKokJ122bi3o2c063oHTeDVXA3B8fenf X-Received: by 2002:a05:6a20:3d0d:b0:123:149b:a34f with SMTP id y13-20020a056a203d0d00b00123149ba34fmr17120716pzi.1.1688982898752; Mon, 10 Jul 2023 02:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688982898; cv=none; d=google.com; s=arc-20160816; b=Y9CMWunstSre2rNpR+iasFk07kslmM/V8For4Yn0xelf8xfqsvpnd18kxRQnRbZZKt 0BNwUPoV4OSj/P0DRTKp6mM8Ks1+afXZIzKpyt3r86KF1JnFTUcWK9i+mW9TcNjdQ6SC ECaiXdselNXJYkzPS9CqCNwJZ7K0JU8TMnb0eYLMMwXc6C6737h9/H2FJepiZyIGPkLS 7B8VJd0OictCeDpqAwk4AFYkJXZSgaBN50oJLwEY7HdT7wJbkEixmIMC8uQx6d+Kk15C VyQl2y2R8I+FRJinIkL/32gkL+ICE82Kar69AJ4xCbnx4yGgXwu+Xq/eDYBoZ7wQiT3q YxhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=85lqmTwobTFwnBXYqiaJ0vKtMPYCzicZnkvRNyE+BEA=; fh=Lewp8Gm3KJz2D/DLL95KfRY4bEj2eugZBJvkft4MuV0=; b=Rzrk9xGPv4ewetUSZOrTweZrZdesr23Fs6bFIKjK00gT1lOUqUTTbflqqT6nfS3ABm ovuvgQJnRrB1QOF9H4jsXujDhBBzm/8o9ZR3UEIpRflGErxiO/0F6kvI8346p1CejA1Z JK/klRS02IC7+4a4Iuh3DLIWwVXGfwHQ0wo9k6CkS/GtpBg6Q4BC6QlVUZ1skafrq52d CiKvL9QcS/2tFlbZJd6TED8vpaCWdlJTrS4I+SFG1lB6z1NOv3KA7LcE3BJr0rOpZgvJ B+uYE1NcP/dhOYMpSd+93TNFaRSE99TtnnxZDgo6c3n5X2/ogD2gleMRzvIBfShFs569 aC1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h189-20020a636cc6000000b005533d6eb7cfsi8352599pgc.477.2023.07.10.02.54.38; Mon, 10 Jul 2023 02:54:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232327AbjGJJvD (ORCPT + 99 others); Mon, 10 Jul 2023 05:51:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232443AbjGJJuQ (ORCPT ); Mon, 10 Jul 2023 05:50:16 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D2F61FC6; Mon, 10 Jul 2023 02:45:13 -0700 (PDT) Received: from i53875a50.versanet.de ([83.135.90.80] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qInRy-0007zw-0Y; Mon, 10 Jul 2023 11:44:58 +0200 From: Heiko Stuebner To: Eric Biggers Cc: palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, herbert@gondor.apana.org.au, davem@davemloft.net, conor.dooley@microchip.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, christoph.muellner@vrull.eu, Heiko Stuebner Subject: Re: [PATCH v5 0/4] Implement GCM ghash using Zbc and Zbkb extensions Date: Mon, 10 Jul 2023 11:44:56 +0200 Message-ID: <5381895.Sb9uPGUboI@phil> In-Reply-To: <20230613030216.GC883@sol.localdomain> References: <20230612210442.1805962-1-heiko.stuebner@vrull.eu> <20230613030216.GC883@sol.localdomain> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_HELO_TEMPERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Eric, Am Dienstag, 13. Juni 2023, 05:02:16 CEST schrieb Eric Biggers: > Hi Heiko, > > On Mon, Jun 12, 2023 at 11:04:38PM +0200, Heiko Stuebner wrote: > > From: Heiko Stuebner > > > > This was originally part of my vector crypto series, but was part > > of a separate openssl merge request implementing GCM ghash as using > > non-vector extensions. > > > > As that pull-request > > https://github.com/openssl/openssl/pull/20078 > > got merged recently into openssl, we could also check if this could > > go into the kernel as well and provide a base for further accelerated > > cryptographic support. > > I'm still a bit skeptical of the usefulness of a standalone "ghash" > implementation, when in practice it will only be used as part of "gcm(aes)". > Directly implementing "gcm(aes)" (instead of relying on crypto/gcm.c to compose > "ghash" and "ctr(aes)") also allows some performance optimizations. > > I asked about this on v4 > (https://lore.kernel.org/linux-crypto/ZCSG71bRuTzVutdm@gmail.com/), > but I didn't receive a response. > > Any thoughts on this? somehow I always seem to overlook this when adapting the series :-( I guess for me the main gcm was always a stepping stone to get started and extend later. This is my first rodeo with crypto stuff in the kernel, so this looks like a manageable chunk and as can be seen by the discussion we had about licensing brings enough topics on its own :-) . Heiko