Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp403051rdb; Tue, 19 Dec 2023 23:48:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGuOD81ZrJLmAGmQVSykx63owbFE1MxtahuiWEFe8MXW+8yQxGjP7vMTUbng4ZcpzcTHlWB X-Received: by 2002:a05:620a:349:b0:77f:3362:f30f with SMTP id t9-20020a05620a034900b0077f3362f30fmr18953376qkm.26.1703058534189; Tue, 19 Dec 2023 23:48:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703058534; cv=none; d=google.com; s=arc-20160816; b=ieXNcBNkhK3+26ha4eRXpvbTW3gHk75QW34AvtHhSYtJAs53jkjj+OZBXOrUfr/7Es BFjBMfgK+MBHzHvbQTgcvJBjSGK1/dAyG28fG37UxePn4UyksnJkJv4WCS4gLdJ0aYsA E02toxIqLO+C9z+KEU6OYWnfSBPt8l/jQzv5+683Xrp1eJSfnzz/iXK2avy61tpVoOLz uvTCu4+AIMmlmeJJdynkXr/dmazwQmJEUW+1elKxWiFqeu/qK963/7+5XCjj36S/zvrL uiHlz2Nm8t5PcnTzlgGL6RSV95zmxNLAg5EJxm/RNEXG4Ac7JhK2NgnipQcS9y6W9C4Z z8Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=6dN0pbdc98yUG6h/RjZjFbN6EKBSj3C/aAP8NvG64wA=; fh=00XIREM7Mm4iFpUhBaxVKPba8eMNNkDzMe0/zx83v5k=; b=RlA3RpYNBFdS53W5aR+MGZ/AXBLM2QAva/6nJmGWV7b6/Mt3dYJX/o9udK3sDqEiPU h3WqVjdWWQQvWt1wK0Z3FiOArVSfyV6WGdJrpp54op+k9u45/k2tgP3EXrXHPgtk+9xU 27A7yl8NBOI0pEy4T+/Es7KV7Rf/ljEl0yzqSyU/RMVQJA/iBp+nEE5HtDGWj9I0QO2i XPo8yY5vk3BHugcT41Irzdqv2Fe1/7pDgUgYIVMrLt82hXyp2PS0ox/GivkEeYfaf8u/ Rn13ykEpUPDR+HNuXgT+DXKeuienrRmaFyjo9JCNYG3eOlV7t0cW8n7UAv3CXFQy5G7p 8Oww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sOQhgx7q; spf=pass (google.com: domain of linux-crypto+bounces-937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bn4-20020a05620a2ac400b0077dc62e66f2si2736977qkb.603.2023.12.19.23.48.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 23:48:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sOQhgx7q; spf=pass (google.com: domain of linux-crypto+bounces-937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id EBDCE1C216D1 for ; Wed, 20 Dec 2023 07:48:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B0A71D532; Wed, 20 Dec 2023 07:48:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sOQhgx7q" X-Original-To: linux-crypto@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECEFB1D528 for ; Wed, 20 Dec 2023 07:48:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 735CDC433C7 for ; Wed, 20 Dec 2023 07:48:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703058519; bh=t3YYKmMkhn2PvmtI3Y6LdZx4/HrW+mVrwx/MbVQrYg4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sOQhgx7qmFaesOhw+FvYOkkNU+kfM6wXWFzoeODcds2rQyaYN0qHdDpUg1vv3zk3V Dd+H0NGdrVW1jV7hMVeykc6B1D5HipMiQK3oT1QY9Lgy/iQZ4FZSpLHMOuMT7FacLT qUJO3AnTAi4EBf3u4ABOkWc/U3ePWJO1vj0Xz2skhEphp2GNxEFk5g1Yi5YNdD+BIS ujN9MB5RCh0xXNMoBq/kM1GNOdEYpNVIK1zQyyD47JvqMr5lefYNbIpjN8d2uyyNJU XKVXJ8FePpyMptAb5czh92jSUUAYFo9xGG4uAuBNBdJ1nBEMvPi5+mKeDEzqHBnrXr Mov+YrkINppww== Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-50e55f8d3afso36383e87.1 for ; Tue, 19 Dec 2023 23:48:39 -0800 (PST) X-Gm-Message-State: AOJu0YzKw4sJCCBa+9tV8ZmhzCxDKOejppCeeKdMaySQtJWRaeWzEU/3 cZsW8sdndbLisED8gqPmtHWH8rhQO6pMvV9Bxoc= X-Received: by 2002:a19:6408:0:b0:50e:556e:d241 with SMTP id y8-20020a196408000000b0050e556ed241mr71868lfb.100.1703058517690; Tue, 19 Dec 2023 23:48:37 -0800 (PST) Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231220065648.253236-1-ebiggers@kernel.org> In-Reply-To: <20231220065648.253236-1-ebiggers@kernel.org> From: Ard Biesheuvel Date: Wed, 20 Dec 2023 08:48:26 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] crypto: riscv - use real assembler for vector crypto extensions To: Eric Biggers Cc: Jerry Shih , linux-crypto@vger.kernel.org, linux-riscv@lists.infradead.org, Christoph Muellner Content-Type: text/plain; charset="UTF-8" On Wed, 20 Dec 2023 at 07:57, Eric Biggers wrote: > > From: Eric Biggers > > LLVM main and binutils master now both fully support v1.0 of the RISC-V > vector crypto extensions. Therefore, delete riscv.pm and use the real > assembler mnemonics for the vector crypto instructions. > > Signed-off-by: Eric Biggers Hi Eric, I agree that this is a substantial improvement. Reviewed-by: Ard Biesheuvel > --- > > Hi Jerry, this patch applies to your v3 patchset > (https://lore.kernel.org/linux-crypto/20231205092801.1335-1-jerry.shih@sifive.com). > Can you consider folding it into your patchset? Thanks! > > arch/riscv/Kconfig | 6 + > arch/riscv/crypto/Kconfig | 16 +- > .../crypto/aes-riscv64-zvkned-zvbb-zvkg.pl | 226 +++++------ > arch/riscv/crypto/aes-riscv64-zvkned-zvkb.pl | 98 ++--- > arch/riscv/crypto/aes-riscv64-zvkned.pl | 314 +++++++-------- > arch/riscv/crypto/chacha-riscv64-zvkb.pl | 34 +- > arch/riscv/crypto/ghash-riscv64-zvkg.pl | 4 +- > arch/riscv/crypto/riscv.pm | 359 ------------------ > .../sha256-riscv64-zvknha_or_zvknhb-zvkb.pl | 101 ++--- > .../crypto/sha512-riscv64-zvknhb-zvkb.pl | 52 +-- > arch/riscv/crypto/sm3-riscv64-zvksh.pl | 86 ++--- > arch/riscv/crypto/sm4-riscv64-zvksed.pl | 62 +-- > 12 files changed, 503 insertions(+), 855 deletions(-) > delete mode 100644 arch/riscv/crypto/riscv.pm > ...