mirror of
https://github.com/torvalds/linux.git
synced 2026-04-26 02:22:28 -04:00
lib/crypto: tests: Add KUnit tests for BLAKE2b
Add a KUnit test suite for the BLAKE2b library API, mirroring the BLAKE2s test suite very closely. As with the BLAKE2s test suite, a benchmark is included. Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20251018043106.375964-9-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
config CRYPTO_LIB_BLAKE2B_KUNIT_TEST
|
||||
tristate "KUnit tests for BLAKE2b" if !KUNIT_ALL_TESTS
|
||||
depends on KUNIT
|
||||
default KUNIT_ALL_TESTS || CRYPTO_SELFTESTS
|
||||
select CRYPTO_LIB_BENCHMARK_VISIBLE
|
||||
select CRYPTO_LIB_BLAKE2B
|
||||
help
|
||||
KUnit tests for the BLAKE2b cryptographic hash function.
|
||||
|
||||
config CRYPTO_LIB_BLAKE2S_KUNIT_TEST
|
||||
tristate "KUnit tests for BLAKE2s" if !KUNIT_ALL_TESTS
|
||||
depends on KUNIT
|
||||
|
||||
Reference in New Issue
Block a user