Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOnlyTCP = errors.New("secretstream: only TCP is supported")
ErrOnlyTCP is returned if a progrems tries to open a UDP socket through secretstream
Functions ¶
func ServerOnce ¶
func ServerOnce(conn net.Conn, secretKey secrethandshake.EdKeyPair, appKey []byte) (net.Conn, error)
ServerOnce wraps the passed net.Conn into a boxstream if the handshake is successful
Types ¶
type Addr ¶
Addr wrapps a net.Addr and adds the public key
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client can dial secret-handshake server endpoints
type Conn ¶
Conn is a boxstream wrapped net.Conn
func (Conn) RemoteAddr ¶
RemoteAddr returns the remote net.Addr with the remote public key
func (Conn) SetDeadline ¶
SetDeadline passes the call to the underlying net.Conn
func (Conn) SetReadDeadline ¶
SetReadDeadline passes the call to the underlying net.Conn
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener can accept secret handshakes
Directories
¶
Path | Synopsis |
---|---|
This file is part of secretstream.
|
This file is part of secretstream. |
This file is part of secretstream.
|
This file is part of secretstream. |
Click to show internal directories.
Click to hide internal directories.