Documentation
¶
Overview ¶
Package route provides an onion mesage type that initiates a hidden service connection with a designated introducer who holds the forwarding routing header to send the route message to a hidden service, who replies to the client using their reply routing header with a ready message.
Index ¶
- Constants
- func NewRoute(id nonce.ID, k *crypto.Pub, ks *crypto.KeySet, ep *exit.ExitPoint) ont.Onion
- func RouteGen() coding.Codec
- type Route
- func (x *Route) Account(res *sess.Data, sm *sess.Manager, s *sessions.Data, last bool) (skip bool, sd *sessions.Data)
- func (x *Route) Decode(s *splice.Splice) (e error)
- func (x *Route) Decrypt(prk *crypto.Prv, s *splice.Splice)
- func (x *Route) Encode(s *splice.Splice) (e error)
- func (x *Route) GetOnion() interface{}
- func (x *Route) Handle(s *splice.Splice, p ont.Onion, ng ont.Ngin) (e error)
- func (x *Route) Len() int
- func (x *Route) Magic() string
- func (x *Route) Wrap(inner ont.Onion)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Route ¶
type Route struct { HiddenService *crypto.Pub HiddenCloaked crypto.CloakedPubKey Sender *crypto.Prv SenderPub *crypto.Pub nonce.IV // ------- the rest is encrypted to the HiddenService/Sender keys. ID nonce.ID // Ciphers is a set of 3 symmetric ciphers that are to be used in their // given order over the reply message from the service. Ciphers crypto.Ciphers // Nonces are the nonces to use with the cipher when creating the // encryption for the reply message, // they are common with the crypts in the header. crypto.Nonces hidden.RoutingHeaderBytes ont.Onion }
Click to show internal directories.
Click to hide internal directories.