Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateKeys(pub, sec *[32]byte)
- func PopulateSecKey(sec *[32]byte)
- type Curve
- func (c *Curve) Handshake(conn net.Conn, meta zmtp.Metadata) (zmtp.Socket, zmtp.Metadata, error)
- func (c *Curve) Name() string
- func (c *Curve) Server() bool
- func (c *Curve) SetOption(option string, val any) error
- func (c *Curve) SetupClient()
- func (c *Curve) SetupServer()
- func (c *Curve) ValidateGreeting(g *zmtp.Greeting) error
- type CurveClient
- type CurveServer
- type CurveSocket
- type Nonce
Constants ¶
View Source
const MechName = "CURVE"
Variables ¶
View Source
var ErrBothClients bothClients
View Source
var ErrBothServers bothServers
Functions ¶
func GenerateKeys ¶
func GenerateKeys(pub, sec *[32]byte)
func PopulateSecKey ¶
func PopulateSecKey(sec *[32]byte)
Types ¶
type Curve ¶
type Curve struct {
// contains filtered or unexported fields
}
func (*Curve) SetupClient ¶
func (c *Curve) SetupClient()
func (*Curve) SetupServer ¶
func (c *Curve) SetupServer()
type CurveClient ¶
type CurveClient struct {
// contains filtered or unexported fields
}
type CurveServer ¶
type CurveServer struct {
// contains filtered or unexported fields
}
type CurveSocket ¶
func (*CurveSocket) Close ¶
func (c *CurveSocket) Close() error
func (*CurveSocket) Net ¶
func (n *CurveSocket) Net() net.Conn
Net returns the underlying net.Conn for the socket.
func (*CurveSocket) Read ¶
func (c *CurveSocket) Read() (zmtp.CommandOrMessage, error)
func (*CurveSocket) SendCommand ¶
func (c *CurveSocket) SendCommand(cmd zmtp.Command) error
func (*CurveSocket) SendMessage ¶
func (c *CurveSocket) SendMessage(msg zmtp.Message) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.