Skip to main content

Module header

Module header 

Source
Expand description

SMB2 sync header (MS-SMB2 §2.2.1.2) — fixed 64 bytes, little-endian.

Modules§

cmd

Structs§

Parsed
Parsed fields we consume from a response header.

Constants§

FLAGS_SIGNED

Functions§

build
Build a 64-byte sync header with the signature field zeroed.
kdf_signing_key
SMB 3.0.x signing-key derivation (MS-SMB2 §3.1.4.2): SP800-108 counter-mode KDF with HMAC-SHA256 over the session key, label “SMB2AESCMAC” and context “SmbSign”.
parse
sign
SMB 2.x signing: HMAC-SHA256(session_key, message-with-zeroed-sig-and-SIGNED-flag), truncated to 16 bytes, written back into the Signature field.
sign_v3
SMB 3.0/3.0.2 signing: AES-128-CMAC over the message with the zeroed Signature field and the SIGNED flag set, truncated to 16 bytes.