]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: blake2b - Reimplement using library API
authorEric Biggers <ebiggers@kernel.org>
Sat, 18 Oct 2025 04:31:05 +0000 (21:31 -0700)
committerEric Biggers <ebiggers@kernel.org>
Thu, 30 Oct 2025 05:04:24 +0000 (22:04 -0700)
commitfa3ca9bfe3f001ed306cb3ce9761dacffbe143f8
treeba7d4a1b7f02a583daee80830e18a6087f869e8c
parentba6617bd47c2263bd2ead34e1b31d90c66af5dea
crypto: blake2b - Reimplement using library API

Replace blake2b_generic.c with a new file blake2b.c which implements the
BLAKE2b crypto_shash algorithms on top of the BLAKE2b library API.

Change the driver name suffix from "-generic" to "-lib" to reflect that
these algorithms now just use the (possibly arch-optimized) library.

This closely mirrors crypto/{md5,sha1,sha256,sha512}.c.

Remove include/crypto/internal/blake2b.h since it is no longer used.
Likewise, remove struct blake2b_state from include/crypto/blake2b.h.

Omit support for import_core and export_core, since there are no legacy
drivers that need these for these algorithms.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20251018043106.375964-10-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
crypto/Kconfig
crypto/Makefile
crypto/blake2b.c [new file with mode: 0644]
crypto/blake2b_generic.c [deleted file]
crypto/testmgr.c
include/crypto/blake2b.h
include/crypto/internal/blake2b.h [deleted file]