]> git.ipfire.org Git - thirdparty/openssl.git/commit
riscv: sha256: Provide a Zvknha-based implementation
authorCharalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
Thu, 26 Jan 2023 13:58:30 +0000 (14:58 +0100)
committerHugo Landau <hlandau@openssl.org>
Thu, 26 Oct 2023 14:55:49 +0000 (15:55 +0100)
commit17073066520dbbf1ef3ce4856c570d61e9548083
tree343ac61f6a0ccb625d7bafe791c2cce28f0eb870
parent204a1c9854193bd7fcc3ea1baaf685c9a67d17bb
riscv: sha256: Provide a Zvknha-based implementation

The upcoming RISC-V vector crypto extensions feature
a Zvknha extension, that provides sha256-specific instructions.
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/sha256-riscv64-zvbb-zvknha.pl [new file with mode: 0644]
crypto/sha/build.info
crypto/sha/sha_riscv.c [new file with mode: 0644]
include/crypto/riscv_arch.def
include/crypto/riscv_arch.h