cypherpunk

package
v0.0.0-...-04fa1a7 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Cypherpunk remailer client and server implementation.

Index

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

View Source
var (
	ENotRemail         = errors.New("No Remailer Message")
	EInvalidArmor      = errors.New("Invalid ASCII armor")
	EUnknownEncryption = errors.New("UnknownEncryption")
)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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