header
import "github.com/TheManticoreProject/Manticore/crypto/spnego/ntlm/message/header"
Index
Variables
NTLM signature
var NTLM_SIGNATURE = [8]byte{'N', 'T', 'L', 'M', 'S', 'S', 'P', 0}
type Header
Header is the header of an NTLM message
type Header struct {
// Signature (8 bytes): An 8-byte character array that MUST contain the ASCII string ('N', 'T', 'L', 'M', 'S', 'S', 'P', '\0').
Signature [8]byte
// MessageType (4 bytes): A 32-bit unsigned integer that indicates the message type.
MessageType types.MessageType
}
func (*Header) GetSignature
func (m *Header) GetSignature() [8]byte
GetSignature returns the signature
func (*Header) GetType
func (m *Header) GetType() types.MessageType
GetType returns the message type
func (*Header) Marshal
func (m *Header) Marshal() ([]byte, error)
Marshal serializes the Header into a byte slice
func (*Header) SetSignature
func (m *Header) SetSignature(signature [8]byte)
SetSignature sets the signature
func (*Header) SetType
func (m *Header) SetType(messageType types.MessageType)
SetType sets the message type
func (*Header) Unmarshal
func (m *Header) Unmarshal(data []byte) (int, error)
Unmarshal deserializes a byte slice into a Header