smbintegrity

package
v0.0.0-...-c8c792b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package smbintegrity defines structures and identifiers for SMB data integrity.

Index

Constants

View Source
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.

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/5a07bd66-4734-4af8-abcf-5a44ff7ee0e5

func (Algorithm) String

func (a Algorithm) String() string

String returns a string representation of the hash algorithm.

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.

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/5a07bd66-4734-4af8-abcf-5a44ff7ee0e5

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.

type List

type List []byte

List interprets a slice of bytes as an SMB hash algorithm list.

func (List) Contains

func (k List) Contains(a Algorithm) bool

Contains returns true if the list contains a.

func (List) Count

func (k List) Count() int

Count returns the number of algorithms present in the list.

func (List) Member

func (k List) Member(i int) Algorithm

Member returns the list member at position i.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL