/* SPDX-License-Identifier: LGPL-2.1 */ /* * * Structure definitions for io control for cifs/smb3 * * Copyright (c) 2015 Steve French <steve.french@primarydata.com> *
*/
/* * Dumping the commonly used 16 byte (e.g. CCM and GCM128) keys still supported * for backlevel compatibility, but is not sufficient for dumping the less * frequently used GCM256 (32 byte) keys (see the newer "CIFS_DUMP_FULL_KEY" * ioctl for dumping decryption info for GCM256 mounts)
*/ struct smb3_key_debug_info {
__u64 Suid;
__u16 cipher_type;
__u8 auth_key[SMB2_NTLMV2_SESSKEY_SIZE];
__u8 smb3encryptionkey[SMB3_SIGN_KEY_SIZE];
__u8 smb3decryptionkey[SMB3_SIGN_KEY_SIZE];
} __packed;
/* * INPUT: 0 for current user, otherwise session to dump * OUTPUT: session id that was dumped
*/
__u64 session_id;
__u16 cipher_type;
__u8 session_key_length;
__u8 server_in_key_length;
__u8 server_out_key_length;
__u8 data[]; /* * return this struct with the keys appended at the end: * __u8 session_key[session_key_length]; * __u8 server_in_key[server_in_key_length]; * __u8 server_out_key[server_out_key_length];
*/
} __packed;
/* * Flags for going down operation
*/ #define CIFS_GOING_FLAGS_DEFAULT 0x0 /* going down */ #define CIFS_GOING_FLAGS_LOGFLUSH 0x1 /* flush log but not data */ #define CIFS_GOING_FLAGS_NOLOGFLUSH 0x2 /* don't flush log nor data */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.