ecdh

package
v0.0.0-...-e795a0a Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultHandshakeMessage = ".noise_handshake"

Variables

This section is empty.

Functions

func New

func New() *block

New returns an ECDH policy with sensible defaults.

By default, should a peer not complete the handshake protocol in 10 seconds, they will be disconnected. All handshake-related messages are appended with ECDSA signatures that are automatically verified.

Types

type Handshake

type Handshake struct {
	// contains filtered or unexported fields
}

func (Handshake) Read

func (Handshake) Read(reader payload.Reader) (noise.Message, error)

func (Handshake) Write

func (m Handshake) Write() []byte

Jump to

Keyboard shortcuts

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