[PATCH 08/21] nvme-auth: common: use crypto library in nvme_auth_transform_key()
Hannes Reinecke
hare at suse.de
Mon Mar 2 02:09:31 PST 2026
On 3/2/26 08:59, Eric Biggers wrote:
> For the HMAC computation in nvme_auth_transform_key(), use the crypto
> library instead of crypto_shash. This is simpler, faster, and more
> reliable. Notably, this eliminates the transformation object allocation
> for every call, which was very slow.
>
> Signed-off-by: Eric Biggers <ebiggers at kernel.org>
> ---
> drivers/nvme/common/auth.c | 53 +++++++-------------------------------
> 1 file changed, 10 insertions(+), 43 deletions(-)
>
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