]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/crypto: sha256: Sync sha256_update() with sha512_update()
authorEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 16:06:44 +0000 (09:06 -0700)
committerEric Biggers <ebiggers@kernel.org>
Fri, 4 Jul 2025 17:23:11 +0000 (10:23 -0700)
commit773d2b99bb76131f65f98828221142ccd2cec856
treea0fecf44b1001680a51c80ed40d1051b7000c8bb
parente96cb9507f2d8ba150d417dcd283204564945831
lib/crypto: sha256: Sync sha256_update() with sha512_update()

The BLOCK_HASH_UPDATE_BLOCKS macro is difficult to read.  For now, let's
just write the update explicitly in the straightforward way, mirroring
sha512_update().  It's possible that we'll bring back a macro for this
later, but it needs to be properly justified and hopefully a bit more
readable.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250630160645.3198-14-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/sha256.c