Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lib/crypto: gf128hash: Remove unused content from ghash.h

Now that the structures in <crypto/ghash.h> are no longer used, remove
them. Since this leaves <crypto/ghash.h> as just containing constants,
include it from <crypto/gf128hash.h> to deduplicate these definitions.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260319061723.1140720-19-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>

+1 -14
+1 -2
include/crypto/gf128hash.h
··· 8 8 #ifndef _CRYPTO_GF128HASH_H 9 9 #define _CRYPTO_GF128HASH_H 10 10 11 + #include <crypto/ghash.h> 11 12 #include <linux/string.h> 12 13 #include <linux/types.h> 13 14 14 - #define GHASH_BLOCK_SIZE 16 15 - #define GHASH_DIGEST_SIZE 16 16 15 #define POLYVAL_BLOCK_SIZE 16 17 16 #define POLYVAL_DIGEST_SIZE 16 18 17
-12
include/crypto/ghash.h
··· 6 6 #ifndef __CRYPTO_GHASH_H__ 7 7 #define __CRYPTO_GHASH_H__ 8 8 9 - #include <linux/types.h> 10 - 11 9 #define GHASH_BLOCK_SIZE 16 12 10 #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 11 24 12 #endif