Skip to main content

algorithm_for_dialect

Function algorithm_for_dialect 

Source
pub fn algorithm_for_dialect(
    dialect: Dialect,
    gmac_negotiated: bool,
) -> SigningAlgorithm
Expand description

Select the appropriate signing algorithm for a dialect.

For SMB 3.1.1, gmac_negotiated indicates whether the peer negotiated AES-256-GMAC via SMB2_SIGNING_CAPABILITIES. When false, SMB 3.1.1 falls back to AES-128-CMAC.