]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme-auth: host: use crypto library in nvme_auth_dhchap_setup_host_response()
authorEric Biggers <ebiggers@kernel.org>
Mon, 2 Mar 2026 07:59:51 +0000 (23:59 -0800)
committerKeith Busch <kbusch@kernel.org>
Fri, 27 Mar 2026 14:35:02 +0000 (07:35 -0700)
commit6be8d3f043a12d208d8c5c08fc9c5f54082c87b2
tree1e326bb6903106fc5d4be28a429b18cc8a0cd14c
parentd126cbaa7d9a971dedc8535d4f2529c799de8f85
nvme-auth: host: use crypto library in nvme_auth_dhchap_setup_host_response()

For the HMAC computation in nvme_auth_dhchap_setup_host_response(), use
the crypto library instead of crypto_shash.  This is simpler, faster,
and more reliable.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/auth.c