blob: f832c9f2aca3036afabba2d91e910164188f2ce3 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Marcelo Cerria397ba82016-09-28 13:42:09 -03002/*
Eric Biggers8dfa20f2019-07-19 23:09:18 -07003 * Common values for the GHASH hash function
Marcelo Cerria397ba82016-09-28 13:42:09 -03004 */
5
6#ifndef __CRYPTO_GHASH_H__
7#define __CRYPTO_GHASH_H__
8
9#include <linux/types.h>
10#include <crypto/gf128mul.h>
11
12#define GHASH_BLOCK_SIZE 16
13#define GHASH_DIGEST_SIZE 16
14
15struct ghash_ctx {
16 struct gf128mul_4k *gf128;
17};
18
19struct ghash_desc_ctx {
20 u8 buffer[GHASH_BLOCK_SIZE];
21 u32 bytes;
22};
23
24#endif