decoy

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecoyRegistrar

type DecoyRegistrar struct {
	Width uint

	ClientHelloID tls.ClientHelloID
	// contains filtered or unexported fields
}

func NewDecoyRegistrar

func NewDecoyRegistrar() *DecoyRegistrar

func NewDecoyRegistrarWithDialer deprecated

func NewDecoyRegistrarWithDialer(dialer DialFunc) *DecoyRegistrar

NewDecoyRegistrarWithDialer returns a decoy registrar with custom dialer.

Deprecated: Set dialer in tapdace.Dialer.DialerWithLaddr instead.

func (*DecoyRegistrar) PrepareRegKeys

func (r *DecoyRegistrar) PrepareRegKeys(stationPubkey [32]byte, sessionSecret []byte) error

PrepareRegKeys prepares key materials specific to the registrar

func (*DecoyRegistrar) Register

func (r *DecoyRegistrar) Register(cjSession *td.ConjureSession, ctx context.Context) (*td.ConjureReg, error)

Register initiates the decoy registrar to connect and send the multiple registration requests to the various decoys.

func (*DecoyRegistrar) Send

func (r *DecoyRegistrar) Send(ctx context.Context, cjSession *td.ConjureSession, decoy *pb.TLSDecoySpec, dialError chan error)

type DialFunc

type DialFunc = func(ctx context.Context, network, addr string) (net.Conn, error)

Jump to

Keyboard shortcuts

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