]> git.ipfire.org Git - thirdparty/linux.git/commit
smb3.1.1: allow dumping GCM256 keys to improve debugging of encrypted shares
authorSteve French <stfrench@microsoft.com>
Fri, 30 Apr 2021 22:14:45 +0000 (17:14 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 3 May 2021 16:43:37 +0000 (11:43 -0500)
commitaa22ebc3826be23a4b2f776c7ad5079c75611dec
treefe7468f03aaf3c21d423ffb21dd96f6f87c985d9
parent087f757b0129850c99cc9116df4909dac1bce871
smb3.1.1: allow dumping GCM256 keys to improve debugging of encrypted shares

Previously we were only able to dump CCM or GCM-128 keys (see "smbinfo keys" e.g.)
to allow network debugging (e.g. wireshark) of mounts to SMB3.1.1 encrypted
shares.  But with the addition of GCM-256 support, we have to be able to dump
32 byte instead of 16 byte keys which requires adding an additional ioctl
for that.

Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_ioctl.h
fs/cifs/ioctl.c