Update for Zvkb extension.
authorJerry Shih <bignose1007@gmail.com>
Thu, 28 Sep 2023 05:51:17 +0000 (13:51 +0800)
committerHugo Landau <hlandau@openssl.org>
Thu, 26 Oct 2023 14:55:50 +0000 (15:55 +0100)
commit3645eb0be22a4cea4300ab5afbf248d195d0f45b
tree39cf602aa0109e42c0048e9f1deb0f67befbaef6
parentd26d01e5ec29ce0c94ae18c9cdedd8f1c036fcc3
Update for Zvkb extension.

https://github.com/riscv/riscv-crypto/blob/c8ddeb7e64a3444dda0438316af1238aeed72041/doc/vector/riscv-crypto-vector-zvkb.adoc
Create `RISCV_HAS_ZVKB()` macro.
Use zvkb for SM4 instead of zvbb.
Use zvkb for ghash instead of zvbb.
We could just use the zvbb's subset `zvkb` for flexibility.

Signed-off-by: Jerry Shih <jerry.shih@sifive.com>
Signed-off-by: Phoebe Chen <phoebe.chen@sifive.com>
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)
12 files changed:
crypto/modes/asm/ghash-riscv64-zvkb-zvbc.pl [moved from crypto/modes/asm/ghash-riscv64-zvbb-zvbc.pl with 92% similarity]
crypto/modes/asm/ghash-riscv64-zvkg.pl
crypto/modes/build.info
crypto/modes/gcm128.c
crypto/perlasm/riscv.pm
crypto/sm4/asm/sm4-riscv64-zvksed.pl
include/crypto/riscv_arch.def
include/crypto/riscv_arch.h
providers/implementations/ciphers/cipher_sm4_ccm_hw_rv64i.inc
providers/implementations/ciphers/cipher_sm4_gcm_hw_rv64i.inc
providers/implementations/ciphers/cipher_sm4_hw_rv64i.inc
providers/implementations/ciphers/cipher_sm4_xts_hw_rv64i.inc