Re: [PATCH 21/21] crypto: remove HKDF library

Hannes Reinecke
2026-03-03T07:46:25Z

On 3/2/26 08:59, Eric Biggers wrote:
> Remove crypto/hkdf.c, since it's no longer used. Originally it had two
> users, but now both of them just inline the needed HMAC computations
> using the HMAC library APIs. That ends up being better, since it
> eliminates all the complexity and performance issues associated with the
> crypto_shash abstraction and multi-step HMAC input formatting.
>
> Signed-off-by: Eric Biggers <ebiggers@kernel.org>
> ---
> crypto/Kconfig | 6 -
> crypto/Makefile | 1 -
> crypto/hkdf.c | 573 ------------------------------------------
> include/crypto/hkdf.h | 20 --
> 4 files changed, 600 deletions(-)
> delete mode 100644 crypto/hkdf.c
> delete mode 100644 include/crypto/hkdf.h
>
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich