Re: [PATCH 07/21] nvme-auth: common: add HMAC helper functions

From: Hannes Reinecke

Date: Mon Mar 02 2026 - 05:14:11 EST


On 3/2/26 08:59, Eric Biggers wrote:
Add some helper functions for computing HMAC-SHA256, HMAC-SHA384, or
HMAC-SHA512 values using the crypto library instead of crypto_shash.
These will enable some significant simplifications and performance
improvements in nvme-auth.

Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
---
drivers/nvme/common/Kconfig | 2 ++
drivers/nvme/common/auth.c | 66 +++++++++++++++++++++++++++++++++++++
include/linux/nvme-auth.h | 14 ++++++++
3 files changed, 82 insertions(+)

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