]> git.ipfire.org Git - thirdparty/openssl.git/commit
riscv: sha512: Provide a Zvknhb-based implementation
authorCharalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
Thu, 26 Jan 2023 16:26:51 +0000 (17:26 +0100)
committerHugo Landau <hlandau@openssl.org>
Thu, 26 Oct 2023 14:55:49 +0000 (15:55 +0100)
commit9c22a240dab51dc9a5583d36726b81073f9c8d34
tree527309ec36368aa809d48acd3b0eec6ae1d4322d
parentdb44a69aa5ce4bdc3e232ad9d7216af0eda65836
riscv: sha512: Provide a Zvknhb-based implementation

The upcoming RISC-V vector crypto extensions feature
a Zvknhb extension, that provides sha512-specific istructions.
This patch provides an implementation that utilizes this
extension if available.

Tested on QEMU and no regressions observed.

Signed-off-by: Charalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
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/perlasm/riscv.pm
crypto/sha/asm/sha512-riscv64-zvbb-zvknhb.pl [new file with mode: 0644]
crypto/sha/build.info
crypto/sha/sha_riscv.c
include/crypto/riscv_arch.def
include/crypto/riscv_arch.h