cifs: Add a function to Hash the contents of an iterator
authorDavid Howells <dhowells@redhat.com>
Thu, 27 Oct 2022 21:40:17 +0000 (22:40 +0100)
committerSteve French <stfrench@microsoft.com>
Mon, 20 Feb 2023 23:25:44 +0000 (17:25 -0600)
commit39bc58203f040ebafbec48198a83c246b25eba99
tree54b55cee24b801a59913606983a6a446a6a20858
parente5fbdde430171175f32094c8059eea0d0e2487ae
cifs: Add a function to Hash the contents of an iterator

Add a function to push the contents of a BVEC-, KVEC- or XARRAY-type
iterator into a synchronous hash algorithm.

UBUF- and IOBUF-type iterators are not supported on the assumption that
either we're doing buffered I/O, in which case we won't see them, or we're
doing direct I/O, in which case the iterator will have been extracted into
a BVEC-type iterator higher up.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Steve French <sfrench@samba.org>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: Rohith Surabattula <rohiths.msft@gmail.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cifs@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
cc: linux-crypto@vger.kernel.org

Link: https://lore.kernel.org/r/166697257423.61150.12070648579830206483.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/166732029577.3186319.17162612653237909961.stgit@warthog.procyon.org.uk/
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsencrypt.c