diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-10-10 05:19:47 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-10-10 05:19:47 +0200 |
commit | c3afafa47898e34eb49828ec4ac92bcdc81c8f0c (patch) | |
tree | 055f603e131de9c4d36dafb1856fe69c737152de /include/crypto | |
parent | crypto: caam - treat SGT address pointer as u64 (diff) | |
parent | crypto: vmx - Fix memory corruption caused by p8_ghash (diff) | |
download | linux-c3afafa47898e34eb49828ec4ac92bcdc81c8f0c.tar.xz linux-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.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 @@ +/* + * 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 |