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

From: Hannes Reinecke

Date: Tue Mar 03 2026 - 02:47:40 EST


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@xxxxxxxxxx>
---
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@xxxxxxx>

Cheers,

Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@xxxxxxx +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