mirror-linux/lib/crypto/tests
Thomas Weißschuh fcff71fd88 lib/crypto: tests: polyval_kunit: Increase iterations for preparekey in IRQs
On my development machine the generic, memcpy()-only implementation of
polyval_preparekey() is too fast for the IRQ workers to actually fire.
The test fails.

Increase the iterations to make the test more robust.
The test will run for a maximum of one second in any case.

[EB: This failure was already fixed by commit c31f4aa8fe ("kunit:
Enforce task execution in {soft,hard}irq contexts").  I'm still applying
this patch too, since the iteration count in this test made its running
time much shorter than the other similar ones.]

Fixes: b3aed551b3 ("lib/crypto: tests: Add KUnit tests for POLYVAL")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://lore.kernel.org/r/20260102-kunit-polyval-fix-v1-1-5313b5a65f35@linutronix.de
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
2026-01-08 11:14:59 -08:00
..
Kconfig lib/crypto: tests: Add KUnit tests for POLYVAL 2025-11-11 11:07:52 -08:00
Makefile lib/crypto: tests: Add KUnit tests for POLYVAL 2025-11-11 11:07:52 -08: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: Add KUnit tests for BLAKE2b 2025-11-11 11:07:36 -08: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: blake2s: Rename blake2s_state to blake2s_ctx 2025-10-29 22:04:24 -07:00
curve25519_kunit.c lib/crypto: tests: Add Curve25519 benchmark 2025-09-06 16:32:42 -07:00
hash-test-template.h kunit, lib/crypto: Move run_irq_test() to common header 2025-08-11 11:28:00 -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: Add KUnit tests for MD5 and HMAC-MD5 2025-08-27 08:15:35 -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 KUnit tests for Poly1305 2025-07-14 11:29:36 -07: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: polyval_kunit: Increase iterations for preparekey in IRQs 2026-01-08 11:14:59 -08: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: Add KUnit tests for SHA-1 and HMAC-SHA1 2025-07-14 11:29:36 -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: Add additional SHAKE tests 2025-11-11 11:07:36 -08:00
sha224-testvecs.h
sha224_kunit.c
sha256-testvecs.h
sha256_kunit.c lib/crypto: tests: Fix KMSAN warning in test_sha256_finup_2x() 2025-11-21 10:22:24 -08: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: Add KUnit tests for SHA-384 and SHA-512 2025-07-14 11:29:36 -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: Add KUnit tests for SHA-384 and SHA-512 2025-07-14 11:29:36 -07:00