crypt

package
v0.0.0-...-61ac082 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidNonce = errors.New("tried to decrypt with a previouly used nonce")
)

Functions

This section is empty.

Types

type Reader

type Reader interface {
	Read(*big.Int, []byte) (int, error)
}

The interface is similar to [io.Reader], but additional the `Read` function a nonce parameter of type `*big.Int`.

func NewDecrypter

func NewDecrypter(parent io.Reader, key []byte) (Reader, error)

type Writer

type Writer interface {
	Write(*big.Int, []byte) (int, error)
}

func NewEncrypter

func NewEncrypter(parent io.Writer, key []byte) (Writer, error)

Jump to

Keyboard shortcuts

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