smb3: add defines for new crypto algorithms
authorSteve French <stfrench@microsoft.com>
Wed, 18 Mar 2020 05:51:48 +0000 (00:51 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 12 Oct 2020 04:57:18 +0000 (23:57 -0500)
In encryption capabilities negotiate context can now request
AES256 GCM or CCM

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

index c3f1baf5bde28fa30631553223ca0d01215a601f..7b6db162f5164407ab4cb2bdbdb199ebb4c3b987 100644 (file)
@@ -325,6 +325,8 @@ struct smb2_preauth_neg_context {
 /* Encryption Algorithms Ciphers */
 #define SMB2_ENCRYPTION_AES128_CCM     cpu_to_le16(0x0001)
 #define SMB2_ENCRYPTION_AES128_GCM     cpu_to_le16(0x0002)
+#define SMB2_ENCRYPTION_AES256_CCM      cpu_to_le16(0x0003)
+#define SMB2_ENCRYPTION_AES256_GCM      cpu_to_le16(0x0004)
 
 /* Min encrypt context data is one cipher so 2 bytes + 2 byte count field */
 #define MIN_ENCRYPT_CTXT_DATA_LEN      4