From 17073066520dbbf1ef3ce4856c570d61e9548083 Mon Sep 17 00:00:00 2001 From: Charalampos Mitrodimas Date: Thu, 26 Jan 2023 14:58:30 +0100 Subject: riscv: sha256: Provide a Zvknha-based implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Christoph Müllner Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/21923) --- include/crypto/riscv_arch.def | 1 + 1 file changed, 1 insertion(+) (limited to 'include/crypto/riscv_arch.def') diff --git a/include/crypto/riscv_arch.def b/include/crypto/riscv_arch.def index d727ef7824..6462d30156 100644 --- a/include/crypto/riscv_arch.def +++ b/include/crypto/riscv_arch.def @@ -37,6 +37,7 @@ RISCV_DEFINE_CAP(ZVBB, 0, 15) RISCV_DEFINE_CAP(ZVBC, 0, 16) RISCV_DEFINE_CAP(ZVKG, 0, 17) RISCV_DEFINE_CAP(ZVKNED, 0, 18) +RISCV_DEFINE_CAP(ZVKNHA, 0, 19) /* * In the future ... -- cgit v1.2.3