Documentation ¶
Index ¶
Constants ¶
View Source
const Overhead = secretbox.Overhead + 8
View Source
const SessionKeySize = 32
View Source
const UDPMTU = 1500
Variables ¶
View Source
var ( AlertBadMac = Alert("Bad Mac") AlertInvalidSignature = Alert("Invalid Signature") AlertAuthVeto = Alert("Public key was denied by auth func") )
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
func (*Channel) Parent ¶
func (c *Channel) Parent() transports.MuxingConn
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) RemoteAddr ¶
type Dialer ¶
type Dialer struct {
// contains filtered or unexported fields
}
func (*Dialer) Dial ¶
func (d *Dialer) Dial(who f2fcrypto.PublicKey, raddr string) (transports.MuxingConn, error)
type HelloPacket ¶
type HelloPacket struct { SessionKey [SessionKeySize]byte Signature []byte PermanentKey f2fcrypto.PublicKey }
func (*HelloPacket) Marshal ¶
func (hp *HelloPacket) Marshal() ([]byte, error)
func (*HelloPacket) Unmarshal ¶
func (hp *HelloPacket) Unmarshal(b []byte) (err error)
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func NewListener ¶
func (*Listener) Accept ¶
func (l *Listener) Accept() (transports.MuxingConn, error)
type ReplayProtector ¶
type ReplayProtector struct {
// contains filtered or unexported fields
}
func (*ReplayProtector) Recieved ¶
func (rp *ReplayProtector) Recieved(n uint32)
func (*ReplayProtector) ShouldAllow ¶
func (rp *ReplayProtector) ShouldAllow(n uint32) bool
Click to show internal directories.
Click to hide internal directories.