diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2021-03-25 12:34:54 +0000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-03-26 07:49:39 -0500 |
commit | 45a4546c6167a2da348a31ca439d8a8ff773b6ea (patch) | |
tree | ae8fd937da02955df6d6b0c54ef3aeae3036ed14 /fs/cifs/smb2glob.h | |
parent | 0d02ec6b3136c73c09e7859f0d0e4e2c4c07b49b (diff) |
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>
Diffstat (limited to 'fs/cifs/smb2glob.h')
-rw-r--r-- | fs/cifs/smb2glob.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/smb2glob.h b/fs/cifs/smb2glob.h index 99a1951a01ec..d9a990c99121 100644 --- a/fs/cifs/smb2glob.h +++ b/fs/cifs/smb2glob.h @@ -58,6 +58,7 @@ #define SMB2_HMACSHA256_SIZE (32) #define SMB2_CMACAES_SIZE (16) #define SMB3_SIGNKEY_SIZE (16) +#define SMB3_GCM128_CRYPTKEY_SIZE (16) #define SMB3_GCM256_CRYPTKEY_SIZE (32) /* Maximum buffer size value we can send with 1 credit */ |