]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hctr2 - Convert to use POLYVAL library
authorEric Biggers <ebiggers@kernel.org>
Sun, 9 Nov 2025 23:47:21 +0000 (15:47 -0800)
committerEric Biggers <ebiggers@kernel.org>
Tue, 11 Nov 2025 19:03:38 +0000 (11:03 -0800)
commitd35abc0b1ddff64934dc6ab637f7b5ce1cd1d91f
tree1c5de0b47a549e4fe26ecfa37c57cc5299478669
parent4d8da35579daad0392d238460ed7e9629d49ca35
crypto: hctr2 - Convert to use POLYVAL library

The "hash function" in hctr2 is fixed at POLYVAL; it can never vary.
Just use the POLYVAL library, which is much easier to use than the
crypto_shash API.  It's faster, uses fixed-size structs, and never fails
(all the functions return void).

Note that this eliminates the only known user of the polyval support in
crypto_shash.  A later commit will remove support for polyval from
crypto_shash, given that the library API is sufficient.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20251109234726.638437-7-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
crypto/Kconfig
crypto/hctr2.c
crypto/testmgr.c