Re: [PATCH 17/21] nvme-auth: target: use crypto library in nvmet_auth_host_hash()
From: Hannes Reinecke
Date: Tue Mar 03 2026 - 02:46:39 EST
On 3/2/26 08:59, Eric Biggers wrote:
For the HMAC computation in nvmet_auth_host_hash(), use the cryptoReviewed-by: Hannes Reinecke <hare@xxxxxxx>
library instead of crypto_shash. This is simpler, faster, and more
reliable. Notably, this eliminates the crypto transformation object
allocation for every call, which was very slow.
Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
---
drivers/nvme/target/auth.c | 90 ++++++++++++--------------------------
1 file changed, 28 insertions(+), 62 deletions(-)
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