Documentation ¶
Overview ¶
Package smbintegrity defines structures and identifiers for SMB data integrity.
Index ¶
Constants ¶
const (
SHA512 = 0x0001
)
Possible preauthentication hash algorithms.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm uint16
Algorithm identifies a type of cryptographic hashing algorithm used for preauthentication integrity during SMB 3.1.1 protocol negotiation.
type Capabilities ¶
type Capabilities []byte
Capabilities interprets a slice of bytes as a set of preauthentication integrity capabilities during SMB 3.1.1 protocol negotiation.
func (Capabilities) AlgorithmCount ¶
func (c Capabilities) AlgorithmCount() uint16
AlgorithmCount returns the number of supported preauthentication hash algorithms.
func (Capabilities) Algorithms ¶
func (c Capabilities) Algorithms() List
Algorithms returns the list of supported preauthentication hash algorithms.
func (Capabilities) Salt ¶
func (c Capabilities) Salt() []byte
Salt returns the salt used for preauthentication integrity.
func (Capabilities) SaltLength ¶
func (c Capabilities) SaltLength() uint16
SaltLength returns the length of the salt used for preauthentication integrity.
func (Capabilities) SetAlgorithmCount ¶
func (c Capabilities) SetAlgorithmCount(count uint16)
SetAlgorithmCount sets the number of supported preauthentication hash algorithms.
func (Capabilities) SetSaltLength ¶
func (c Capabilities) SetSaltLength(length uint16)
SetSaltLength sets the length of the salt used for preauthentication integrity.