diff options
Diffstat (limited to 'include')
| -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 | ||
