]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: testmgr - Add multibuffer hash testing
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Mar 2025 08:43:30 +0000 (16:43 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Mar 2025 23:25:19 +0000 (07:25 +0800)
commit8b54e6a8f4156ed43627f40300b0711dc977fbc1
tree4f25bfd39046dcf3e536b116cdaa1fada5dbe982
parent108ce629cf73a3df32fa04b17aedc97c1431b2ac
crypto: testmgr - Add multibuffer hash testing

This is based on a patch by Eric Biggers <ebiggers@google.com>.

Add limited self-test for multibuffer hash code path.  This tests
only a single request in chain of a random length.  The other
requests are either all of the same length as the one being tested,
or random lengths between 0 and PAGE_SIZE * 2 * XBUFSIZE.

Potential extension include testing all requests rather than just
the single one.

Link: https://lore.kernel.org/all/20241001153718.111665-3-ebiggers@kernel.org/
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c