]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/crypto: tests: Add KUnit tests for NH
authorEric Biggers <ebiggers@kernel.org>
Thu, 11 Dec 2025 01:18:34 +0000 (17:18 -0800)
committerEric Biggers <ebiggers@kernel.org>
Mon, 12 Jan 2026 19:07:49 +0000 (11:07 -0800)
commit7246fe6cd64475d8126a85eef6a3a425f105c203
tree7570630d8c7ed620b4e1d2a60df1d6261636dd49
parent14e15c71d7bb591fd08f527669717694810d3973
lib/crypto: tests: Add KUnit tests for NH

Add some simple KUnit tests for the nh() function.

These replace the test coverage which will be lost by removing the
nhpoly1305 crypto_shash.

Note that the NH code also continues to be tested indirectly as well,
via the tests for the "adiantum(xchacha12,aes)" crypto_skcipher.

Link: https://lore.kernel.org/r/20251211011846.8179-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/tests/Kconfig
lib/crypto/tests/Makefile
lib/crypto/tests/nh-testvecs.h [new file with mode: 0644]
lib/crypto/tests/nh_kunit.c [new file with mode: 0644]
scripts/crypto/gen-hash-testvecs.py