]> git.baikalelectronics.ru Git - kernel.git/commit
fsverity: relax build time dependency on CRYPTO_SHA256
authorArd Biesheuvel <ardb@kernel.org>
Wed, 21 Apr 2021 07:55:11 +0000 (09:55 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Apr 2021 07:31:32 +0000 (17:31 +1000)
commit7b714414c893e4606ed1d1697173f08a9e3c0108
tree521f09bddea0897314857693e1b4c381613b4c74
parentca834d7c9554e5768b2f07f3c5dfe6dfd2938c0b
fsverity: relax build time dependency on CRYPTO_SHA256

CONFIG_CRYPTO_SHA256 denotes the generic C implementation of the SHA-256
shash algorithm, which is selected as the default crypto shash provider
for fsverity. However, fsverity has no strict link time dependency, and
the same shash could be exposed by an optimized implementation, and arm64
has a number of those (scalar, NEON-based and one based on special crypto
instructions). In such cases, it makes little sense to require that the
generic C implementation is incorporated as well, given that it will never
be called.

To address this, relax the 'select' clause to 'imply' so that the generic
driver can be omitted from the build if desired.

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