aboutsummaryrefslogtreecommitdiff
path: root/include/crypto
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-07-11 09:54:06 +0100
committerRichard Henderson <richard.henderson@linaro.org>2023-09-15 13:57:00 +0000
commit9a65a570fab1bf2e907d593631a6b588a821d365 (patch)
tree74e3199721976c3d50a45b97282c76de65485740 /include/crypto
parenta2c67342eed42f181aa123803bc246b8fad7d1d9 (diff)
downloadqemu-9a65a570fab1bf2e907d593631a6b588a821d365.zip
qemu-9a65a570fab1bf2e907d593631a6b588a821d365.tar.gz
qemu-9a65a570fab1bf2e907d593631a6b588a821d365.tar.bz2
crypto: Add generic 32-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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/crypto/clmul.h b/include/crypto/clmul.h
index 72672b2..80de516 100644
--- a/include/crypto/clmul.h
+++ b/include/crypto/clmul.h
@@ -54,4 +54,11 @@ uint64_t clmul_16x2_even(uint64_t, uint64_t);
*/
uint64_t clmul_16x2_odd(uint64_t, uint64_t);
+/**
+ * clmul_32:
+ *
+ * Perform a 32x32->64 carry-less multiply.
+ */
+uint64_t clmul_32(uint32_t, uint32_t);
+
#endif /* CRYPTO_CLMUL_H */