- share it between target/arm and target/riscv
Signed-off-by: Weiwei Li<liweiwei@iscas.ac.cn>
Signed-off-by: Junqiang Wang<wangjunqiang@iscas.ac.cn>
Reviewed-by: Philippe Mathieu-Daudé<philmd@redhat.com>
Reviewed-by: Alistair Francis<alistair.francis@wdc.com>
---
crypto/meson.build | 1 +
crypto/sm4.c | 49 ++++++++++++++++++++++++++++++++++++++
include/crypto/sm4.h | 6 +++++
target/arm/crypto_helper.c | 36 +---------------------------
4 files changed, 57 insertions(+), 35 deletions(-)
create mode 100644 crypto/sm4.c
create mode 100644 include/crypto/sm4.h