]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Adjust key sizes and key generation routines for AES256 encryption
authorShyam Prasad N <sprasad@microsoft.com>
Thu, 25 Mar 2021 12:34:54 +0000 (12:34 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 26 Mar 2021 12:49:39 +0000 (07:49 -0500)
commit7fa94f669b2faff1c469c4241da088d7f18043cf
treeae8fd937da02955df6d6b0c54ef3aeae3036ed14
parenta123a92a85a64b2b0aa97706608092508241de7b
cifs: Adjust key sizes and key generation routines for AES256 encryption

For AES256 encryption (GCM and CCM), we need to adjust the size of a few
fields to 32 bytes instead of 16 to accommodate the larger keys.

Also, the L value supplied to the key generator needs to be changed from
to 256 when these algorithms are used.

Keeping the ioctl struct for dumping keys of the same size for now.
Will send out a different patch for that one.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
CC: <stable@vger.kernel.org> # v5.10+
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/cifspdu.h
fs/cifs/smb2glob.h
fs/cifs/smb2ops.c
fs/cifs/smb2transport.c