[PATCH] nvme-auth: use crypto_shash_tfm_digest()

Christoph Hellwig hch at lst.de
Mon Oct 30 06:28:16 PDT 2023


On Sat, Oct 28, 2023 at 10:00:40PM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers at google.com>
> 
> Simplify nvme_auth_augmented_challenge() by using
> crypto_shash_tfm_digest() instead of an alloc+init+update+final
> sequence.  This should also improve performance.

Nice:

Reviewed-by: Christoph Hellwig <hch at lst.de>



More information about the Linux-nvme mailing list