xref: /kernel/linux/linux-5.10/include/crypto/ghash.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/include/crypto/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Common values for the GHASH hash function
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef __CRYPTO_GHASH_H__
78c2ecf20Sopenharmony_ci#define __CRYPTO_GHASH_H__
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <linux/types.h>
108c2ecf20Sopenharmony_ci#include <crypto/gf128mul.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define GHASH_BLOCK_SIZE	16
138c2ecf20Sopenharmony_ci#define GHASH_DIGEST_SIZE	16
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_cistruct ghash_ctx {
168c2ecf20Sopenharmony_ci	struct gf128mul_4k *gf128;
178c2ecf20Sopenharmony_ci};
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_cistruct ghash_desc_ctx {
208c2ecf20Sopenharmony_ci	u8 buffer[GHASH_BLOCK_SIZE];
218c2ecf20Sopenharmony_ci	u32 bytes;
228c2ecf20Sopenharmony_ci};
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#endif
25

Indexes created Thu Nov 07 10:32:03 CST 2024