eap

package
v0.0.0-...-7a96106 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChallengeHash

func ChallengeHash(peerChallenge, authenticatorChallenge []byte, userName string) []byte

func ChallengeResponse

func ChallengeResponse(challenge, passwordHash []byte) []byte

func DesEncrypt

func DesEncrypt(text, key []byte) []byte

func GenerateAuthenticatorResponse

func GenerateAuthenticatorResponse(password string, ntResponse, peerChallenge, authenticatorChallenge []byte, userName string) []byte

func GetAsymmetricStartKey

func GetAsymmetricStartKey(masterKey []byte, sessionKeyLength int, isSend, isServer bool) []byte

func GetMasterKey

func GetMasterKey(passwordHashHash, ntResponse []byte) []byte

func GetNewKeyFromSHA

func GetNewKeyFromSHA(startKey, sessionKey []byte, sessionKeyLength int) []byte

func HashNtPasswordHash

func HashNtPasswordHash(passwordHash []byte) []byte

func NewRC4key

func NewRC4key(key []byte) (*rc4.Cipher, error)

func NtPasswordHash

func NtPasswordHash(password string) []byte

func ReduceSessionKey

func ReduceSessionKey(sendSessionKey []byte, keyLength int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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