ready

package
v0.1.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2023 License: Unlicense Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadyMagic = "redy"
	ReadyLen   = magic.Len + nonce.IDLen + crypto.PubKeyLen + 2*consts.RoutingHeaderLen +
		3*sha256.Len + 3*nonce.IVLen
)

Variables

This section is empty.

Functions

func NewReady

func NewReady(
	id nonce.ID,
	addr *crypto.Pub,
	fwHeader,
	rvHeader hidden.RoutingHeaderBytes,
	fc, rc crypto.Ciphers,
	fn, rn crypto.Nonces,
) ont.Onion

Types

type Ready

type Ready struct {
	ID              nonce.ID
	Address         *crypto.Pub
	Forward, Return *hidden.ReplyHeader
}

func (*Ready) Account

func (x *Ready) Account(res *sess.Data, sm *sess.Manager,
	s *sessions.Data, last bool) (skip bool, sd *sessions.Data)

func (*Ready) Decode

func (x *Ready) Decode(s *splice.Splice) (e error)

func (*Ready) Encode

func (x *Ready) Encode(s *splice.Splice) (e error)

func (*Ready) GetOnion

func (x *Ready) GetOnion() interface{}

func (*Ready) Handle

func (x *Ready) Handle(s *splice.Splice, p ont.Onion, ng ont.Ngin) (e error)

func (*Ready) Len

func (x *Ready) Len() int

func (*Ready) Magic

func (x *Ready) Magic() string

func (*Ready) Wrap

func (x *Ready) Wrap(inner ont.Onion)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL