From: Steve French Date: Wed, 18 Mar 2020 05:51:48 +0000 (-0500) Subject: smb3: add defines for new crypto algorithms X-Git-Tag: howlett/maple_spf/20210104~727^2~28 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=119e489681f769e497637da16d5df530213f5720;p=users%2Fjedix%2Flinux-maple.git smb3: add defines for new crypto algorithms In encryption capabilities negotiate context can now request AES256 GCM or CCM Signed-off-by: Steve French Acked-by: Ronnie Sahlberg --- diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index c3f1baf5bde28..7b6db162f5164 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h @@ -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