Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2753249rdh; Sun, 26 Nov 2023 18:52:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHdHPuvD0MmVkRXJxfPJUwpF6vpfJLR86UbXZZwl+5flgbhFuvb9lFmJIANKumTFLn6sef9 X-Received: by 2002:a05:6a20:729e:b0:18b:826e:e611 with SMTP id o30-20020a056a20729e00b0018b826ee611mr11370335pzk.40.1701053544169; Sun, 26 Nov 2023 18:52:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701053544; cv=none; d=google.com; s=arc-20160816; b=xcVwjNjqVyXZOi1TiYiGfQzuBCmQi/BawN6krpQokcYcRIiAJtwGTf82yWmUGiRXSd cQA0gbsQTAgD9JUvW9oxiXnUcvo6ivfWOJKcFpBXaNdMl5iNtTKpGWwYhB6EYWXu/8o0 z616r4pZ3MqgzJ8D6lk8ARNiXCV9UPR7BBIZBBUqC4Q3TNizLQVOjZAPyaCouDLSn9z+ MyNfPW2fQZHFFwr/lWUQdoh7+vlHOrYMU/tHcrYGGccTbVGRe7WMVLrA0xp2o/e8TqZD 5xTKR5ALEO7LrBZJShlcyxtldbBWoIxWdhcEB+Y63/DrUvFutCUFVLRMt6cfvxq8dg6L GILA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=qI9CcSDLLstHRyj21IWoZ+bA+1wKLNybWTEpCFykIso=; fh=zpHLWyeRR7dOHHeejsRbDoIpNWos9Mc4VkbV5zLYyvU=; b=YbN8Us11W6FqAUNDydWwafYnhAGhHhNi2znFIfFoJMS6RIeOIkGGoUlhJvv2zrHGI9 Y7en7TABoPMO4zMlmS/yX+7T9F2E2DhPcyH+0FjQSlLfVWKbh+Bg6HkWASmD7wm3efZx Y5b6JRHsydJsylTK2Bc9G0gmRzNCMSXdLR+md1Jm7wMfY/p3JH5PuL+KuC+eXjYbHN4z WgvM0/0YF1LQuPFzfX52/cCry7etfYMHqaFsb+a34y8Osm6i3Acwhfpw2nW/nQkKwpoG wUZL85PkLSNdmNJSs4+z5dOip+da4Aq7cmCfpZc0zAkfKqeWmd8v5yq034MEJboxexAE e0QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=SPyMhDEt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id e8-20020a17090a684800b002772b8993ebsi8978805pjm.159.2023.11.26.18.52.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 18:52:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=SPyMhDEt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C930B8087DD5; Sun, 26 Nov 2023 18:52:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231845AbjK0CwF (ORCPT + 99 others); Sun, 26 Nov 2023 21:52:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231657AbjK0CwB (ORCPT ); Sun, 26 Nov 2023 21:52:01 -0500 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EA20134 for ; Sun, 26 Nov 2023 18:52:06 -0800 (PST) Received: by mail-ot1-x333.google.com with SMTP id 46e09a7af769-6d81fbfe7aaso465647a34.1 for ; Sun, 26 Nov 2023 18:52:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1701053526; x=1701658326; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qI9CcSDLLstHRyj21IWoZ+bA+1wKLNybWTEpCFykIso=; b=SPyMhDEtqbnpufUeiooy6qsseAPLl3eau1IO7W7a1RwA9xAzWZYGzbuTYpmUWM5FDb 38PX7DCRFuqKLZ7mm7noViyo6kP9LW2mtLBseJix2FuRkFrg+zgRzWJ6ppw4SzSy12dW UDlSzr70y5fuarXbg1xRvOqiF6cpOXejAc1Zysl+aGWkK33d15qco4FT6MxXRJu6jsvg Lqf+i/EIUnu/4/O2yAH3nU7Yc1Bcya9a5K+TbUUSRhiKnW5IGqZdqqYNOqBrlNFamjBM 7MQUnuZcQtfgE0mNr1XoE/r1FPM8GxsEYJX2zgS4isGgDKnBlz09FlaGnXvLOPFh3sc3 UzrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701053526; x=1701658326; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qI9CcSDLLstHRyj21IWoZ+bA+1wKLNybWTEpCFykIso=; b=ZLO+EIU7RQ1xITfTXbhdAXNFpcuqFM4Z+44ZGRZpuEbEiA4y4ni94v/lX39oz1fZCd yBN8Q74Pkq9vjudNzwCtgMlGY2spV0GbtC6hCnGfp2rebNHTjnjMGe75nHX1U/G/dIG4 e20brF8UjHDr/t255XhWntGjBFHhZVdCbVvKvpVPNmOLymSEvjTD/KoJiVUa/G1T7x03 RG6cEOt8sVr93vqBX2vVWzlLWRqBVEA1K8n2NmiuK4wEpo3c1jhC7L6pScJymh9ojPD6 9ce+06QnWhcOT44ObXKq5KhCLJgrH8jnJ/GyR4gmLC0Yb2+fbsdMh5/Bne5fsNxIdOgx NQDQ== X-Gm-Message-State: AOJu0YzT0MM/oLr+uVOpDMc8ET5L1ZAj6X5QCvhJ6lBgh0ZvJqhG4LEf r2kjmy3vG0aj9JLfe4/X/6SBWg== X-Received: by 2002:a05:6870:9a90:b0:1fa:82:3d6b with SMTP id hp16-20020a0568709a9000b001fa00823d6bmr12180340oab.9.1701053525800; Sun, 26 Nov 2023 18:52:05 -0800 (PST) Received: from ?IPv6:2402:7500:4ce:95c7:2856:b238:775:b338? ([2402:7500:4ce:95c7:2856:b238:775:b338]) by smtp.gmail.com with ESMTPSA id c13-20020a631c4d000000b0058988954686sm6632076pgm.90.2023.11.26.18.52.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Nov 2023 18:52:05 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Subject: Re: [PATCH 06/12] RISC-V: crypto: add accelerated AES-CBC/CTR/ECB/XTS implementations From: Jerry Shih In-Reply-To: <20231122011422.GF2172@sol.localdomain> Date: Mon, 27 Nov 2023 10:52:00 +0800 Cc: Paul Walmsley , palmer@dabbelt.com, Albert Ou , 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 Content-Transfer-Encoding: 7bit Message-Id: <08090C1A-E8D9-4C87-995B-8A7A195CE1AF@sifive.com> References: <20231025183644.8735-1-jerry.shih@sifive.com> <20231025183644.8735-7-jerry.shih@sifive.com> <20231102051639.GF1498@sol.localdomain> <20231122011422.GF2172@sol.localdomain> To: Eric Biggers X-Mailer: Apple Mail (2.3445.9.7) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 groat.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 (groat.vger.email [0.0.0.0]); Sun, 26 Nov 2023 18:52:22 -0800 (PST) On Nov 22, 2023, at 09:14, Eric Biggers wrote: > 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 Fixed. We have the names like: aes-riscv64-zvkned aes-riscv64-zvkned-zvkb aes-riscv64-zvkned-zvbb-zvkg sha256-riscv64-zvknha_or_zvknhb-zvkb sha512-riscv64-zvknhb-zvkb -Jerry