Skip to main content

message_signature

Function message_signature 

Source
fn message_signature(
    msg: &[u8],
    key: &[u8; 16],
    dialect: Option<u16>,
    signing_algo: u16,
    server_sender: bool,
) -> [u8; 16]
Expand description

The 16-byte SMB2 signature over msg (signature field pre-zeroed): the negotiated 3.x algorithm (AES-CMAC / AES-GMAC / HMAC-SHA256), or HMAC-SHA256 for 2.x ([MS-SMB2] §3.1.4.1). server_sender picks the AES-GMAC nonce bit.