summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-10-10 11:19:47 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2016-10-10 11:19:47 +0800
commitc3afafa47898e34eb49828ec4ac92bcdc81c8f0c (patch)
tree055f603e131de9c4d36dafb1856fe69c737152de /include/crypto
parentf97581cfa6e7db9818520597b8a44f8268d75013 (diff)
parent80da44c29d997e28c4442825f35f4ac339813877 (diff)
downloadlinux-stable-c3afafa47898e34eb49828ec4ac92bcdc81c8f0c.tar.gz
linux-stable-c3afafa47898e34eb49828ec4ac92bcdc81c8f0c.tar.bz2
linux-stable-c3afafa47898e34eb49828ec4ac92bcdc81c8f0c.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Merge the crypto tree to pull in vmx ghash fix.
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/ghash.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/crypto/ghash.h b/include/crypto/ghash.h
new file mode 100644
index 000000000000..2a61c9bbab8f
--- /dev/null
+++ b/include/crypto/ghash.h
@@ -0,0 +1,23 @@
+/*
+ * Common values for GHASH algorithms
+ */
+
+#ifndef __CRYPTO_GHASH_H__
+#define __CRYPTO_GHASH_H__
+
+#include <linux/types.h>
+#include <crypto/gf128mul.h>
+
+#define GHASH_BLOCK_SIZE 16
+#define GHASH_DIGEST_SIZE 16
+
+struct ghash_ctx {
+ struct gf128mul_4k *gf128;
+};
+
+struct ghash_desc_ctx {
+ u8 buffer[GHASH_BLOCK_SIZE];
+ u32 bytes;
+};
+
+#endif