Skip to main content

sign_pdu

Function sign_pdu 

Source
fn sign_pdu(
    resp: &mut [u8],
    key: &[u8; 16],
    dialect: Option<u16>,
    signing_algo: u16,
)
Expand description

Stamp an SMB2 signature over resp in place ([MS-SMB2] §3.3.4.1.1). Sets the SIGNED flag and fills the 16-byte Signature field (bytes 48..64).