fscrypt: relax Kconfig dependencies for crypto API algorithms
authorArd Biesheuvel <ardb@kernel.org>
Wed, 21 Apr 2021 07:55:10 +0000 (09:55 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Apr 2021 07:31:32 +0000 (17:31 +1000)
commita0fc20333ee4bac1147c4cf75dea098c26671a2f
treeaf6feab9cc9029f26030280670f982d508ea593b
parentd17d9227c332b7deca59b35fa9ff08e597666c2a
fscrypt: relax Kconfig dependencies for crypto API algorithms

Even if FS encryption has strict functional dependencies on various
crypto algorithms and chaining modes. those dependencies could potentially
be satisified by other implementations than the generic ones, and no link
time dependency exists on the 'depends on' claused defined by
CONFIG_FS_ENCRYPTION_ALGS.

So let's relax these clauses to 'imply', so that the default behavior
is still to pull in those generic algorithms, but in a way that permits
them to be disabled again in Kconfig.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
fs/crypto/Kconfig