From: Zhihang Shao <zhihang.shao.iscas@gmail.com>
To: herbert@gondor.apana.org.au
Cc: davem@davemloft.net, palmer@dabbelt.com,
paul.walmsley@sifive.com, aou@eecs.berkeley.edu,
akpm@linux-foundation.org, linux-crypto@vger.kernel.org,
linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] RISC-V CRC-T10DIF optimization with zbc extension and CRC-T10DIF selftest
Date: Wed, 13 Nov 2024 10:40:34 +0000 [thread overview]
Message-ID: <20241113104036.254491-1-zhihang.shao.iscas@gmail.com> (raw)
Compared to other architectures, RISC-V still lacks accerlerated implementations
for some encryption and checksum algorithms.
This patchset aims to add optimization for crc-t10dif algorithm with zbc extension.
To verify the correctness and measure performance of the optimization,
the selftest is also included as part of patchset.
Zhihang Shao (2):
lib/crct10diftest.c add selftests for crct10dif
riscv: Optimize crct10dif with zbc extension
arch/riscv/crypto/Kconfig | 14 +
arch/riscv/crypto/Makefile | 4 +
arch/riscv/crypto/crct10dif-riscv-zbc.c | 182 +++++++
lib/Kconfig | 9 +
lib/Makefile | 1 +
lib/crct10diftest.c | 687 ++++++++++++++++++++++++
6 files changed, 897 insertions(+)
create mode 100644 arch/riscv/crypto/crct10dif-riscv-zbc.c
create mode 100644 lib/crct10diftest.c
--
2.34.1
next reply other threads:[~2024-11-13 10:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-13 10:40 Zhihang Shao [this message]
2024-11-13 10:40 ` [PATCH 1/2] lib/crct10diftest.c add selftests for crct10dif Zhihang Shao
2024-11-13 13:46 ` Eric Biggers
2024-11-14 14:42 ` [PATCH v2] riscv: Optimize crct10dif with zbc extension Zhihang Shao
2024-11-13 10:40 ` [PATCH 2/2] " Zhihang Shao
2024-11-14 7:04 ` Chunyan Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241113104036.254491-1-zhihang.shao.iscas@gmail.com \
--to=zhihang.shao.iscas@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=aou@eecs.berkeley.edu \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®