Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/include/crypto/ghash.h
26278 views
1
/* SPDX-License-Identifier: GPL-2.0 */
2
/*
3
* Common values for the GHASH hash function
4
*/
5
6
#ifndef __CRYPTO_GHASH_H__
7
#define __CRYPTO_GHASH_H__
8
9
#include <linux/types.h>
10
11
#define GHASH_BLOCK_SIZE 16
12
#define GHASH_DIGEST_SIZE 16
13
14
struct gf128mul_4k;
15
16
struct ghash_ctx {
17
struct gf128mul_4k *gf128;
18
};
19
20
struct ghash_desc_ctx {
21
u8 buffer[GHASH_BLOCK_SIZE];
22
};
23
24
#endif
25
26