]> git.ipfire.org Git - thirdparty/openssl.git/commit
riscv: SM3: Provide a Zvksh-based implementation
authorCharalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
Fri, 27 Jan 2023 15:47:41 +0000 (16:47 +0100)
committerHugo Landau <hlandau@openssl.org>
Thu, 26 Oct 2023 14:55:49 +0000 (15:55 +0100)
commitf20ee1f4908f1da9ebc072043b3cfbb90eba2508
tree87aa4c0a0e06c4a7a7f880fd2bd8717bc188ee42
parent7543bb3a69c021edbe73bb38a8cc4d3708a68c5d
riscv: SM3: Provide a Zvksh-based implementation

The upcoming RISC-V vector crypto extensions feature
a Zvksh extension, that provides SM3-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/sm3/asm/sm3-riscv64-zvksh.pl [new file with mode: 0755]
crypto/sm3/build.info
crypto/sm3/sm3_local.h
crypto/sm3/sm3_riscv.c [new file with mode: 0644]
include/crypto/riscv_arch.def
include/crypto/riscv_arch.h