Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp782969rdf; Tue, 21 Nov 2023 17:14:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IElaPevodi14Vi3Mi53Rlx9DuK+8jsm5dZF4ZpWYjx2KovP8YDsz6FrJiAmi29qmRwc0H+M X-Received: by 2002:a17:90b:4c0d:b0:280:e858:2fdf with SMTP id na13-20020a17090b4c0d00b00280e8582fdfmr993069pjb.41.1700615678860; Tue, 21 Nov 2023 17:14:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700615678; cv=none; d=google.com; s=arc-20160816; b=kpOjJYTSVLdLkwfqVKVu9nMmgi2Z1xF2ZKzfHcKXYfLujs+iAZudTWUFlSppEhvERn fVmm9x121oJdjJmKsk+IivEqErSZ/bYtae1b1RY5ZcP9HrKQqOGD3xmR28WKSt2flhqh IhPrF/hytVEG+gXgF5324USSyYaHLiK4YV2/3R3nbhoEGOwtQG6vPur87qDHNO9Ktsnd En2IYdoyiHmfKVdVn9Nr3osnE9kSTfoE+Ar5fy5KmG2OBAwxnIl/UWfAftJZyIsGqTdV dBEAhJO8RlNIVsv9l7mzSiyAVrX61rDWEEPAQ7kNRHGVJLRTD6mOIz6jsP6kbxENSsyo d40w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3d+2nBJbKSpkzdn6NkooKP4tmnccauRwvTbMAF5c2Bc=; fh=r6l/0fNLL/AXSlcs77R52Y8eFsr4+G/MvscPXgtp5Xs=; b=mkLe7lsQ27QFRnwrnzxmmV6yToZCRdKTsE4iFJtZLeRA2U9MeTmlTkRjjv0AyCu9IH ySjJDgO76efeQoEZPWqsC5t8+f6FfCqVEle1bODDBQDMVrC3yMTZxnQWkfNGXklz04YQ RNmVqj3m896as2RlNiAU4/GgDM8fqYV2zjdTJy9W3dsE1ps4hmaqy3aMyXutB5UHHI2I rNc8CjB4ds58bymiYq1TStFfX51kHQ6cb3gdEk0O5JUAJ1P15rF1qCs4LlLvy1W0xBfv RULlDTNUU3S46Sl2sQZTKm0D0o0qVy/M/pz68JtjRWA8ZanPBuVsyA7u7SHDtNS/qQCq zwrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nrVWFy+l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id x15-20020a17090aca0f00b0027740192bc9si316257pjt.152.2023.11.21.17.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 17:14:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nrVWFy+l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B24E4807E794; Tue, 21 Nov 2023 17:14:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232932AbjKVBO2 (ORCPT + 99 others); Tue, 21 Nov 2023 20:14:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbjKVBO2 (ORCPT ); Tue, 21 Nov 2023 20:14:28 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 098EE199 for ; Tue, 21 Nov 2023 17:14:25 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23AF8C433C8; Wed, 22 Nov 2023 01:14:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700615664; bh=rphzolO4qNFSWg1tDMw1cULkepLmztnO/fdyF7aCD/s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nrVWFy+llDoq6D7PZjaiAXmmUgR9/2t/fPiONPKKVbSp1ki43ndsX1+mM//dArRI3 Ercyb0mb3CzQ0WKOE43JoMhsoS9OpGRcDGytKRRFCP+CMxPV01k2rshgGA+x/Ujagq mTvwLEBrZ6NTCoc/QEM/nqWhsm5dgsQfD6olfUePK/Ser1rEPQl80RBASM8XG5PVQO f4i6CRxJX+jNaY+OSmCbB/eCvsDC03m4Bz8QgmKAH4OWa2y/iOQ6awZG89h2k5UbJh 0zhl1vnz0yYOI6+nWUfrjudkfiS66CNcLlqJWvgSyClI5XK9kx+1yKHmiPXRiWIOv1 SPG+qtA42ri5g== Date: Tue, 21 Nov 2023 17:14:22 -0800 From: Eric Biggers To: Jerry Shih Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, herbert@gondor.apana.org.au, davem@davemloft.net, andy.chiu@sifive.com, greentime.hu@sifive.com, conor.dooley@microchip.com, guoren@kernel.org, bjorn@rivosinc.com, heiko@sntech.de, ardb@kernel.org, phoebe.chen@sifive.com, hongrong.hsu@sifive.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: Re: [PATCH 06/12] RISC-V: crypto: add accelerated AES-CBC/CTR/ECB/XTS implementations Message-ID: <20231122011422.GF2172@sol.localdomain> References: <20231025183644.8735-1-jerry.shih@sifive.com> <20231025183644.8735-7-jerry.shih@sifive.com> <20231102051639.GF1498@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231102051639.GF1498@sol.localdomain> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 17:14:37 -0800 (PST) On Wed, Nov 01, 2023 at 10:16:39PM -0700, Eric Biggers wrote: > > + Architecture: riscv64 using: > > + - Zvbb vector extension (XTS) > > + - Zvkb vector crypto extension (CTR/XTS) > > + - Zvkg vector crypto extension (XTS) > > + - Zvkned vector crypto extension > > Maybe list Zvkned first since it's the most important one in this context. BTW, I'd like to extend this request to the implementation names (.cra_driver_name) and the names of the files as well. I.e., instead of: aes-riscv64-zvkned aes-riscv64-zvkb-zvkned aes-riscv64-zvbb-zvkg-zvkned sha256-riscv64-zvkb-zvknha_or_zvknhb sha512-riscv64-zvkb-zvknhb ... we'd have: aes-riscv64-zvkned aes-riscv64-zvkned-zvkb aes-riscv64-zvkned-zvbb-zvkg sha256-riscv64-zvknha_or_zvknhb-zvkb sha512-riscv64-zvknhb-zvkb and similarly for the cra_driver_name fields. I think that's much more logical. Do you agree? - Eric