1# SPDX-License-Identifier: GPL-2.0-or-later 2 3# Option is named *_SHA256_KUNIT_TEST, though both SHA-224 and SHA-256 tests are 4# included, for consistency with the naming used elsewhere (e.g. CRYPTO_SHA256). 5config CRYPTO_LIB_SHA256_KUNIT_TEST 6 tristate "KUnit tests for SHA-224 and SHA-256" if !KUNIT_ALL_TESTS 7 depends on KUNIT 8 default KUNIT_ALL_TESTS || CRYPTO_SELFTESTS 9 select CRYPTO_LIB_BENCHMARK_VISIBLE 10 select CRYPTO_LIB_SHA256 11 help 12 KUnit tests for the SHA-224 and SHA-256 cryptographic hash functions 13 and their corresponding HMACs. 14 15config CRYPTO_LIB_BENCHMARK_VISIBLE 16 bool 17 18config CRYPTO_LIB_BENCHMARK 19 bool "Include benchmarks in KUnit tests for cryptographic functions" 20 depends on CRYPTO_LIB_BENCHMARK_VISIBLE 21 help 22 Include benchmarks in the KUnit tests for cryptographic functions. 23 The benchmark results are printed to the kernel log when the 24 corresponding KUnit test suite runs. 25 26 This is useful for evaluating the performance of the cryptographic 27 functions. However, it will increase the runtime of the KUnit tests. 28 29 If you're only interested in correctness testing, leave this disabled. 30