riscv: GCM: Provide a Zvkg-based implementation
authorChristoph Müllner <christoph.muellner@vrull.eu>
Wed, 18 Jan 2023 12:16:26 +0000 (13:16 +0100)
committerHugo Landau <hlandau@openssl.org>
Thu, 26 Oct 2023 14:55:49 +0000 (15:55 +0100)
commit5191bcc81650c34a4660a0921124e4195e18e4b0
treea4eef529d39b68179321cd706bf63d02cfca78dc
parent003f5698146b81f3185d7f17d60a7351c69e236d
riscv: GCM: Provide a Zvkg-based implementation

The upcoming RISC-V vector crypto extensions feature
a Zvkg extension, that provides a vghmac.vv instruction.
This patch provides an implementation that utilizes this
extension if available.

Tested on QEMU and no regressions observed.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21923)
crypto/modes/asm/ghash-riscv64-zvkg.pl [new file with mode: 0644]
crypto/modes/build.info
crypto/modes/gcm128.c
crypto/perlasm/riscv.pm
include/crypto/riscv_arch.def