lib/crypto: tests: Add KUnit tests for Poly1305
authorEric Biggers <ebiggers@kernel.org>
Wed, 9 Jul 2025 20:01:12 +0000 (13:01 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 14 Jul 2025 18:29:36 +0000 (11:29 -0700)
commit6dd4d9f7919e73bc7ad247eca82e8be1c123af0a
tree590b35e24e3142b498ab55c63611249e76609fd6
parent571eaeddb67df84c4fd59c5496866c049fb25efe
lib/crypto: tests: Add KUnit tests for Poly1305

Add a KUnit test suite for the Poly1305 functions.  Most of its test
cases are instantiated from hash-test-template.h, which is also used by
the SHA-2 tests.  A couple additional test cases are also included to
test edge cases specific to Poly1305.

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