anon

package
v0.0.0-...-19c2005 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HSize = 32

	RSize = 16
)
View Source
const (
	EnlargeFactor = 16 * poly1305.TagSize
)
View Source
const (
	NECS_ENLARGE_SIZE = HSize + RSize*256
)

Variables

View Source
var (
	Rand io.Reader = rand.Reader
)

Functions

func Chaff

func Chaff(authKey *[32]byte, noncePrfx, in []byte) []byte

Chaff the data. noncePrfx is 64-bit nonce. Output data will be much larger: 256 bytes for each input byte.

func Decode

func Decode(in []byte) ([]byte, error)

func Encode

func Encode(r *[RSize]byte, in []byte) ([]byte, error)

func EncodeNECS

func EncodeNECS(authKey *[32]byte, nonce, in []byte) ([]byte, error)

func NECSDecode

func NECSDecode(authKey *[32]byte, nonce, in []byte) ([]byte, error)

func Winnow

func Winnow(authKey *[32]byte, noncePrfx, in []byte) ([]byte, error)

Winnow the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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