cifsd: add support for AES256 encryption
authorNamjae Jeon <namjae.jeon@samsung.com>
Thu, 6 May 2021 02:43:37 +0000 (11:43 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 11 May 2021 00:15:48 +0000 (19:15 -0500)
commit5a0ca7700591a5275875920cf0c3113435e4b6f7
treec4edc3d50fed4e77c0d57f83c828413058bdfb1a
parent1fca8038e9f10bc14eb3484d212b3f03b49ac3f5
cifsd: add support for AES256 encryption

Now that 256 bit encryption can be negotiated, update
names of the nonces to match the updated official protocol
documentation (e.g. AES_GCM_NONCE instead of AES_128GCM_NONCE)
since they apply to both 128 bit and 256 bit encryption.
update smb encryption code to set 32 byte key length and to
set gcm256/ccm256 when requested on mount.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/auth.c
fs/cifsd/crypto_ctx.c
fs/cifsd/crypto_ctx.h
fs/cifsd/mgmt/user_session.h
fs/cifsd/smb2pdu.c
fs/cifsd/smb2pdu.h