Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH] lib/crypto: aes-gcm: Fix CRYPTO_LIB_GF128HASH selection
@ 2026-07-22  2:17 Eric Biggers
  2026-07-22 19:04 ` Eric Biggers
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2026-07-22  2:17 UTC (permalink / raw)
  To: linux-crypto
  Cc: linux-kernel, Ard Biesheuvel, Jason A . Donenfeld, Herbert Xu,
	Eric Biggers, kernel test robot

Move the selection of CRYPTO_LIB_GF128HASH from CRYPTO_LIB_AES_GCM to
CRYPTO_LIB_AES to avoid a build error when CRYPTO_LIB_AES=y &&
CRYPTO_LIB_AES_GCM=m.  Like the other AES modes, AES-GCM is included in
libaes as an optional feature rather than a dedicated module.

Fixes: 2bbb64399435 ("lib/crypto: aes: Add GCM support")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202607220918.2RL0wGGS-lkp@intel.com/
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
---
 lib/crypto/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/crypto/Kconfig b/lib/crypto/Kconfig
index 65a478f69715d..18cc911f79df6 100644
--- a/lib/crypto/Kconfig
+++ b/lib/crypto/Kconfig
@@ -8,6 +8,8 @@ config CRYPTO_LIB_UTILS
 
 config CRYPTO_LIB_AES
 	tristate
+	# Select dependencies of modes that are part of libaes.
+	select CRYPTO_LIB_GF128HASH if CRYPTO_LIB_AES_GCM != n
 	select CRYPTO_LIB_UTILS
 
 config CRYPTO_LIB_AES_ARCH
@@ -65,7 +67,6 @@ config CRYPTO_LIB_AES_GCM
 	tristate
 	select CRYPTO_LIB_AES
 	select CRYPTO_LIB_AES_CTR
-	select CRYPTO_LIB_GF128HASH
 	help
 	  The AES-GCM library functions.
 

base-commit: e4f23159c8d09b6b15d47f2c95e0a3e7c62f52a2
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] lib/crypto: aes-gcm: Fix CRYPTO_LIB_GF128HASH selection
  2026-07-22  2:17 [PATCH] lib/crypto: aes-gcm: Fix CRYPTO_LIB_GF128HASH selection Eric Biggers
@ 2026-07-22 19:04 ` Eric Biggers
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Biggers @ 2026-07-22 19:04 UTC (permalink / raw)
  To: linux-crypto
  Cc: linux-kernel, Ard Biesheuvel, Jason A . Donenfeld, Herbert Xu,
	kernel test robot

On Tue, Jul 21, 2026 at 07:17:30PM -0700, Eric Biggers wrote:
> Move the selection of CRYPTO_LIB_GF128HASH from CRYPTO_LIB_AES_GCM to
> CRYPTO_LIB_AES to avoid a build error when CRYPTO_LIB_AES=y &&
> CRYPTO_LIB_AES_GCM=m.  Like the other AES modes, AES-GCM is included in
> libaes as an optional feature rather than a dedicated module.
> 
> Fixes: 2bbb64399435 ("lib/crypto: aes: Add GCM support")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202607220918.2RL0wGGS-lkp@intel.com/
> Signed-off-by: Eric Biggers <ebiggers@kernel.org>

I folded this into the fixed commit to eliminate the bisection hazard.

- Eric

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-22 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-22  2:17 [PATCH] lib/crypto: aes-gcm: Fix CRYPTO_LIB_GF128HASH selection Eric Biggers
2026-07-22 19:04 ` Eric Biggers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox