1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 /* 1 /* 3 * Common values for the GHASH hash function !! 2 * Common values for GHASH algorithms 4 */ 3 */ 5 4 6 #ifndef __CRYPTO_GHASH_H__ 5 #ifndef __CRYPTO_GHASH_H__ 7 #define __CRYPTO_GHASH_H__ 6 #define __CRYPTO_GHASH_H__ 8 7 9 #include <linux/types.h> 8 #include <linux/types.h> 10 #include <crypto/gf128mul.h> 9 #include <crypto/gf128mul.h> 11 10 12 #define GHASH_BLOCK_SIZE 16 11 #define GHASH_BLOCK_SIZE 16 13 #define GHASH_DIGEST_SIZE 16 12 #define GHASH_DIGEST_SIZE 16 14 13 15 struct ghash_ctx { 14 struct ghash_ctx { 16 struct gf128mul_4k *gf128; 15 struct gf128mul_4k *gf128; 17 }; 16 }; 18 17 19 struct ghash_desc_ctx { 18 struct ghash_desc_ctx { 20 u8 buffer[GHASH_BLOCK_SIZE]; 19 u8 buffer[GHASH_BLOCK_SIZE]; 21 u32 bytes; 20 u32 bytes; 22 }; 21 }; 23 22 24 #endif 23 #endif 25 24
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.