]> Gentwo Git Trees - linux/.git/commit
lib/crypto: riscv/poly1305: Import OpenSSL/CRYPTOGAMS implementation
authorZhihang Shao <zhihang.shao.iscas@gmail.com>
Fri, 29 Aug 2025 15:25:13 +0000 (08:25 -0700)
committerEric Biggers <ebiggers@kernel.org>
Fri, 29 Aug 2025 16:49:18 +0000 (09:49 -0700)
commitbef9c755986980eecc18e9cecd847bc3c037aebb
tree25967001759068d69e4e9b6e63af77fff518fcb3
parentb646b782e522da3509e61f971e5502fccb3a3723
lib/crypto: riscv/poly1305: Import OpenSSL/CRYPTOGAMS implementation

This is a straight import of the OpenSSL/CRYPTOGAMS Poly1305
implementation for riscv authored by Andy Polyakov.  The file
'poly1305-riscv.pl' is taken straight from
https://github.com/dot-asm/cryptogams commit
5e3fba73576244708a752fa61a8e93e587f271bb.  This patch was tested on
SpacemiT X60, with 2~2.5x improvement over generic implementation.

Signed-off-by: Chunyan Zhang <zhangchunyan@iscas.ac.cn>
Signed-off-by: Zhihang Shao <zhihang.shao.iscas@gmail.com>
[EB: ported to lib/crypto/riscv/]
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250829152513.92459-4-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/Kconfig
lib/crypto/Makefile
lib/crypto/riscv/poly1305-riscv.pl [new file with mode: 0644]
lib/crypto/riscv/poly1305.h [new file with mode: 0644]