Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1499863rwr; Wed, 26 Apr 2023 16:28:42 -0700 (PDT) X-Google-Smtp-Source: AKy350a/Hc0iF5LqJBCnrRG4nBsZFFI08MSUKwOCmSKZNI/tZbz8ymIYdgPzDJM1y8LQi7Nv7ap0 X-Received: by 2002:a17:90a:660d:b0:246:f9ff:8e70 with SMTP id l13-20020a17090a660d00b00246f9ff8e70mr21340712pjj.26.1682551722243; Wed, 26 Apr 2023 16:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682551722; cv=none; d=google.com; s=arc-20160816; b=i8RXz2J5VYPEdSuDh7yvEpTk74zwfYVm1l2oSnswxirXyyuVv3ne8dkJ/+jVnAINfg ypBFQ6T3ZMvKEZb3wCc0owmWQqNsru6LMaCRzTF5/TJ7LZ/VDVjGEsZ90S2wyueDO4xW RtvppRtPRrKhiZTVIAtUyteYEfKFcgijxt8twJXTK8PGNWOm74t6aPGNEhjuwT5gmhFO 5DWidFiJaF6fvLWH+BubC0FF7SoVGgsbfarVVcpatWrmla8ZxCSDnSzRFQ3dLJfCrrGe aO/AtsnZLeskoDTOY4IiYDrhh/qYqcMRoCKGt7UXor2mUAX67lyMbyD2cEocHEJBnVx3 uVuw== 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=tmFuIZnJHmboESpRh0q57frA6YPhK4/sLpKHTOHMgQA=; b=L2tj/YhwKsgjVxO83A+RV0F4B3uK/2aD4Csr0mcA45SO3CVlJ9Ff0z7/rVr+IxO4qU FAfoC1+tpNG/d8oFxR/pMnKxLPxmD9gZwzRJ2bV33NLW+RqfHWEqaMyObiOx2jHbvUlA IBlChjOpHoAnRRvWSGfxBkL7j6WYKAkOZwWY8W4Kt7TEEbmYIsQy+HwkDvracCpDNljA uMCnKb3KHWAAIIKHFwpKRJdfOeF8PjbK/B4EqoW+SRaxuuXpF3jljKcZWaNoxh4D0B0V 4n7obO4tNg2ZwPgSmwEJtljDSBpgzBhVsgA2sqv8MYqUFeAOLDJ5bTxNVxfbG3UbDUSi fJmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 na14-20020a17090b4c0e00b00246b8a3079dsi21413932pjb.92.2023.04.26.16.28.29; Wed, 26 Apr 2023 16:28:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S239892AbjDZXVW (ORCPT + 99 others); Wed, 26 Apr 2023 19:21:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233315AbjDZXVT (ORCPT ); Wed, 26 Apr 2023 19:21:19 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E8EA3A9F; Wed, 26 Apr 2023 16:21:08 -0700 (PDT) Received: from ip4d1634d3.dynamic.kabel-deutschland.de ([77.22.52.211] helo=diego.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 1proR6-0000Cq-Lc; Thu, 27 Apr 2023 01:20:32 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= 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 Subject: Re: [PATCH v4 0/4] Implement GCM ghash using Zbc and Zbkb extensions Date: Thu, 27 Apr 2023 01:20:31 +0200 Message-ID: <7664296.GXAFRqVoOG@diego> In-Reply-To: <20230426225550.GA65659@sol.localdomain> References: <20230329140642.2186644-1-heiko.stuebner@vrull.eu> <20230426225550.GA65659@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,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-kernel@vger.kernel.org Hi Eric, Am Donnerstag, 27. April 2023, 00:55:50 CEST schrieb Eric Biggers: > On Wed, Mar 29, 2023 at 04:06: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. > > One more question. It seems that this patchset uses the RISC-V scalar crypto > extensions. I've been hearing rumors that the RISC-V scalar crypto extensions > have been superseded by the vector crypto extensions. Is that accurate? I > wonder if it's worth putting effort into implementations that use the scalar > crypto extensions when they might already be obsolete. Yes there are the vector crypto extensions - still deep in the ratification process. And of course the RISC-V speciality, all extensions are separate entities that core manufacturers can select at will. And I guess the whole vector extension + vector-crypto extensions might require more investment for manufacturers, where the variants introduced here also "just" work with bitmanip instructions (Zbb + Zbc extensions). But for me, this small bit of scalar crypto is also sort of a stepping stone :-). Previous versions [0] already included patches using the vector crypto extensions too, I just split that into a separate thing, as _this_ series actually uses ratified extensions :-) Heiko [0] https://lore.kernel.org/lkml/20230313191302.580787-12-heiko.stuebner@vrull.eu/T/