crypto: testmgr - make it easier to enable the full set of tests
authorEric Biggers <ebiggers@google.com>
Mon, 5 May 2025 20:33:42 +0000 (13:33 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 12 May 2025 05:34:03 +0000 (13:34 +0800)
commit698de822780fbae79b11e5d749863c1aa64a0a55
tree472aa30f4584c56c11871776468592fcedc5eeeb
parent40b9969796bfa49ed1b0f7ddc254f48cb2ac6d2c
crypto: testmgr - make it easier to enable the full set of tests

Currently the full set of crypto self-tests requires
CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y.  This is problematic in two ways.
First, developers regularly overlook this option.  Second, the
description of the tests as "extra" sometimes gives the impression that
it is not required that all algorithms pass these tests.

Given that the main use case for the crypto self-tests is for
developers, make enabling CONFIG_CRYPTO_SELFTESTS=y just enable the full
set of crypto self-tests by default.

The slow tests can still be disabled by adding the command-line
parameter cryptomgr.noextratests=1, soon to be renamed to
cryptomgr.noslowtests=1.  The only known use case for doing this is for
people trying to use the crypto self-tests to satisfy the FIPS 140-3
pre-operational self-testing requirements when the kernel is being
validated as a FIPS 140-3 cryptographic module.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig
crypto/testmgr.c
include/crypto/internal/simd.h
lib/crypto/Makefile