Skip to main content

verify_pdu_signature

Function verify_pdu_signature 

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

Verify a request PDU’s signature against key ([MS-SMB2] §3.3.5.2.4): recompute the negotiated signature over the PDU with the signature field zeroed and compare to the header’s Signature.