]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/crypto: blake2s: Rename blake2s_state to blake2s_ctx
authorEric Biggers <ebiggers@kernel.org>
Sat, 18 Oct 2025 04:30:58 +0000 (21:30 -0700)
committerEric Biggers <ebiggers@kernel.org>
Thu, 30 Oct 2025 05:04:24 +0000 (22:04 -0700)
commit5e0ec8e46d4d6488242bb39a4ce5c0276afa5f32
treec867511d4d827a19d4f3333789f09de260ebd352
parent50b8e36994a042103ea92b6d9f6d7de725f9ac5f
lib/crypto: blake2s: Rename blake2s_state to blake2s_ctx

For consistency with the SHA-1, SHA-2, SHA-3 (in development), and MD5
library APIs, rename blake2s_state to blake2s_ctx.

As a refresher, the ctx name:

- Is a bit shorter.
- Avoids confusion with the compression function state, which is also
  often called the state (but is just part of the full context).
- Is consistent with OpenSSL.

Not a big deal, of course.  But consistency is nice.  With a BLAKE2b
library API about to be added, this is a convenient time to update this.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20251018043106.375964-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
drivers/char/random.c
drivers/net/wireguard/cookie.c
drivers/net/wireguard/noise.c
include/crypto/blake2s.h
lib/crypto/arm/blake2s-core.S
lib/crypto/arm/blake2s.h
lib/crypto/blake2s.c
lib/crypto/tests/blake2s_kunit.c
lib/crypto/x86/blake2s.h