Re: [PATCH V2] crypto: aegis128: Add RISC-V vector SIMD implementation
From: Herbert Xu
Date: Fri Feb 06 2026 - 05:09:54 EST
On Mon, Jan 26, 2026 at 05:24:11PM +0800, Chunyan Zhang wrote:
> Add a RISC-V vector-accelerated implementation of aegis128 by
> wiring it into the generic SIMD hooks.
>
> This implementation supports vlen values of 512, 256, and 128.
>
> Signed-off-by: Chunyan Zhang <zhangchunyan@xxxxxxxxxxx>
> ---
> V2:
> - Add config dependency of RISCV_ISA_V to fix the issue reported by kernel test robot;
> - Add return value in preload_round_data() and aegis128_round().
>
> V1: https://lore.kernel.org/all/20260121101923.64657-1-zhangchunyan@xxxxxxxxxxx/
> ---
> crypto/Kconfig | 4 +-
> crypto/Makefile | 4 +
> crypto/aegis-rvv.h | 19 +
> crypto/aegis128-rvv-inner.c | 762 ++++++++++++++++++++++++++++++++++++
> crypto/aegis128-rvv.c | 63 +++
> 5 files changed, 850 insertions(+), 2 deletions(-)
> create mode 100644 crypto/aegis-rvv.h
> create mode 100644 crypto/aegis128-rvv-inner.c
> create mode 100644 crypto/aegis128-rvv.c
In light of the recent move of aes from crypto to lib/crypto,
perhaps the same should be done for aegis?
Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt