lib/crypto: blake2s: Replace manual unrolling with unrolled_full
authorEric Biggers <ebiggers@kernel.org>
Fri, 5 Dec 2025 05:11:55 +0000 (21:11 -0800)
committerEric Biggers <ebiggers@kernel.org>
Tue, 9 Dec 2025 23:10:21 +0000 (15:10 -0800)
commit68b233b1d583f7d869fbb3afe2b0531138e001f7
treeb9cf9cf8b244d791a7d3e1e92636d232721cd868
parent2e8f7b170a085f0f5522f262bffe92d6ec911abb
lib/crypto: blake2s: Replace manual unrolling with unrolled_full

As we're doing in the BLAKE2b code, use unrolled_full to make the
compiler handle the loop unrolling.  This simplifies the code slightly.
The generated object code is nearly the same with both gcc and clang.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20251205051155.25274-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/blake2s.c