aboutsummaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-07-11 10:10:47 +0100
committerRichard Henderson <richard.henderson@linaro.org>2023-09-15 13:57:00 +0000
commit00f463b38aa7cfca0bc65e3af7f2c49e1b9da690 (patch)
tree1a0835b5c4babf3806eb4d3e373691b23efdd254 /host
parentf56d3c1a140267ae88874d755fa2f24cb71a1572 (diff)
downloadqemu-00f463b38aa7cfca0bc65e3af7f2c49e1b9da690.zip
qemu-00f463b38aa7cfca0bc65e3af7f2c49e1b9da690.tar.gz
qemu-00f463b38aa7cfca0bc65e3af7f2c49e1b9da690.tar.bz2
crypto: Add generic 64-bit carry-less multiply routine
Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'host')
-rw-r--r--host/include/generic/host/crypto/clmul.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/host/include/generic/host/crypto/clmul.h b/host/include/generic/host/crypto/clmul.h
new file mode 100644
index 0000000..915bfb8
--- /dev/null
+++ b/host/include/generic/host/crypto/clmul.h
@@ -0,0 +1,15 @@
+/*
+ * No host specific carry-less multiply acceleration.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef GENERIC_HOST_CRYPTO_CLMUL_H
+#define GENERIC_HOST_CRYPTO_CLMUL_H
+
+#define HAVE_CLMUL_ACCEL false
+#define ATTR_CLMUL_ACCEL
+
+Int128 clmul_64_accel(uint64_t, uint64_t)
+ QEMU_ERROR("unsupported accel");
+
+#endif /* GENERIC_HOST_CRYPTO_CLMUL_H */