security

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ChallengeLen = 16

ChallengeLen 随机认证串的长度

Variables

This section is empty.

Functions

func AuthVNCEncode

func AuthVNCEncode(password []byte, challenge []byte) ([]byte, error)

AuthVNCEncode 加密随机认证串

Types

type ClientAuthNone

type ClientAuthNone struct{}

ClientAuthNone vnc客户端认证

func (*ClientAuthNone) Auth

func (*ClientAuthNone) SubType

func (*ClientAuthNone) SubType() rfb.SecuritySubType

func (*ClientAuthNone) Type

type ClientAuthVNC

type ClientAuthVNC struct {
	Challenge []byte
	Password  []byte
}

ClientAuthVNC vnc 客户端使用vnc auth认证方式

func (*ClientAuthVNC) Auth

func (that *ClientAuthVNC) Auth(session rfb.ISession) error

func (*ClientAuthVNC) SubType

func (*ClientAuthVNC) SubType() rfb.SecuritySubType

func (*ClientAuthVNC) Type

func (*ClientAuthVNC) Type() rfb.SecurityType

type ClientAuthVeNCrypt02Plain

type ClientAuthVeNCrypt02Plain struct {
	Username []byte
	Password []byte
}

func (*ClientAuthVeNCrypt02Plain) Auth

func (auth *ClientAuthVeNCrypt02Plain) Auth(session rfb.ISession) error

func (*ClientAuthVeNCrypt02Plain) SubType

func (*ClientAuthVeNCrypt02Plain) Type

type ServerAuthNone

type ServerAuthNone struct{}

ServerAuthNone 服务端认证

func (*ServerAuthNone) Auth

func (*ServerAuthNone) SubType

func (*ServerAuthNone) SubType() rfb.SecuritySubType

func (*ServerAuthNone) Type

type ServerAuthVNC

type ServerAuthVNC struct {
	Challenge []byte
	Password  []byte
	Crypted   []byte
}

ServerAuthVNC vnc服务端使用vnc auth认证方式

func (*ServerAuthVNC) Auth

func (that *ServerAuthVNC) Auth(session rfb.ISession) error

func (*ServerAuthVNC) ReadChallenge

func (that *ServerAuthVNC) ReadChallenge(session rfb.ISession) error

func (*ServerAuthVNC) SubType

func (*ServerAuthVNC) SubType() rfb.SecuritySubType

func (*ServerAuthVNC) Type

func (*ServerAuthVNC) Type() rfb.SecurityType

Jump to

Keyboard shortcuts

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