Commit 1674aea5 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Herbert Xu

crypto: Kconfig - mark unused ciphers as obsolete

We have a few interesting pieces in our cipher museum, which are never
used internally, and were only ever provided as generic C implementations.

Unfortunately, we cannot simply remove this code, as we cannot be sure
that it is not being used via the AF_ALG socket API, however unlikely.

So let's mark the Anubis, Khazad, SEED and TEA algorithms as obsolete,
which means they can only be enabled in the build if the socket API is
enabled in the first place.
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent dbc756fc
...@@ -1185,6 +1185,7 @@ config CRYPTO_AES_PPC_SPE ...@@ -1185,6 +1185,7 @@ config CRYPTO_AES_PPC_SPE
config CRYPTO_ANUBIS config CRYPTO_ANUBIS
tristate "Anubis cipher algorithm" tristate "Anubis cipher algorithm"
depends on CRYPTO_USER_API_ENABLE_OBSOLETE
select CRYPTO_ALGAPI select CRYPTO_ALGAPI
help help
Anubis cipher algorithm. Anubis cipher algorithm.
...@@ -1424,6 +1425,7 @@ config CRYPTO_FCRYPT ...@@ -1424,6 +1425,7 @@ config CRYPTO_FCRYPT
config CRYPTO_KHAZAD config CRYPTO_KHAZAD
tristate "Khazad cipher algorithm" tristate "Khazad cipher algorithm"
depends on CRYPTO_USER_API_ENABLE_OBSOLETE
select CRYPTO_ALGAPI select CRYPTO_ALGAPI
help help
Khazad cipher algorithm. Khazad cipher algorithm.
...@@ -1487,6 +1489,7 @@ config CRYPTO_CHACHA_MIPS ...@@ -1487,6 +1489,7 @@ config CRYPTO_CHACHA_MIPS
config CRYPTO_SEED config CRYPTO_SEED
tristate "SEED cipher algorithm" tristate "SEED cipher algorithm"
depends on CRYPTO_USER_API_ENABLE_OBSOLETE
select CRYPTO_ALGAPI select CRYPTO_ALGAPI
help help
SEED cipher algorithm (RFC4269). SEED cipher algorithm (RFC4269).
...@@ -1613,6 +1616,7 @@ config CRYPTO_SM4 ...@@ -1613,6 +1616,7 @@ config CRYPTO_SM4
config CRYPTO_TEA config CRYPTO_TEA
tristate "TEA, XTEA and XETA cipher algorithms" tristate "TEA, XTEA and XETA cipher algorithms"
depends on CRYPTO_USER_API_ENABLE_OBSOLETE
select CRYPTO_ALGAPI select CRYPTO_ALGAPI
help help
TEA cipher algorithm. TEA cipher algorithm.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment