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

Hannes Reinecke hare at suse.de
Mon Mar 2 02:07:59 PST 2026


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 at kernel.org>
> ---
>   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 at suse.de>

Cheers,

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



More information about the Linux-nvme mailing list