Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32279794rwd; Fri, 7 Jul 2023 11:13:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlFXwwdeNHEQLrisoz5EuDnybtg/Mof3wOQTgga1a+Nz1OeQf6ej6F2lAw2fqEMEC7Gm84p3 X-Received: by 2002:a17:902:ea0b:b0:1b8:50a9:6874 with SMTP id s11-20020a170902ea0b00b001b850a96874mr7208498plg.5.1688753632792; Fri, 07 Jul 2023 11:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688753632; cv=none; d=google.com; s=arc-20160816; b=GQJPL09NTqNwFfxaIHqD5Yf6qovX6F93ujsm6cBdig9XUawRvA+UHK2qp3/sUrun1K WJg3mBoFgLmfRBcHftGqbqHnejsrhuPSitizsOGLRl93CzQXBVUHVvoK10SjxVWSb7Nj Ev4sofz5lyefQGRPDz2L6pCEbntKIHsRDlxIvDuVWl72pv7/RXr+4FDx9IjXAKPGF3iR WGIwFSPO2goPb4RwS1i3zpBX9AN0s+wmqaGkdtSjMfISTmNKg5Z1dInXU4mSx9uqdDa9 1FIlUdkq6bi6k0ZAnCzmntmriG5Rgohi4E2C35bougPD+hjhNi+HBXzNzIUnYSERFyl3 OiMw== 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=7wcEQ9m5bYiV0Sc9XdJlmN9vQ9V4GLRoFSwFNwo/c3Q=; fh=n+DqUQD7lpZgMDq9pdOo8Sd2cDTEsB7RO82KcX8wKW8=; b=Gev36ZDFtLia6fSFiibvY+Ay46x2hEo/nevCNn4SN7so0ahKgG3L2Z4P6Zk6ZceRCg rAu9WwGZf+AKauQWx5AcEXW2GNXBdSZKrUHuh1S7yWS2p7rGUCzwYGy8Vr3v2wD6YMOF LZWa/BpIThSqQQGuUKSOXcTO+8VzYRpewDejrfWSAwS1DXAse3XOyscNzVqQ/dfMVzgC kW/y7z618KrHeeZKGg2sLryumBHiDHn/KfSY3h3plDm6PiEMQNXvvi86qFNcVqM8eNxY K0E1WezU4gpwADkfHnE7nbwy4cIFRbGpu4GJZUZhGWe0HSmYc3N5z47uVhqhHb8smry/ 90ZA== 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 z11-20020a1709027e8b00b001b7e19195b7si4013862pla.29.2023.07.07.11.13.31; Fri, 07 Jul 2023 11:13:52 -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 S229515AbjGGR6Q (ORCPT + 99 others); Fri, 7 Jul 2023 13:58:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232199AbjGGR6P (ORCPT ); Fri, 7 Jul 2023 13:58:15 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 637FF170F; Fri, 7 Jul 2023 10:58:09 -0700 (PDT) Received: from i53875a50.versanet.de ([83.135.90.80] 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 1qHpiL-0001bc-JS; Fri, 07 Jul 2023 19:57:53 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Herbert Xu Cc: palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, 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 v5 4/4] RISC-V: crypto: add accelerated GCM GHASH implementation Date: Fri, 07 Jul 2023 19:57:52 +0200 Message-ID: <2640941.X9hSmTKtgW@diego> In-Reply-To: References: <20230612210442.1805962-1-heiko.stuebner@vrull.eu> <20230612210442.1805962-5-heiko.stuebner@vrull.eu> 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-crypto@vger.kernel.org Am Freitag, 16. Juni 2023, 12:34:55 CEST schrieb Herbert Xu: > On Mon, Jun 12, 2023 at 11:04:42PM +0200, Heiko Stuebner wrote: > > > > +struct riscv64_ghash_ctx { > > + void (*ghash_func)(u64 Xi[2], const u128 Htable[16], > > + const u8 *inp, size_t len); > > + > > + /* key used by vector asm */ > > + u128 htable[16]; > > + /* key used by software fallback */ > > + be128 key; > > Where is the fallback? Thanks for catching this. The fallback is of course not needed for the Zbc-based variants but only for the future vector-based variants. So this should not be in here but instead get added once its user is too. I've moved this over to that part, that I'll post separately. Heiko