diff options
| author | Eric Biggers <ebiggers@google.com> | 2025-05-05 13:33:45 -0700 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-05-12 13:34:04 +0800 |
| commit | 57999ed153ed7e651afecbabe0e998e75cf2d798 (patch) | |
| tree | 5d5ccc754f89a9bf6b3b3c5bc35367dc194d9432 /crypto/Kconfig | |
| parent | crypto: Kconfig - make CRYPTO_MANAGER a hidden symbol (diff) | |
| download | linux-57999ed153ed7e651afecbabe0e998e75cf2d798.tar.gz linux-57999ed153ed7e651afecbabe0e998e75cf2d798.zip | |
crypto: testmgr - enable CRYPTO_MANAGER when CRYPTO_SELFTESTS
crypto/testmgr.c is compiled only when CRYPTO_MANAGER is enabled. To
make CRYPTO_SELFTESTS work as expected when CRYPTO_MANAGER doesn't get
enabled for another reason, automatically set CRYPTO_MANAGER to the
value of CRYPTO_ALGAPI when CRYPTO_SELFTESTS is enabled.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
| -rw-r--r-- | crypto/Kconfig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index 50f6e285b92a..e9fee7818e27 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -149,10 +149,11 @@ config CRYPTO_HKDF config CRYPTO_MANAGER tristate + default CRYPTO_ALGAPI if CRYPTO_SELFTESTS select CRYPTO_MANAGER2 help - Create default cryptographic template instantiations such as - cbc(aes). + This provides the support for instantiating templates such as + cbc(aes), and the support for the crypto self-tests. config CRYPTO_MANAGER2 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y) |
