aboutsummaryrefslogtreecommitdiff
path: root/include/crypto
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-07-11 09:14:58 +0100
committerRichard Henderson <richard.henderson@linaro.org>2023-09-15 13:57:00 +0000
commitcf1b2cab835f816915c8a170ec783922bc4e56a3 (patch)
tree1b09497986614f5cd5517bcad884ab56e9fbd656 /include/crypto
parentcec4090d9487be9afe937b055e02a82c33e53320 (diff)
downloadqemu-cf1b2cab835f816915c8a170ec783922bc4e56a3.zip
qemu-cf1b2cab835f816915c8a170ec783922bc4e56a3.tar.gz
qemu-cf1b2cab835f816915c8a170ec783922bc4e56a3.tar.bz2
crypto: Add generic 16-bit carry-less multiply routines
Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/clmul.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/crypto/clmul.h b/include/crypto/clmul.h
index 153b5e3..72672b2 100644
--- a/include/crypto/clmul.h
+++ b/include/crypto/clmul.h
@@ -38,4 +38,20 @@ uint64_t clmul_8x4_odd(uint64_t, uint64_t);
*/
uint64_t clmul_8x4_packed(uint32_t, uint32_t);
+/**
+ * clmul_16x2_even:
+ *
+ * Perform two 16x16->32 carry-less multiplies.
+ * The odd words of the inputs are ignored.
+ */
+uint64_t clmul_16x2_even(uint64_t, uint64_t);
+
+/**
+ * clmul_16x2_odd:
+ *
+ * Perform two 16x16->32 carry-less multiplies.
+ * The even words of the inputs are ignored.
+ */
+uint64_t clmul_16x2_odd(uint64_t, uint64_t);
+
#endif /* CRYPTO_CLMUL_H */