Re: [PATCH] scsi: target: iscsi: Use crypto library API

From: Martin K. Petersen (Oracle)

Date: Fri Oct 23 2026 - 23:25:16 EST


On Wed, 30 Sep 2026 21:48:57 -0700, Eric Biggers wrote:

> Make iscsi_target_auth.c call into the crypto library directly instead
> of going through crypto_shash. This is simpler and much more efficient,
> as it avoids overhead of the crypto_shash layer. The hash computation
> itself also no longer has error codes that need to be checked.
>
> For simplicity, still do a memory allocation per operation to buffer the
> data (which is typically less than 50 bytes here) so that the one-shot
> digest functions can be used. It's still much more efficient than doing
> the super slow crypto_alloc_shash().
>
> [...]

Applied to 7.4/scsi-queue, thanks!

[1/1] scsi: target: iscsi: Use crypto library API
https://git.kernel.org/mkp/scsi/c/b633249f5883

--
Martin K. Petersen