smb3.1.1: add new module load parm enable_gcm_256
authorSteve French <stfrench@microsoft.com>
Thu, 15 Oct 2020 01:24:09 +0000 (20:24 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 16 Oct 2020 04:58:15 +0000 (23:58 -0500)
commit29e279230413cdd5e00fb5d269cae1099184ab85
tree8556337d076697bdbaba24dc949bdf2f33b3d179
parentfbfd0b46afa9a8b50a061b0f28204fc94c7bddcf
smb3.1.1: add new module load parm enable_gcm_256

Add new module load parameter enable_gcm_256. If set, then add
AES-256-GCM (strongest encryption type) to the list of encryption
types requested. Put it in the list as the second choice (since
AES-128-GCM is faster and much more broadly supported by
SMB3 servers).  To make this stronger encryption type, GCM-256,
required (the first and only choice, you would use module parameter
"require_gcm_256."

Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/smb2pdu.c
fs/cifs/smb2pdu.h