diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2025-10-18 07:31:05 +0300 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2025-10-30 08:04:24 +0300 |
| commit | fa3ca9bfe3f001ed306cb3ce9761dacffbe143f8 (patch) | |
| tree | ba7d4a1b7f02a583daee80830e18a6087f869e8c /crypto/Makefile | |
| parent | ba6617bd47c2263bd2ead34e1b31d90c66af5dea (diff) | |
| download | linux-fa3ca9bfe3f001ed306cb3ce9761dacffbe143f8.tar.xz | |
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>
Diffstat (limited to 'crypto/Makefile')
| -rw-r--r-- | crypto/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/Makefile b/crypto/Makefile index e430e6e99b6a..5b02ca2cb04e 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -83,8 +83,7 @@ obj-$(CONFIG_CRYPTO_SM3_GENERIC) += sm3_generic.o obj-$(CONFIG_CRYPTO_STREEBOG) += streebog_generic.o obj-$(CONFIG_CRYPTO_WP512) += wp512.o CFLAGS_wp512.o := $(call cc-option,-fno-schedule-insns) # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79149 -obj-$(CONFIG_CRYPTO_BLAKE2B) += blake2b_generic.o -CFLAGS_blake2b_generic.o := -Wframe-larger-than=4096 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105930 +obj-$(CONFIG_CRYPTO_BLAKE2B) += blake2b.o obj-$(CONFIG_CRYPTO_ECB) += ecb.o obj-$(CONFIG_CRYPTO_CBC) += cbc.o obj-$(CONFIG_CRYPTO_PCBC) += pcbc.o |
