ghash.h 342 B

1234567891011121314151617181920212223
  1. /*
  2. * Common values for GHASH algorithms
  3. */
  4. #ifndef __CRYPTO_GHASH_H__
  5. #define __CRYPTO_GHASH_H__
  6. #include <linux/types.h>
  7. #include <crypto/gf128mul.h>
  8. #define GHASH_BLOCK_SIZE 16
  9. #define GHASH_DIGEST_SIZE 16
  10. struct ghash_ctx {
  11. struct gf128mul_4k *gf128;
  12. };
  13. struct ghash_desc_ctx {
  14. u8 buffer[GHASH_BLOCK_SIZE];
  15. u32 bytes;
  16. };
  17. #endif