]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme-auth: use crypto_shash_tfm_digest()
authorEric Biggers <ebiggers@google.com>
Sun, 29 Oct 2023 05:00:40 +0000 (22:00 -0700)
committerKeith Busch <kbusch@kernel.org>
Mon, 6 Nov 2023 16:05:53 +0000 (08:05 -0800)
commit744eac783f9e105358eed05b42dcc5c5789744b3
tree35a2b579ae2e4be169070556b2a577fbb2690b87
parentd2f51b3516dade79269ff45eae2a7668ae711b25
nvme-auth: use crypto_shash_tfm_digest()

Simplify nvme_auth_augmented_challenge() by using
crypto_shash_tfm_digest() instead of an alloc+init+update+final
sequence.  This should also improve performance.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/common/auth.c