]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ksmbd: Use SHA-512 library for SMB3.1.1 preauth hash
authorEric Biggers <ebiggers@kernel.org>
Tue, 14 Oct 2025 23:17:57 +0000 (16:17 -0700)
committerSteve French <stfrench@microsoft.com>
Mon, 1 Dec 2025 03:11:42 +0000 (21:11 -0600)
commite009cb1e3093977c5b96a1c6697a7dc9332222d5
tree552086b2d6e9996be67b6dea4ded6dbe2bbd8ca4
parent7d0a66e4bb9081d75c82ec4957c50034cb0ea449
ksmbd: Use SHA-512 library for SMB3.1.1 preauth hash

Convert ksmbd_gen_preauth_integrity_hash() to use the SHA-512 library
instead of a "sha512" crypto_shash.  This is simpler and faster.  With
the library there's no need to allocate memory, no need to handle
errors, and the SHA-512 code is accessed directly without inefficient
indirect calls and other unnecessary API overhead.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/Kconfig
fs/smb/server/auth.c
fs/smb/server/crypto_ctx.c
fs/smb/server/crypto_ctx.h
fs/smb/server/server.c