handshake

package
v0.0.0-...-86e646e Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailed = errors.New(": handshake failed")
View Source
var ErrTooLargePacket = errors.New("kex: too large packet")
View Source
var MaxPacketSize uint32 = 1000

Functions

func Client

func Client(conn net.Conn, my *cryptosig.SecretKey) (key []byte, other *cryptosig.PublicKey, err error)

func Recv

func Recv(src io.Reader, max uint32) ([]byte, error)

func Send

func Send(dst io.Writer, b []byte) error

func Server

func Server(conn net.Conn, my *cryptosig.SecretKey) (key []byte, other *cryptosig.PublicKey, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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