Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoEncryptionKey = errors.New("no encryption key provided")
Functions ¶
func NewDecrypterReadCloser ¶
func NewDecrypterReadCloser(r io.ReadCloser, key *[32]byte) io.ReadCloser
NewDecrypterReadCloser wraps a data stream with decryption using the provided key.
func NewEncrypterReadCloser ¶
func NewEncrypterReadCloser(r io.ReadCloser, key *[32]byte, size int64) io.ReadCloser
NewEncrypterReadCloser wraps a data stream with encryption using the provided key. The size of the stream is required ahead of time to provide an offset for the message authentication signature.
func NewGunzipReadCloser ¶
func NewGunzipReadCloser(r io.ReadCloser) io.ReadCloser
NewGunzipReadCloser wraps a data stream with a gzip.Reader.
func NewGzipReadCloser ¶
func NewGzipReadCloser(r io.ReadCloser) io.ReadCloser
NewGzipReadCloser wraps a data stream with a gzip.Writer. If encryption is also detected, gzip should not use compression.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.