diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-10-09 23:19:47 -0400 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-10-09 23:19:47 -0400 |
| commit | c3afafa47898e34eb49828ec4ac92bcdc81c8f0c (patch) | |
| tree | 055f603e131de9c4d36dafb1856fe69c737152de /include/crypto | |
| parent | f97581cfa6e7db9818520597b8a44f8268d75013 (diff) | |
| parent | 80da44c29d997e28c4442825f35f4ac339813877 (diff) | |
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.h | 23 |
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 @@ | |||
| 1 | /* | ||
| 2 | * Common values for GHASH algorithms | ||
| 3 | */ | ||
| 4 | |||
| 5 | #ifndef __CRYPTO_GHASH_H__ | ||
| 6 | #define __CRYPTO_GHASH_H__ | ||
| 7 | |||
| 8 | #include <linux/types.h> | ||
| 9 | #include <crypto/gf128mul.h> | ||
| 10 | |||
| 11 | #define GHASH_BLOCK_SIZE 16 | ||
| 12 | #define GHASH_DIGEST_SIZE 16 | ||
| 13 | |||
| 14 | struct ghash_ctx { | ||
| 15 | struct gf128mul_4k *gf128; | ||
| 16 | }; | ||
| 17 | |||
| 18 | struct ghash_desc_ctx { | ||
| 19 | u8 buffer[GHASH_BLOCK_SIZE]; | ||
| 20 | u32 bytes; | ||
| 21 | }; | ||
| 22 | |||
| 23 | #endif | ||
