crypto/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
From: Lukas Bulwahn <lukas.bulwahn@redhat.com>
Commit 3241cd0c6c17 ("crypto,fs: Separate out hkdf_extract() and
hkdf_expand()") adds the new config option CRYPTO_HKDF, which intends to
select further hash algorithms when crypto manager tests are enabled.
However, the select command accidentally refers to
CONFIG_CRYPTO_MANAGER_DISABLE_TESTS with the CONFIG prefix, whereas the
references here in the Kconfig file work without the CONFIG prefix.
Correct the references here to its proper form.
Fixes: 3241cd0c6c17 ("crypto,fs: Separate out hkdf_extract() and hkdf_expand()")
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@redhat.com>
---
crypto/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crypto/Kconfig b/crypto/Kconfig
index dbf97c4e7c59..f601a4ec6d1a 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -143,8 +143,8 @@ config CRYPTO_ACOMP
config CRYPTO_HKDF
tristate
- select CRYPTO_SHA256 if !CONFIG_CRYPTO_MANAGER_DISABLE_TESTS
- select CRYPTO_SHA512 if !CONFIG_CRYPTO_MANAGER_DISABLE_TESTS
+ select CRYPTO_SHA256 if !CRYPTO_MANAGER_DISABLE_TESTS
+ select CRYPTO_SHA512 if !CRYPTO_MANAGER_DISABLE_TESTS
select CRYPTO_HASH2
config CRYPTO_MANAGER
--
2.49.0
On Tue, Apr 01, 2025 at 02:13:54PM +0200, Lukas Bulwahn wrote: > > diff --git a/crypto/Kconfig b/crypto/Kconfig > index dbf97c4e7c59..f601a4ec6d1a 100644 > --- a/crypto/Kconfig > +++ b/crypto/Kconfig > @@ -143,8 +143,8 @@ config CRYPTO_ACOMP > > config CRYPTO_HKDF > tristate > - select CRYPTO_SHA256 if !CONFIG_CRYPTO_MANAGER_DISABLE_TESTS > - select CRYPTO_SHA512 if !CONFIG_CRYPTO_MANAGER_DISABLE_TESTS > + select CRYPTO_SHA256 if !CRYPTO_MANAGER_DISABLE_TESTS > + select CRYPTO_SHA512 if !CRYPTO_MANAGER_DISABLE_TESTS Why not just drop CRYPTO_MANAGER_DISABLE_TESTS and select the SHA algorithms unconditionally? > select CRYPTO_HASH2 Nobody should select HASH2. Just drop it since it's implied by SHA256/SHA512. Cheers, -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
On 4/1/25 14:16, Herbert Xu wrote: > On Tue, Apr 01, 2025 at 02:13:54PM +0200, Lukas Bulwahn wrote: >> >> diff --git a/crypto/Kconfig b/crypto/Kconfig >> index dbf97c4e7c59..f601a4ec6d1a 100644 >> --- a/crypto/Kconfig >> +++ b/crypto/Kconfig >> @@ -143,8 +143,8 @@ config CRYPTO_ACOMP >> >> config CRYPTO_HKDF >> tristate >> - select CRYPTO_SHA256 if !CONFIG_CRYPTO_MANAGER_DISABLE_TESTS >> - select CRYPTO_SHA512 if !CONFIG_CRYPTO_MANAGER_DISABLE_TESTS >> + select CRYPTO_SHA256 if !CRYPTO_MANAGER_DISABLE_TESTS >> + select CRYPTO_SHA512 if !CRYPTO_MANAGER_DISABLE_TESTS > > Why not just drop CRYPTO_MANAGER_DISABLE_TESTS and select the > SHA algorithms unconditionally? > Fine with me. I was just trying to follow precedent here when creating the original patch. Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
© 2016 - 2025 Red Hat, Inc.