]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ksmbd: use SHA-256 library API instead of crypto_shash API
authorEric Biggers <ebiggers@google.com>
Wed, 14 May 2025 04:50:34 +0000 (21:50 -0700)
committerSteve French <stfrench@microsoft.com>
Mon, 26 May 2025 03:54:50 +0000 (22:54 -0500)
commiteb21736021865112f8e1bec20fe55f995bc4e771
tree65d6ed57067f40131399896f5304f98f194fbd8b
parent0ff41df1cb268fc69e703a08a57ee14ae967d0ca
ksmbd: use SHA-256 library API instead of crypto_shash API

ksmbd_gen_sd_hash() does not support any other algorithm, so the
crypto_shash abstraction provides no value.  Just use the SHA-256
library API instead, which is much simpler and easier to use.

Signed-off-by: Eric Biggers <ebiggers@google.com>
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/auth.h
fs/smb/server/crypto_ctx.c
fs/smb/server/crypto_ctx.h
fs/smb/server/vfs.c