Documentation ¶
Overview ¶
Package constants contains the constants for Katzenpost.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PacketLength is the length of a Sphinx Packet in bytes. PacketLength = sphinx.HeaderLength + sphinx.PayloadTagLength + ForwardPayloadLength // SphinxPlaintextHeaderLength is the length of a BlockSphinxPlaintext // in bytes. SphinxPlaintextHeaderLength = 1 + 1 // ForwardPayloadLength is the length of the usable forward payload of a // Sphinx Packet in bytes. This is named `SURB_PAYLOAD_LENGTH` in the // End to End spec due to packets constructed using a SURB having the // SURB's space available for payload. The Sphinx spec calls this // `PAYLOAD_LENGTH`, since the Sphinx spec is agnostic to how SURBs are // transported. ForwardPayloadLength = 2 * 1024 // UserForwardPayloadLength is the length of user portion of the forward // payload. The End to End spec calls this `PAYLOAD_LENGTH` but this is // somewhat shorter than the `PAYLOAD_LENGTH` as defined in the Sphinx // spec. UserForwardPayloadLength = ForwardPayloadLength - (SphinxPlaintextHeaderLength + sphinx.SURBLength) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.