Skip to content

Commit edc8e80

Browse files
arndbherbertx
authored andcommitted
crypto: lib/Kconfig - hide library options
Any driver that needs these library functions should already be selecting the corresponding Kconfig symbols, so there is no real point in making these visible. The original patch that made these user selectable described problems with drivers failing to select the code they use, but for consistency it's better to always use 'select' on a symbol than to mix it with 'depends on'. Fixes: e56e189 ("lib/crypto: add prompts back to crypto libraries") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 92c6a70 commit edc8e80

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

drivers/crypto/marvell/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ config CRYPTO_DEV_OCTEONTX_CPT
2424
tristate "Support for Marvell OcteonTX CPT driver"
2525
depends on ARCH_THUNDER || COMPILE_TEST
2626
depends on PCI_MSI && 64BIT
27-
depends on CRYPTO_LIB_AES
27+
select CRYPTO_LIB_AES
2828
select CRYPTO_SKCIPHER
2929
select CRYPTO_HASH
3030
select CRYPTO_AEAD
@@ -41,10 +41,10 @@ config CRYPTO_DEV_OCTEONTX2_CPT
4141
tristate "Marvell OcteonTX2 CPT driver"
4242
depends on ARCH_THUNDER2 || COMPILE_TEST
4343
depends on PCI_MSI && 64BIT
44-
depends on CRYPTO_LIB_AES
4544
depends on NET_VENDOR_MARVELL
4645
select OCTEONTX2_MBOX
4746
select CRYPTO_DEV_MARVELL
47+
select CRYPTO_LIB_AES
4848
select CRYPTO_SKCIPHER
4949
select CRYPTO_HASH
5050
select CRYPTO_AEAD

lib/crypto/Kconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ config CRYPTO_LIB_CHACHA_INTERNAL
6363
select CRYPTO_LIB_CHACHA_GENERIC if CRYPTO_ARCH_HAVE_LIB_CHACHA=n
6464

6565
config CRYPTO_LIB_CHACHA
66-
tristate "ChaCha library interface"
66+
tristate
6767
select CRYPTO
6868
select CRYPTO_LIB_CHACHA_INTERNAL
6969
help
@@ -93,7 +93,7 @@ config CRYPTO_LIB_CURVE25519_INTERNAL
9393
select CRYPTO_LIB_CURVE25519_GENERIC if CRYPTO_ARCH_HAVE_LIB_CURVE25519=n
9494

9595
config CRYPTO_LIB_CURVE25519
96-
tristate "Curve25519 scalar multiplication library"
96+
tristate
9797
select CRYPTO
9898
select CRYPTO_LIB_CURVE25519_INTERNAL
9999
help
@@ -132,7 +132,7 @@ config CRYPTO_LIB_POLY1305_INTERNAL
132132
select CRYPTO_LIB_POLY1305_GENERIC if CRYPTO_ARCH_HAVE_LIB_POLY1305=n
133133

134134
config CRYPTO_LIB_POLY1305
135-
tristate "Poly1305 library interface"
135+
tristate
136136
select CRYPTO
137137
select CRYPTO_LIB_POLY1305_INTERNAL
138138
help
@@ -141,7 +141,7 @@ config CRYPTO_LIB_POLY1305
141141
is available and enabled.
142142

143143
config CRYPTO_LIB_CHACHA20POLY1305
144-
tristate "ChaCha20-Poly1305 AEAD support (8-byte nonce library version)"
144+
tristate
145145
select CRYPTO_LIB_CHACHA
146146
select CRYPTO_LIB_POLY1305
147147
select CRYPTO_LIB_UTILS

security/keys/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ config BIG_KEYS
6060
bool "Large payload keys"
6161
depends on KEYS
6262
depends on TMPFS
63-
depends on CRYPTO_LIB_CHACHA20POLY1305 = y
63+
select CRYPTO_LIB_CHACHA20POLY1305
6464
help
6565
This option provides support for holding large keys within the kernel
6666
(for example Kerberos ticket caches). The data may be stored out to

0 commit comments

Comments
 (0)