diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2026-09-30 21:48:57 -0700 |
|---|---|---|
| committer | Martin K. Petersen (Oracle) <mkp@kernel.org> | 2026-10-14 22:03:45 -0400 |
| commit | b633249f58832e6aeefa606d6d5aec76abfe6d89 (patch) | |
| tree | de231215b66d0221f7725ea8ee44b615e73883d3 /tools/lib/python | |
| parent | 9621cbd332862eb6651e2aba24ed18f66560de66 (diff) | |
scsi: target: iscsi: Use crypto library API
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().
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Link: https://patch.msgid.link/20261001044857.169487-1-ebiggers@kernel.org
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
