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

Hannes Reinecke
2026-03-02T10:08:05Z

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