diff options
| author | Eric Biggers <[email protected]> | 2025-05-05 20:33:41 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2025-05-12 05:33:14 +0000 |
| commit | 40b9969796bfa49ed1b0f7ddc254f48cb2ac6d2c (patch) | |
| tree | 3348bf44e9e622851051c1b1d26f7cd8ea12114a /lib/crypto/chacha20poly1305.c | |
| parent | crypto: testmgr - remove panic_on_fail (diff) | |
| download | kernel-40b9969796bfa49ed1b0f7ddc254f48cb2ac6d2c.tar.gz kernel-40b9969796bfa49ed1b0f7ddc254f48cb2ac6d2c.zip | |
crypto: testmgr - replace CRYPTO_MANAGER_DISABLE_TESTS with CRYPTO_SELFTESTS
The negative-sense of CRYPTO_MANAGER_DISABLE_TESTS is a longstanding
mistake that regularly causes confusion. Especially bad is that you can
have CRYPTO=n && CRYPTO_MANAGER_DISABLE_TESTS=n, which is ambiguous.
Replace CRYPTO_MANAGER_DISABLE_TESTS with CRYPTO_SELFTESTS which has the
expected behavior.
The tests continue to be disabled by default.
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/crypto/chacha20poly1305.c')
| -rw-r--r-- | lib/crypto/chacha20poly1305.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/chacha20poly1305.c b/lib/crypto/chacha20poly1305.c index fbd3690e2531..e29eed49a5a1 100644 --- a/lib/crypto/chacha20poly1305.c +++ b/lib/crypto/chacha20poly1305.c @@ -358,7 +358,7 @@ EXPORT_SYMBOL(chacha20poly1305_decrypt_sg_inplace); static int __init chacha20poly1305_init(void) { - if (!IS_ENABLED(CONFIG_CRYPTO_MANAGER_DISABLE_TESTS) && + if (IS_ENABLED(CONFIG_CRYPTO_SELFTESTS) && WARN_ON(!chacha20poly1305_selftest())) return -ENODEV; return 0; |
