ghash.h 381 B

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