Documentation
¶
Overview ¶
MPPE to support encryption with MSCHAPv1
MPPE to support encryption with MSCHAPv2 ¶
mschap impl heavily inspired by https://github.com/FreeRADIUS/freeradius-server (C-code) Function naming same as https://tools.ietf.org/html/rfc2433 Appendix A - Pseudocode
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SHSpad1 = []byte{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
}
Pads used in key derivation
View Source
var SHSpad2 = []byte{
0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2,
0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2,
0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2,
0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2,
}
Functions ¶
Types ¶
type ChallengeAttr ¶
func DecodeChallenge ¶
func DecodeChallenge(b []byte) ChallengeAttr
type Response2Attr ¶
type Response2Attr struct {
VendorId uint32
VendorType uint8
VendorLength uint8
Ident uint8
Flags uint8
PeerChallenge []byte //16bytes
// 8bytes zero
Response []byte //24bytes
}
func DecodeResponse2 ¶
func DecodeResponse2(b []byte) Response2Attr
type ResponseAttr ¶
type ResponseAttr struct {
VendorId uint32
VendorType uint8
VendorLength uint8
Ident uint8
Flags uint8
LMResponse []byte //24bytes
NTResponse []byte //24bytes
}
func DecodeResponse ¶
func DecodeResponse(b []byte) ResponseAttr
Click to show internal directories.
Click to hide internal directories.