]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib/crypto: tests: Add KUnit tests for POLYVAL
authorEric Biggers <ebiggers@kernel.org>
Sun, 9 Nov 2025 23:47:18 +0000 (15:47 -0800)
committerEric Biggers <ebiggers@kernel.org>
Tue, 11 Nov 2025 19:07:52 +0000 (11:07 -0800)
commitb3aed551b3fca753469520c95b6f4c61ada028d3
treec34f339e0fbf0c4a988376a28d88386791775ef6
parentb2210f35161d6202fcca4244800a1d54c80e8bc1
lib/crypto: tests: Add KUnit tests for POLYVAL

Add a test suite for the POLYVAL library, including:

- All the standard tests and the benchmark from hash-test-template.h
- Comparison with a test vector from the RFC
- Test with key and message containing all one bits
- Additional tests related to the key struct

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20251109234726.638437-4-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/tests/Kconfig
lib/crypto/tests/Makefile
lib/crypto/tests/polyval-testvecs.h [new file with mode: 0644]
lib/crypto/tests/polyval_kunit.c [new file with mode: 0644]
scripts/crypto/gen-hash-testvecs.py