Documentation ¶
Index ¶
- Constants
- func NewCrypt(toHdr, toPld *crypto.Pub, from *crypto.Prv, iv nonce.IV, depth int) ont.Onion
- type Crypt
- func (x *Crypt) Account(res *sess.Data, sm *sess.Manager, s *sessions.Data, last bool) (skip bool, sd *sessions.Data)
- func (x *Crypt) Decode(s *splice.Splice) (e error)
- func (x *Crypt) Decrypt(prk *crypto.Prv, s *splice.Splice)
- func (x *Crypt) Encode(s *splice.Splice) (e error)
- func (x *Crypt) GetOnion() interface{}
- func (x *Crypt) Handle(s *splice.Splice, p ont.Onion, ng ont.Ngin) (e error)
- func (x *Crypt) Len() int
- func (x *Crypt) Magic() string
- func (x *Crypt) Wrap(inner ont.Onion)
Constants ¶
View Source
const (
CryptMagic = "cryp"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Crypt ¶
type Crypt struct { Depth int ToHeaderPub, ToPayloadPub *crypto.Pub From *crypto.Prv IV nonce.IV // The remainder here are for Decode. Cloak crypto.CloakedPubKey ToPriv *crypto.Prv FromPub *crypto.Pub ont.Onion }
Click to show internal directories.
Click to hide internal directories.