]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/crypto: blake2s: Drop excessive const & rename block => data
authorEric Biggers <ebiggers@kernel.org>
Sat, 18 Oct 2025 04:30:59 +0000 (21:30 -0700)
committerEric Biggers <ebiggers@kernel.org>
Thu, 30 Oct 2025 05:04:24 +0000 (22:04 -0700)
commit5385bcbffe5a76a74d6bb135af1c88fb235f8134
tree7d566184060e8a336d415eaff6f3cd84a13c6195
parent5e0ec8e46d4d6488242bb39a4ce5c0276afa5f32
lib/crypto: blake2s: Drop excessive const & rename block => data

A couple more small cleanups to the BLAKE2s code before these things get
propagated into the BLAKE2b code:

- Drop 'const' from some non-pointer function parameters.  It was a bit
  excessive and not conventional.

- Rename 'block' argument of blake2s_compress*() to 'data'.  This is for
  consistency with the SHA-* code, and also to avoid the implication
  that it points to a singular "block".

No functional changes.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20251018043106.375964-4-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
include/crypto/blake2s.h
lib/crypto/arm/blake2s-core.S
lib/crypto/arm/blake2s.h
lib/crypto/blake2s.c
lib/crypto/x86/blake2s.h