Kconfig

CONFIG_CRYPTO_LIB_ENABLE_ALL_FOR_KUNIT Enable all crypto library code for KUnit tests

  • Off
  • Module
  • Built in

Enable all the crypto library code that has KUnit tests.

Enable this only if you'd like to test all the crypto library code, even code that wouldn't otherwise need to be built.

You'll still need to enable the tests themselves, either individually or using KUNIT_ALL_TESTS.

CONFIG_CRYPTO_LIB_BENCHMARK Include benchmarks in KUnit tests for cryptographic functions

On

Include benchmarks in the KUnit tests for cryptographic functions. The benchmark results are printed to the kernel log when the corresponding KUnit test suite runs.

This is useful for evaluating the performance of the cryptographic functions. However, it will increase the runtime of the KUnit tests.

If you're only interested in correctness testing, leave this disabled.