mbox series

[0/2] RISC-V CRC-T10DIF optimization with zbc extension and CRC-T10DIF selftest

Message ID 20241113104036.254491-1-zhihang.shao.iscas@gmail.com (mailing list archive)
Headers show
Series RISC-V CRC-T10DIF optimization with zbc extension and CRC-T10DIF selftest | expand

Message

Zhihang Shao Nov. 13, 2024, 10:40 a.m. UTC
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