[PATCH][SMB3.1.1] Add defines for new signing context

Stefan Metzmacher metze at samba.org
Mon Oct 12 08:55:18 UTC 2020


Am 11.10.20 um 03:25 schrieb Steve French via samba-technical:
> Add defines for the three supported signing algorithms
> 
> Signed-off-by: Steve French <stfrench at microsoft.com>
> ---
>  fs/cifs/smb2pdu.h | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h
> index 4dfb51dd7065..5932fc0dc62c 100644
> --- a/fs/cifs/smb2pdu.h
> +++ b/fs/cifs/smb2pdu.h
> @@ -323,6 +323,7 @@ struct smb2_negotiate_req {
>  #define SMB2_NETNAME_NEGOTIATE_CONTEXT_ID cpu_to_le16(5)
>  #define SMB2_TRANSPORT_CAPABILITIES cpu_to_le16(6)
>  #define SMB2_RDMA_TRANSFORM_CAPABILITIES cpu_to_le16(7)
> +#define SMB2_SIGNING_CAPABILITIES cpu_to_le16(8)
>  #define SMB2_POSIX_EXTENSIONS_AVAILABLE cpu_to_le16(0x100)
> 
>  struct smb2_neg_context {
> @@ -416,6 +417,19 @@ struct smb2_rdma_transform_capabilities_context {
>   __le16 RDMATransformIds[1];
>  } __packed;
> 
> +/* Signing algorithms */
> +#define SIGNING_ALG_HMAC_SHA256 0
> +#define SIGNING_ALG_AES_CMAC 1
> +#define SIGNING_ALG_AES_GMAC 2

This isn't in MS-SMB2 yet.

Is this AES_128?

metze


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20201012/a3874e3b/signature.sig>


More information about the samba-technical mailing list