smb: use crypto_shash_digest() in symlink_hash()
authorEric Biggers <ebiggers@google.com>
Sun, 29 Oct 2023 05:03:00 +0000 (22:03 -0700)
committerSteve French <stfrench@microsoft.com>
Tue, 31 Oct 2023 17:38:26 +0000 (12:38 -0500)
commit783fa2c94f4150fe1b7f7d88b3baf6d98f82b41b
tree5b5229ad9d17c485476139a49f9ea0582143f91e
parentd328c09ee9f15ee5a26431f5aad7c9239fa85e62
smb: use crypto_shash_digest() in symlink_hash()

Simplify symlink_hash() by using crypto_shash_digest() instead of an
init+update+final sequence.  This should also improve performance.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/link.c