Add clmul-based gmult for riscv64 with Zbb, Zbc
authorHenry Brausen <henry.brausen@vrull.eu>
Fri, 28 Jan 2022 08:53:07 +0000 (01:53 -0700)
committerPauli <pauli@openssl.org>
Thu, 19 May 2022 06:32:49 +0000 (16:32 +1000)
commit999376dcf33986c468361ede16fa9de409dc4e2e
tree2bb9b05f448d7277d4970fb528e688e303f2c4e6
parent360f6dcc5aa1a86ec3ff9a94612b88e3d960ee2e
Add clmul-based gmult for riscv64 with Zbb, Zbc

ghash-riscv64.pl implements 128-bit galois field multiplication for
use in the GCM mode using RISC-V carryless multiplication primitives.

The clmul-accelerated routine can be selected by setting the Zbb and
Zbc bits of the OPENSSL_riscvcap environment variable at runtime.

Reviewed-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
Signed-off-by: Henry Brausen <henry.brausen@vrull.eu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17640)
crypto/modes/asm/ghash-riscv64.pl [new file with mode: 0644]
crypto/modes/build.info
crypto/modes/gcm128.c