Documentation ¶
Overview ¶
Cypherpunk remailer client and server implementation.
Index ¶
- Constants
- Variables
- func ProcessMessage(msg []byte, myaddr string, ring openpgp.KeyRing) (qmsg *qmodel.Message, err error)
- func WrapMessageCypherpunk(orig *qmodel.Message, remailer string, remailerKey *openpgp.Entity) (wrap *qmodel.Message, err error)
- func WrapMessageCypherpunkCompressed(orig *qmodel.Message, remailer string, remailerKey *openpgp.Entity, level int) (wrap *qmodel.Message, err error)
Constants ¶
View Source
const ( BestSpeed = flate.BestSpeed BestCompression = flate.BestCompression DefaultCompression = flate.DefaultCompression // Disables the Lempel-Ziv match searching and only performs Huffman // entropy encoding. This is useful to compress Base64 encoded ciphertexts // and E-Mail attachments. HuffmanOnly = flate.HuffmanOnly )
Variables ¶
Functions ¶
func ProcessMessage ¶
func ProcessMessage(msg []byte, myaddr string, ring openpgp.KeyRing) (qmsg *qmodel.Message, err error)
Processes a Message-Body that is assumed to be a Cypherpunk-Remailer message. It returns nil,ENotRemail if the message is not a Cypherpunk-Remailer message.
func WrapMessageCypherpunk ¶
func WrapMessageCypherpunk(orig *qmodel.Message, remailer string, remailerKey *openpgp.Entity) (wrap *qmodel.Message, err error)
Wraps a message to be sent over a cypherpunk remailer.
func WrapMessageCypherpunkCompressed ¶
func WrapMessageCypherpunkCompressed(orig *qmodel.Message, remailer string, remailerKey *openpgp.Entity, level int) (wrap *qmodel.Message, err error)
Works like WrapMessageCypherpunk() but compresses the data before encryption. This is not compatible with standard PGP implementations and cypherpunk remailers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.