ksmbd: add support for key exchange
authorNamjae Jeon <linkinjeon@kernel.org>
Tue, 1 Feb 2022 09:20:34 +0000 (18:20 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 4 Feb 2022 06:12:22 +0000 (00:12 -0600)
commitf9929ef6a2a55f03aac61248c6a3a987b8546f2a
treec900eeeda7b0d52faa79dccbb495084b472b095a
parentdeae24b0b13ff5f46022124fbfc2c72fc534bc6a
ksmbd: add support for key exchange

When mounting cifs client, can see the following warning message.

CIFS: decode_ntlmssp_challenge: authentication has been weakened as server
does not support key exchange

To remove this warning message, Add support for key exchange feature to
ksmbd. This patch decrypts 16-byte ciphertext value sent by the client
using RC4 with session key. The decrypted value is the recovered secondary
key that will use instead of the session key for signing and sealing.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/Kconfig
fs/ksmbd/auth.c