linux/lib/crypto/tests
Eric Biggers 7b817748bf lib/crypto: tests: Add Poly1305 split-update carry regression test
Add a test case which reproduces the bug fixed by commit 24f07e8c07
("lib/crypto: arm64: Fix lost Poly1305 carry when resuming NEON state").
It is written in a fairly general way, such that it should also be able
to reproduce similar bugs in other implementations.

Update the comment on test_poly1305_allones_keys_and_message() to more
accurately describe what it does and differentiate it from the new test.

Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Link: https://patch.msgid.link/20261009125354.315476-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
History 2026-10-09 19:21:07 +02:00
..
aead-test-template.h lib/crypto: tests: Add aead-test-template.h 2026-08-10 20:17:56 -07:00
aes-cmac-testvecs.h lib/crypto: tests: Add KUnit tests for CBC-based MACs 2026-03-09 13:27:20 -07:00
aes_cbc_macs_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
aes_ccm_kunit.c lib/crypto: tests: Add KUnit test suite for AES-CCM 2026-08-10 20:17:56 -07:00
aes_gcm_kunit.c lib/crypto: tests: Add KUnit test suite for AES-GCM 2026-08-10 20:17:56 -07:00
blake2b-testvecs.h lib/crypto: tests: Add KUnit tests for BLAKE2b 2025-11-11 11:07:36 -08:00
blake2b_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
blake2s-testvecs.h lib/crypto: tests: Add KUnit tests for BLAKE2s 2025-08-29 09:50:19 -07:00
blake2s_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
chacha20poly1305_kunit.c lib/crypto: tests: Create test-utils.h 2026-08-10 20:17:56 -07:00
curve25519_kunit.c lib/crypto: tests: Add Curve25519 benchmark 2025-09-06 16:32:42 -07:00
ghash-testvecs.h lib/crypto: tests: Add KUnit tests for GHASH 2026-03-23 14:56:32 -07:00
ghash_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
hash-test-template.h lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
Kconfig lib/crypto: tests: Add KUnit test suite for AES-GCM 2026-08-10 20:17:56 -07:00
Makefile lib/crypto: tests: Add KUnit test suite for AES-GCM 2026-08-10 20:17:56 -07:00
md5-testvecs.h lib/crypto: tests: Add KUnit tests for MD5 and HMAC-MD5 2025-08-27 08:15:35 -07:00
md5_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
mldsa-testvecs.h lib/crypto: tests: Add KUnit tests for ML-DSA verification 2026-01-12 11:07:49 -08:00
mldsa_kunit.c lib/crypto: tests: Create test-utils.h 2026-08-10 20:17:56 -07:00
nh-testvecs.h lib/crypto: tests: Add KUnit tests for NH 2026-01-12 11:07:49 -08:00
nh_kunit.c lib/crypto: tests: Create test-utils.h 2026-08-10 20:17:56 -07:00
poly1305-testvecs.h lib/crypto: tests: Add KUnit tests for Poly1305 2025-07-14 11:29:36 -07:00
poly1305_kunit.c lib/crypto: tests: Add Poly1305 split-update carry regression test 2026-10-09 19:21:07 +02:00
polyval-testvecs.h lib/crypto: tests: Add KUnit tests for POLYVAL 2025-11-11 11:07:52 -08:00
polyval_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
sha1-testvecs.h lib/crypto: tests: Add KUnit tests for SHA-1 and HMAC-SHA1 2025-07-14 11:29:36 -07:00
sha1_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
sha3-testvecs.h lib/crypto: tests: Add additional SHAKE tests 2025-11-11 11:07:36 -08:00
sha3_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
sha224-testvecs.h lib/crypto: tests: Add KUnit tests for SHA-224 and SHA-256 2025-07-14 11:29:36 -07:00
sha224_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
sha256-testvecs.h lib/crypto: tests: Add KUnit tests for SHA-224 and SHA-256 2025-07-14 11:29:36 -07:00
sha256_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
sha384-testvecs.h lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512 2025-07-14 11:29:36 -07:00
sha384_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
sha512-testvecs.h lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512 2025-07-14 11:29:36 -07:00
sha512_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
sm3-testvecs.h lib/crypto: tests: Add KUnit tests for SM3 2026-03-23 17:50:59 -07:00
sm3_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
test-utils.h lib/crypto: tests: Create test-utils.h 2026-08-10 20:17:56 -07:00