aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWeiwei Li <liweiwei@iscas.ac.cn>2022-04-23 10:35:01 +0800
committerAlistair Francis <alistair.francis@wdc.com>2022-04-29 10:47:45 +1000
commitc29da5a7fe6a5d3e1719ce9a831076df2eff52d5 (patch)
tree618cec7c2ae9081f0a90d587a0fef74b80d31710 /include
parent0496389680a1d5e27e81fc0153b956a763defe4b (diff)
downloadqemu-c29da5a7fe6a5d3e1719ce9a831076df2eff52d5.zip
qemu-c29da5a7fe6a5d3e1719ce9a831076df2eff52d5.tar.gz
qemu-c29da5a7fe6a5d3e1719ce9a831076df2eff52d5.tar.bz2
crypto: move sm4_sbox from target/arm
- 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> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220423023510.30794-6-liweiwei@iscas.ac.cn> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include')
-rw-r--r--include/crypto/sm4.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/crypto/sm4.h b/include/crypto/sm4.h
new file mode 100644
index 0000000..9bd3ebc
--- /dev/null
+++ b/include/crypto/sm4.h
@@ -0,0 +1,6 @@
+#ifndef QEMU_SM4_H
+#define QEMU_SM4_H
+
+extern const uint8_t sm4_sbox[256];
+
+#endif